logoalt Hacker News

rickstanley • today at 12:57 AM • 2 replies • view on HN

I share the same sentiment and experience from trying to get into C++. I bought "A Tour of C++" (2022, Stroustrup), I read it back to back, and I thought to myself "it's not so bad, seems quite nice actually, specially the modules part"... oh boy. After 2 weeks writing a HTTP requests CLI tool I was feeling really demotivated, I gave up and went to rust, for no special reason, I just had it queued up after reading "The Rust Programming Language" book.

> pre-LLM, so maybe it's better now?

I came back to the toy tool some time later and used GLM 4.x to implement it further. I had a good experience with it and I understood the code it generated. From my experience, in general, LLM is a good mentor, if you are willing to ingest the content step by step. For me, it is no different from when I used StackOverflow (and other forums) to try and ask how a thing is done.


Replies

rerdavies • today at 4:38 AM

Agree with that. I'm a veteran user of C++, and I'm constantly finding really nice idioms in AI-generated code that I end up using myself.

➕ show 1 reply
hasley • today at 6:54 AM

What exactly was your problem?

And was it the language itself or the libraries?