by sgeisenh · 5y ago · 0 comments
Most of my day job is spent reading C++ (I write some, too) and it is more terrifying than boring. Understanding when certain errors can (and do) occur and when to optimize for performance over readability is really, really hard.
I believe that Rust, Go and TypeScript have gained a lot of popularity because they are boring to read. Even OCaml has gained a ton of popularity because it is boring to read.
C, C++, python and JavaScript: not boring to read, you constantly need to be on your toes.
Python and Go are good for the reader. These aren't exhaustive lists, just what I'm familiar with. Admittedly, Python is tricky because it looks simple(boring) at first glance, but lets one use a lot of magic.
My daughter is learning cursive and it just reminded me how much I blasted hate it. I can write it fine, reading it is a tossup. It's solely a shortcut for the writer, at the expense of reading. But anything of importance is read thousands or millions more times than it's written.
In programming especially, the easier to read the better, no matter how verbose and boring the language. I think we'll get there, when we all quit pretending we're too clever to write that way.
IMO, Yes! If you put a mental onus on folks to understand x before you understand y, there's no telling how deep the rabbit hole goes. Why not use asm? Why can't you understand pointer arithmetic? The more you increase the mental requirements of the reader, the worse.
I used to be the opposite. I used to write smart C code and feel good about it. Because it was fun and challenging to write, which is what we all desire. With age(mostly) and experience, I realize how much of a mistake that was, if not for others, then older me.
To play off your example, list comprehensions are a nice one liner. In Python, you can do in one line what Go takes 10x more lines for. I still prefer Go, despite it feeling like shackles at time to write.
There's a careful balance required to make a language simple yet expressive so that concepts are obvious. On one side is a Turing machine or Brainfuck, where the concepts in a piece of code don't pop out to the reader because the language is too simple to express them concisely. On the other is Haskell or Rust, where the language expresses so many concepts and has so many rules that the reader will necessarily be unfamiliar with some parts of what they read.
I'm not talking about any difference in "mental requirements". I'm saying suppose, for an equally skilled reader at an equivalent starting point, codebase A (200 lines) takes a week to read, and codebase B (20,000 lines) also takes a week to read. And my point is that many people would blindly say that this means A is harder to read than B, but actually, what matters is whether A is doing more or less than B (i.e. is A solving a harder problem than B or vice versa) - the number of lines is irrelevant!
Why would you prefer 10k lines of readable code over 1K lines of readable code?
On the other hand, there are other contexts such as research or prototyping where it's much more important to get things out quickly; turn your ideas into code so you can see how they work.
I guess my wish is that the language du jour was one that made things harder for the writer and easy to read.
The only reason people seek shortcuts is because they exist.
Software projects are more than just code. Getting MVP out in 2 Months instead of 3 or 4 that it would take to do it properly, could doom the project.
And I am not just talking about startups. I am talking about project at big slow moving enterprises.
Getting somethin that the client can see, is one of the most important milestones.
Sometimes that means that you will need to do a lot of cleanup, after first mvp, and sometimes yes it stays in sad state.
But the alternative often is not better project, but project that got canceled/failed before first release.
There are times that you want to go fast, and times that you want to take your time and do it properly.
This has been the trend for a few years with static typing being added to every language.
Otherwise, it's rather useless as anything but an art form; modern pens don't benefit from it at all and if you're not writing a lot by hand for whatever reason, why bother?
Coincidentally, also the languages actually used to make real-world software. (As opposed to self-congratulatory blog posts.)
If Rust or Ocaml ever get to the point when they're the tool for actually keeping the software ecosystems alive, they'll be terrifying too.
(It's not a problem with the languages; software is terrifying, that's a core property of software engineering and no amount of language abstraction will ever make the terror go away.)
P.S. I've been mentoring software developers for decades, and in my opinion the psychological ability to deal with the terror is the #1 predictor for success in the software industry.
(Probably also what makes it fun and addictive when you ride that tiger.)
For me a boring language is a language that has a single paradigm, and there's one way to implement most stuff. With C and Java, there is little room for making "fun" code, you just write lines and make it work. Java forces you into the OOP paradigm and every problem is just a few design patterns away. With C++ you can have a lot of fun with OOP, templates, compile-time magic, old C APIs, new C++ APIs, even if you solve the same problem, two codebases in C++ will look completely different.
A specific quality described there would be languages that have fewer unknown unknowns, a lack of surprises. C, C++, Java (the three he picks) have relatively few surprises. Either by virtue of design (here I'd say both C and Java) or total industry experience with the language (C++, C, Java). Ubiquity might be another consideration. A lot of other languages could probably be added to the list on that criteria.
Another would be how common it is, especially for a particular domain. In my field (embedded, safety critical, real-time) it would seem like Rust would be a great choice, but it's not common and there are both technical and logistical hurdles preventing its use (for fielding, at least, for proofs of concept it's viable and that could lead to its use in fielded systems later). I'm constrained to C, C++, and maybe Ada. Fortran has been phased out, but would've been one of the boring languages for this domain up to about 20 years ago (for a new project).
I don't think I ever saw more surprising behaviour from a language than c++, although most of the horrible surprises were cfront related and I hope they are gone now.
It seems to me that "boring" is an reverse-pejorative for "C/C++/Java" - which I think is ridiculous, because even in 2015 Ruby and Python should've assumed "boring" status by all means, and the author even sort of acknowledges this! I understand the word as used in "Use Boring Tech" has a certain instinctive resonance to most people, but in all usages I think we should replace it with familiar. What's familiar varies from person to person, team to team, and also doesn't serve as a pejorative to anything else. Pick what you're used to if the goal isn't to experiment.
[1]: Follow-up thought experiment: how many people should have been fired for choosing IBM?
For Rust, it's another kind of boring. The language may be new, but lots of libraries are there. If you want to do something, you can usually pull a few libaries, read the (usually great) documentation, write some glue code and your problem is solved. In that way the experience is usually close to Go.
OCaml is another kind of boring. It's less "crazy" than something like Haskell or Scala. It's really stable, code from 20+ years ago can compile just fine. You can write most of your code as plain functions and data structures but you still have the object and module systems if you need them. Even when they bring big changes to the language such as removing the GIL and adding multicore, they work hard to make sure that existing code won't break and single core performance won't suffer too much.
My point with all of that is that boring means different things to different people. People identities are stongly tied to the language they use (I talk a bit more about that here https://news.ycombinator.com/item?id=28256211). People talking about "boring" languages is probably a reaction to people talking about "exciting" languages and trying their identities to them. Someone says he learned Haskell, I feel inferior because he knows Haskell and JS and I only know JS, but I can counter that by saying that I "focus on the product" and "solve real problems" with "boring languages".
I like the irony that on the same website, there is an article about "Keeping your identity small" (http://www.paulgraham.com/identity.html) and how people that don't use Lisp can't even understand why Lisp is better (http://www.paulgraham.com/avg.html).