> There is such thing as neatness, elegance and beauty, especially in programming and mathematics.
I don’t even think of programs as code. Instead, it’s a sequence of actions on data. Kinda like open the file, search for the lines that contains this pattern, split it like this, sum the first item,… Expressing those in a programming language is fairly mechanical with slight adjustment according to the paradigm. But there is some effort spent there and the syntax can make it unpleasant.
Reading a program is a whole other matter. The easier a syntax make it to get the idea of a program, the better it is. I don’t like Rust because it’s full of compiler annotations and I don’t like some idiomatic techniques in other languages because they obstruct reading.
I don’t even think of programs as code. Instead, it’s a sequence of actions on data. Kinda like open the file, search for the lines that contains this pattern, split it like this, sum the first item,… Expressing those in a programming language is fairly mechanical with slight adjustment according to the paradigm. But there is some effort spent there and the syntax can make it unpleasant.
Reading a program is a whole other matter. The easier a syntax make it to get the idea of a program, the better it is. I don’t like Rust because it’s full of compiler annotations and I don’t like some idiomatic techniques in other languages because they obstruct reading.
But I wouldn’t go to hate in both occasions.