DEV Community

Discussion on: Explain "Memory Safe Programming Languages" Like I'm Five Please

Collapse
 
mon-jai profile image
mon-jai

I asked Gemini the same question. Here's how it response,

Imagine you're building a tower with blocks. Memory safe programming languages are like special sets with interlocking pieces. They make sure the blocks fit together correctly, so your tower won't crumble!

Regular programming languages can be like loose blocks. If you're not careful, you might accidentally use the wrong block or put it in the wrong spot. This can mess up your whole program, just like a wobbly tower.

Memory safe languages help prevent these mistakes by checking how you use the building blocks of your program, also known as memory. This helps create stronger, more reliable programs!

Collapse
 
chaotic3quilibrium profile image
Jim O'Flaherty

I asked it, too, to see it's answer. And it was the same answer given by a number of people replying to this thread. I even wondered why the OP didn't do this themselves.

That said, the answer demonstrates that the LLMs are just regurgitating what they have observed, and are not engaged in critical thinking about the actual problem itself.

If you will notice, I offered a response with critical thinking and did NOT use the AI/ML to compose it.

I think a huge number of people are going to get lost with the AI/ML LLM "looks like effective rational critical thinking", but it turns out that it isn't that at all.

And I suspect that the worst cases will be the marginal Software Engineers. They know just enough to inadvertently hurt themselves and others.

It strikes me as an excellent example of Hanlon's Razor:

"Do not attribute to malice that which is as easily attributed to ignorance."