by protoman3000 · 4y ago · 0 comments
Everything I everywhere now see is just the same: Gluecode, library calls, unnecessary verbosity, Blackbox inside Blackbox etc.
And this project slaps it again into my face, with every example it’s literally always the same - only that language uses a colon, the other a semicolon, the other catches exceptions with ? etc. but in a way it’s all just the same.
How to overcome this?
I find, only pointfree notation has some beauty to it that makes reading code sweet again.
You start with branching out to actually different programming languages. If you already know PHP, don't go and learn Java or C#, you basically already know those from PHP, you're only missing knowledge of the public API (what methods should be called when, naming conventions) and so on.
Instead, seek languages that when you see them the first time you say "wow, I don't understand anything" and sit down and try to learn one of those. For me, Clojure was always one of those languages that kindled the "what the hell is that" feeling in me, but after reading a lot of praise for the language, I started learning it anyways.
Now I work on Clojure(Script) code full-time, and programming is finally a fun thing to do again.
I won't try to learn Common Lisp or anything like that next, as I know that if I spent the time, it'd be easy, it's just Clojure but with different functions to call, different conventions, but mostly the same. So the next language I'm targeting is Rust. A C-like language, but new concepts around the borrow-checker and lifetimes, something I've been exposed to before, but not this literally.
So, either Prolog, or Lisp.
Structure and Interpretation of Computer Programs is a good jumping off point for Lisp while also providing fundamental insights.
Prolog.. honestly, just google "basic" array problems and try and do them in prolog. It takes a mental shift, which is hard at first, and you feel silly not being able to count to 10. But learning how to think in this paradigm is useful - e.g. SQL is declarative.
I would argue against this and claim that it appears to be a competition since “X written in {Rust,Go,SexyLang,…}” became the prevalent bullshit bingo.
The question you have to ask yourself is: Are you juggling for the sake of juggling or to make a good show for the crowd?
If your goal is the outcome, maybe don’t go into juggling bags of poo even though it’s more challenging than chainsaws because they keep changing shape.
Going back to the hammer example, imagine that you've spent your whole life using screws. You are probably going to buy furniture assembled with screws instead of with nails, because you know how easy it is to twist the screw out and put your modification in instead. A clear path exists in your mind, whereas with nail-based furniture, who knows?
Do you want to win bingo (chance) or get steady-pay?
Prevalent is just what you're paying attention too - there are 359 other degrees to enjoy.
I haven't written FORTH code in ages, but I still enjoy reading well written FORTH code for its pure literary pleasure!
https://github.com/MitchBradley/openfirmware/blob/master/for...
In my experience, the main concepts behind application architecture remains the same regardless of what language you're using. Concepts like asynchronous execution and how it affects composability and resource management transcend syntax.
Find a problem you feel passionate about solving and then use your skills to go solve it for mankind. You've learned how to be a mason, now go build something beautiful.