Bard can now write code

by WarriorForum.com Administrator
6 replies
Google just updated Bard with the ability to generate code as well as debug code, and explain how the code works, line by line.





Chime in.
#bard #code #write
Avatar of Unregistered
  • Profile picture of the author DWolfe
    Always love the warnings they give with their updates

    "Bard is still an early experiment, and may sometimes provide inaccurate, misleading or false information while presenting it confidently. When it comes to coding, Bard may give you working code that doesn't produce the expected output, or provide you with code that is not optimal or incomplete. Always double-check Bard's responses and carefully test and review code for errors, bugs and vulnerabilities before relying on it."

    Unless someone knows how to code and check for errors. There are going to be a few who will come to the Programming section of the forum asking. " Why is this code not working? Followed by the posts written in ai to try and answer them ;>)

    It's going to be fun to watch it take place over the next few months. At least Bard and Chapt GP are not teaching coding at this point.


    Just a reminder Bard is not available in all areas at this time.
    Signature


    You can earn 10% average annual returns on your investments - https://app.groundfloor.us/r/m2aa7b
    {{ DiscussionBoard.errors[11753428].message }}
    • Profile picture of the author max5ty
      Originally Posted by DWolfe View Post


      Unless someone knows how to code and check for errors. There are going to be a few who will come to the Programming section of the forum asking. " Why is this code not working? Followed by the posts written in ai to try and answer them ;>)

      It's going to be fun to watch it take place over the next few months. At least Bard and Chapt GP are not teaching coding at this point.


      Just a reminder Bard is not available in all areas at this time.
      We actually used Bard to write some code for our websites. We use Webflow.

      The code didn't work the first time, so we went back and asked for a correction...

      Bard apologized and corrected the code.

      The code also interfered with some of the other code we had, so we went back and asked for the code to be corrected so it didn't interfere with the other code. It made the changes.

      So, if someone does use it to write code and it doesn't work, all they have to do is go back and explain it doesn't work and ask why.

      It's actually amazing to have it write code and realize the code it writes would take a "real" coder days to probably come up with something as good.

      As far as AI putting people out of work...

      one of the biggest things that came along that put people out of work was the whole online shopping thing. It caused tons of businesses to close down...or caused them to have severely shorter bottom lines. We never talked much about that, but it was/is a real thing that caused a massive amount of jobs lost.
      {{ DiscussionBoard.errors[11753543].message }}
  • Profile picture of the author artoadlike
    My programmer friends are already scared of ChatGPT coming for their jobs, now they will have even more things to be worried about! No doubt there will only be more and more worries coming their way as this technology keeps advancing.
    {{ DiscussionBoard.errors[11753499].message }}
  • Profile picture of the author max5ty
    An article in Business Insider titled: The end of coding as we know it

    OpenAI did a study and estimated that 19% of white-collar, educated people were at risk of losing their jobs with AI.

    Mostly talks about software developers and the way AI can now write code.

    Interesting article if you google it.
    {{ DiscussionBoard.errors[11753853].message }}
  • Profile picture of the author DWolfe
    Enzo posted this thread about coding, but Google did not send the information to me till after I posted above. It could be the way the program is being rolled out.

    On another note, ChatGPT ( free version) does not code at this time. I asked it yesterday and was given this answer

    "As an AI language model, I do not have the capability to write code myself. However, I can provide guidance and explanations on various programming concepts and syntax for multiple programming languages. Additionally, I can help you understand the logic behind code and provide examples to help you learn to write code yourself. "

    With that information, I asked to give an example for an absolute beginner. It replied with a Python coding example based on "Hello World"

    I'm not sure if GPT 4 offers to code or not. Trying not to hijack this thread but edX has a free course on OpenAi. for beginners. I'm part way through with it. The very beginning is a little slow but it seems to be improving along the way. It could help newer users speed up their learning progress. Maybe even help with their marketing or writing.

    Anyone interested is interested here's the link to the course. - https://www.edx.org/course/introduct...c=autocomplete
    Signature


    You can earn 10% average annual returns on your investments - https://app.groundfloor.us/r/m2aa7b
    {{ DiscussionBoard.errors[11753861].message }}
    • Profile picture of the author max5ty
      Originally Posted by DWolfe View Post


      On another note, ChatGPT ( free version) does not code at this time. I asked it yesterday and was given this answer

      "As an AI language model, I do not have the capability to write code myself. However, I can provide guidance and explanations on various programming concepts and syntax for multiple programming languages. Additionally, I can help you understand the logic behind code and provide examples to help you learn to write code yourself. "

      With that information, I asked to give an example for an absolute beginner. It replied with a Python coding example based on "Hello World"

      I'm not sure if GPT 4 offers to code or not. Trying not to hijack this thread but edX has a free course on OpenAi. for beginners. I'm part way through with it. The very beginning is a little slow but it seems to be improving along the way. It could help newer users speed up their learning progress. Maybe even help with their marketing or writing.

      Anyone interested is interested here's the link to the course. - https://www.edx.org/course/introduct...c=autocomplete
      The free version does write code.

      I've had it write code many times and then all of a sudden it will try and give me an answer like you posted.

      I just ask it to write me code for the following...

      then describe what I want.

      I don't know why sometimes it goes wacky and says it doesn't write code...especially when it just got done writing code.

      I think sometimes it's how you prompt it.

      Edit: just for a quick reference I went to ChatGPT (free version) and asked the following:

      I need you to write me code so I can add a button to my website. I want it to be dark blue with white font. I want it to have round corners. I want it to say "start for free" and I need it to link to google.com.

      It printed out the code, but then I went back and asked for it to include the CSS with the HTML code because it printed out both codes separately...and got this:

      <a href="https://www.google.com" style="
      display: inline-block;
      background-color: #2a2e5e;
      color: #fff;
      border-radius: 20px;
      padding: 12px 24px;
      text-decoration: none;
      font-weight: bold;
      ">Start for Free</a>

      Very simple example. I've had it write a lot more complex code...and then sometimes after a while it will go crazy and tell me it doesn't write code. So, go figure.
      {{ DiscussionBoard.errors[11753865].message }}
Avatar of Unregistered

Trending Topics