Hacker News new | ask | show | jobs
by DrBazza 1425 days ago
Indeed. I first wrote an enum-to-string macro back in the late 80s in C, and again in the late 90s for C++. And here we are in 2022... still writing enum-to-string macros and the like.
1 comments

enum-to-string should be part of CS curriculum, instead of linked lists. looks how many times people needs it!
I've needed linked list more often than enum to string over my 20+ years in industry. (both combined is less than a handful) This is mostly about what problems I've had to work on.

I think linked list taught me more useful skills than enum to string, even though I had to figure out the later on my own. Which is the important part of education, does learning things directly or indirectly help you more in the long run.