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.
@dragonarchitect yeah that's the kind of feature you used to see a lot more of in games and such back in the day.
I think Kris Asick of Ancient DOS Games talked about this once, saying some feature feels like it's just there because the programmer thought it would be fun to add.
Like, is the script complete enough without this? Yeah. Does it really need this? Nope. Did it scratch a fun itch to add it? You bet!
@foone I've been kinda doing that with my python dice rolling script, but with the added fun challenge of also being able to provide an optional statistics report including the polynomial generating function that gets all the useful probability stats if --verbose is set.
It's more meant to be a fun trip into the math of dice probability than being a useful dice rolling script, but I get a useful dice rolling script out of it as a bonus so hey presto.
@foone "we don't write bugs, just happy unintended features"
we need a bob ross of programming
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.
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.
@foone me doing code golf knowing I'm not going to win, so just amusing myself with the inherent whimsy of making a little tiny code block.
@foone this is why I chose clojure those years ago. Most fun I had programming since logo and I could actually get things done.
Guile scheme and fennel are looking like possible new things for me
@foone I miss _why :(
But I also liked watching interview with Joe Armstrong. He seemed like the friendly uncle of programming languages.
PBS's The Joy Of Programming
If a typical drawing is made up of 200 strokes, and each stroke has a 98% chance of being "wrong" and spoiling the drawing, then that would mean that 99.99999...% of drawings would be wrong.
(Nearly all drawings or paintings are built up of a large number of small gestures, and an error in any one of them isn't usually significant.)
I live with someone who's a trained draftsperson for art: this is a skill only peripherally related to what Bob Ross does.
@pippin @foone Even in the demo scene, 98% of the accidents are errors that need to be corrected or else nothing will happen (I did write "very few happy accidents", not "no".)
And hacking on old machines is even more exacting. When people get unexpected results out of old gear, it's the result of a huge amount of systematic, exploratory trial and error, much closer to science than art.
1/
@pippin @foone Writing a program that doesn't actually work doesn't seem more frustrational than recreational to me! 😀
@foone Come now.
Programming is an engineering discipline! There are very few happy little accidents. You want code that does exactly what you intended it to.
Everyone understandably loves Bob Ross, I do too, but he isn't a good example for programmers, engineers, surgeons, or airplane pilots to follow.
@foone 10 PRINT “THIS!”
20 GOTO 10
Twas this, that a child saw, that hooked me forever on the code.
@foone my favorite IOCCC (obfuscated C code competition) entry is the flight sim that's in the shape of an airplane.
@foone that's one thing I like about scheme. I doubt I'll ever get paid to write it, so I can just play around. It is also very interactive.
@foone Was this why's (poignant) Guide to Ruby?
@foone I like this a lot. A project every season? You follow along and you're pointed to learning resources on a PBS landing page for the show. This would be nice resource for resource-strapped schools.
GNU social JP is a social network, courtesy of GNU social JP管理人. It runs on GNU social, version 2.0.2-dev, available under the GNU Affero General Public License.
All GNU social JP content and data are available under the Creative Commons Attribution 3.0 license.