3 ms·
pointers and arrays. bounds checking. C is a loaded footgun, careful don't prefix with scope letters, avoid globals. naming can be difficult, but really succin
by mmphosis 3y ago
pointers and arrays. bounds checking. C is a loaded footgun, careful
don't prefix with scope letters, avoid globals. naming can be difficult, but really succinct names are so helpful.
avoid prefixing, and avoid exposing a plethora of functions or creating them in the first place. delete these five words
first in, last out. there are many strategies
sadly, whatever horrible text editor is on the machine that I am using. I am working on creating my own text editor / programming editor
Variable Length Arrays (VLA.) I had to look that up. avoid features, keep it simple. try other ways, measure the cost
it absolutely matters that error handling works. failure is not an option, it's an opportunity. handle all errors, and avoid creating more
Undefined behavior (UB.) avoid acronyms and avoid undefined behavior. use all the tools that you can muster