Programming Leftovers
-
Ted Unangst ☛ memory leak proof every C program
Memory leaks have plagued C programs for as long as the language has existed. Many solutions have been proposed, even going so far as to suggest we should rewrite C programs in other languages. But there’s a better way.
Presented here is a simple solution that will eliminate the memory leaks from every C program. Link this into your program, and memory leaks are a thing of the past.
-
Ruben Schade ☛ Getting back into Emacs
I’ve talked before how I’m most familiar with Vim, for all the same reasons a lot of people are. I started using it in high school when it was the only editor available on remote machines, then again at university. I have muscle memory associated with a lot of its commands, though I wouldn’t call myself an expert. I know even less about nvi, though I use it to edit config files on FreeBSD and NetBSD.
-
Nicholas Tietz-Sokolsky ☛ The most important goal in designing software is understandability
When you're designing a piece of software, the single most important thing to design for is understandability. Security, performance, and correctness are all important, but they come after understandability.
Don't get me wrong, all of those are important. Software that isn't correct leads to expensive errors and frustrating experiences. Slow software can be unusable and frustrating. And insecure software, well, we have a moral and an economic imperative to ensure our software is secure. But understandability supersedes these.
It's most important, above these, because you cannot ensure any of these other design goals without understandability. It has to come first.
-
Perl / Raku