“What important truth do very few people agree with you on?”
Hashmaps are O(1). The number of people who don’t know this is astonishing.
Function documentation should include pre- and postconditions and invariants (since actual Design by Contract can be problematic due to side effects in call trees). I guess if you’re going to do real DBC, you should only access primitive data members without making function calls.
Logic does not belong in the database.
Caching is good. (Maybe these last two are indications that I’m not working at the right company.)
Developer documentation is worth the effort.
Slack (and MS Teams) is terrible. See above. Curation is worth the effort.
Long ‘switch’ statements are bad. Dispatch lookup tables are (probably) better.
Ok, I have decided good ol’ Perl is better than both the new kids for a particular kind of task: quick-n-dirty text manipulation. Sorry, y’all, I’m going back, after all these years.
cat edWebLog.txt | perl -n -e '/caching service background update finished on thread \(id [0-9]+\) in ([0-9]+) ms/ && print "$1\n";'
Wow, just gotta say: installing Inkscape on a Mac is QUITE the adventure, if you’re starting from scratch.
Bomp, bomp, bomp. Another one bites the dust.
[I already retweeted this, but I forgot to add it to my blog.]
[Update: Sigh. Apparently, I did add it to my blog, but, for some reason, I didn’t think I had.]
Noah Smith 🐇 (@Noahpinion) Tweeted:
That answer surprised me. What about AI? Self-driving cars? Robots?
He basically said that none of these things seemed to be working out that well. Self-driving cars had disappointed, AI gains seemed to peter out in most areas after an initial burst of progress…
Can’t believe I never posted this to this blog.
« Every programmer occasionally, when nobody’s home, turns off the lights, pours a glass of scotch, puts on some light German electronica, and opens up a file on their computer. It’s a different file for every programmer. Sometimes they wrote it, sometimes they found it and knew they had to save it. They read over the lines, and weep at their beauty, then the tears turn bitter as they remember the rest of the files and the inevitable collapse of all that is good and true in the world.
This file is Good Code. It has sensible and consistent names for functions and variables. It’s concise. It doesn’t do anything obviously stupid. It has never had to live in the wild, or answer to a sales team. It does exactly one, mundane, specific thing, and it does it well. It was written by a single person, and never touched by another. It reads like poetry written by someone over thirty.»