the world needs more recreational programming.
like, was this the most optimal or elegant way to code this?
no, but it was the most fun to write.
the world needs more recreational programming.
like, was this the most optimal or elegant way to code this?
no, but it was the most fun to write.
cause like, yeah, it's good to know how to write optimal code and how to make it elegant and easy to maintain, sure!
but one thing you have to maintain is your brain. If you're constantly driving your programming brain at maximum speed, maximum awareness of all possible caveats and vulnerabilities, always considering "how will I maintain this code in ten years time?" you're going to burn yourself out.
You're associating programming with a high-stress high-attention activity. That's going to make programming something that's categorized in your brain as no fun, never relaxing, never something you do just cause it would be interesting... you're going to start dreading it, even just a little. "oh well, let's get this over with."
That's not a good way to think about it in the long run.
we often say that programming is more an art than a science, but we need to treat it like one too.
Sometimes you need to paint a sunset not because someone paid you to paint a sunset, but because it'd be fun to paint a sunset.
...happy little binary trees...
Also: this is why I like writing my little FOSS projects. There's absolutely no external pressure so I can just explore the problem. It's the good-parts-only version of programming.
@sebastian @foone this is literally what Coding Adventures by Sebastian Lague on youtube are
@foone i know your whole point is that we shouldn't only ever try to be practical, but as an additional bonus, i genuinely think all the hours of code golf i did for fun have made me a better programmer
not that any "normal" code i ever write looks golfed at all, but you learn so much about a language when you're digging into the weeds looking for ways to save bytes
@foone I wish I could do this, but I'm no good at "patter", especially while I'm coding.
I also use a font size that I have been told is "insanely small", and I suspect video compression will make it unreadable.
But, I don't mind showing off my ~~mistakes~~ happy little syntax trees and I've (re)started coding for myself several hours each day.
I really should find an PeerTube instance or something and start streaming; I can work on video quality and viewer interaction later, I guess.
I think I'm live: https://video.infosec.exchange/w/hmradyAMD5rJ6LKWVUiJLk
This is the first time I've streamed with OBS in years, and the first time I've streamed with #PeerTube at all.
Writing elegant code is fun. Throwing together a bunch of unmaintainable crap because you are on a deadline and management doesn't care is what burned me out.
Twas this, that a child saw, that hooked me forever on the code.
@barubary @beeoproblem @foone I really like the stereogram generator whose code is itself a stereogram
@foone This is me when I get to manipulate the DOM with vanilla JS.
document.getElementbyId()?
element.classList.add()?
element.addEventListener("click", doThing)?
Yes pls let me chew on this juicy, logical, non obfuscated code! 🤤