r/cpp • u/starshine_rose_ • 27m ago
I don’t even hate AI, I just feel a little sad about being obsolete
I felt cool and smart that I understand low level programming, pointers and memory management and all that stuff. I still program for fun as a hobby but if I start thinking about this stuff I lose my momentum. I like to write my code like an engineer and I am very specific about how I write it. I think AI has good uses for the future but it just makes me sad to think about how anyone can AI generate code and it makes my deep understanding not as cool anymore. My projects matter less, anyone could just instantly generate the code for the game I spent years on. I’m not special anymore nor are my projects. It’s just a little sad. I think about C++26 and C++29, is anyone even going to care about these things anymore with the obsolescence of people who use these features by hand… idk. I get in ruts like this someone and I just have to ignore it. I want to hear everyone else’s opinions especially ones who are very opinionated about programming features and care about their code very much like I do.
Sometimes though I think about ways I program that an AI wouldn’t do, such as my excessive and opinionated use of unsigned integers with explicit cstdint types and the lowest possible bit amount for the variable, while AI will just use standard int. Another one is how I try to avoid dynamic allocations whenever possible, even for silly things like microoptimiaztions, for file paths I’ll do a 4096 stack buffer over dynamic allocation. Makes me feel like I have somewhat of a voice.