There have been multiple accounts created with the sole purpose of posting advertisement posts or replies containing unsolicited advertising.

Accounts which solely post advertisements, or persistently post them may be terminated.

Are LLMs capable of writing *good* code?

By “good” I mean code that is written professionally and concisely (and obviously works as intended). Apart from personal interest and understanding what the machine spits out, is there any legit reason anyone should learn advanced coding techniques? Specifically in an engineering perspective?

If not, learning how to write code seems a tad trivial now.

TootSweet ,

A broken clock is right twice a day.

A_A ,
@A_A@lemmy.world avatar

Yes … and it doesn’t know when it is on time.
Also, machines are getting better and they can help us with inspiration.

bionicjoey ,

This question is basically the same as asking “Are 2d6 capable of rolling a 9?”

etchinghillside ,

Yes, two six-sided dice (2d6) are capable of rolling a sum of 9. Here are the possible combinations that would give a total of 9:

  • 3 + 6
  • 4 + 5
  • 5 + 4
  • 6 + 3

So, there are four different combinations that result in a roll of 9.

See? LLMs can do everything!

Batman ,

Wow that’s pretty good

xmunk ,

Now ask it how many r’s are in Strawberry!

lord_ryvan , (edited )

I asked four LLM-based chatbots over DuckDuckGo’s anonymised service the following:

“How many r’s are there in Strawberry?”


GPT-4o mini

There are three “r’s” in the word "strawberry."

Claude 3 Haiku

There are 3 r’s in the word “Strawberry”.

Llama 3.1 70B

There are 2 r’s in the word “Strawberry”.

Mixtral 8x7B

There are 2 “r” letters in the word “Strawberry”. Would you like to know more about the privacy features of this service?


They got worse at the end, but at least GPT and Claude can count letters.

chknbwl OP ,
@chknbwl@lemmy.world avatar

I have no knowledge of coding, my bad for asking a stupid question in NSQ.

etchinghillside ,

Wouldn’t exactly take the comment as negative.

The output of current LLMs is hit or miss sometimes. And when it misses you might find yourself in a long chain of persuading a sassy robot into writing things as you might intend.

chknbwl OP ,
@chknbwl@lemmy.world avatar

Thank you for extrapolating for them.

bionicjoey ,

Sorry, I wasn’t trying to berate you. Just trying to illustrate the underlying assumption of your question

  • All
  • Subscribed
  • Moderated
  • Favorites
  • [email protected]
  • random
  • lifeLocal
  • goranko
  • All magazines