Hacker News new | past | comments | ask | show | jobs | submit login

I think that when people say "C is hard", what they usually mean is "writing portable bug-free code with C is hard".



At least for some, "C is hard" translates into "pointers and their syntax are difficult to grok, especially around arrays and structs".

The other I've commonly seen is transitioning from a language that allows arbitrary data in a "string" variable. Null-terminated strings are no fun in comparison, and passing buffers around is more work.


That's because the dominant ideas about what "portable" means are pretty bad. To wit - the way the Linux kernel does it isn't my first choice...




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: