|
|
|
|
|
by binarycrusader
2786 days ago
|
|
stares in C++; stares in Perl But seriously, I think C++ and Perl have taught us that if you give programmers the logical equivalent of a Swiss Army Knife, they will use/abuse absolutely every single bit of it to write their programs. I used to be a big fan of "more than one way to do it", but these days, I'd gladly take "one reasonably clear way to do it that not everyone likes but 'everyone' can live with". |
|
I used to firmly believe that that was the way a programming language should be. Let me do what I want to do, however I want to do it.
I've finally found myself falling in to almost the complete opposite, with a small addition: "There should be one way to do it, and it should be obvious"
Python mostly scratches that itch for me, but even there it has multiple methods to do the same stuff within the standard library, like list.sort() and sorted(list) https://medium.com/@DahlitzF/list-sort-vs-sorted-list-aab92c...