• 0 Posts
  • 39 Comments
Joined 11 months ago
cake
Cake day: August 15th, 2024

help-circle


  • I feel like the “we don’t know what this function does” meme is kinda bad. There’s no reason beyond maybe time crunch why you shouldn’t be able to dissect exactly what it does.

    Despite this, the notion of a load-bearing function is still very relevant. Yeah, sure, you know what it does, including all of the little edge case behaviors it has. But you can’t at this time fully ascertain what’s calling it, and how all the callers have become dependant on all the little idiosyncracies that will break if you refactor it to something more sensible.

    It has been several times now where a part of my system of legacy code broke in some novel fantastic way, because two wrongs were cancelling out and then I fixed only one of them.







  • I got a 1U rack server for free from a local business that was upgrading their entire fleet. Would’ve been e-waste otherwise, so they were happy to dump it off on me. I was excited to experiment with it.

    Until I got it home and found out it was as loud as a vacuum cleaner with all those fans. Oh, god no…

    I was living with my parents at the time, and they had a basement I could stick it in where its noise pollution was minimal. I mounted it up to a LackRack.

    Since moving out to a 1 bedroom apartment, I haven’t booted it. It’s just a 70 pound coffee table now. :/


  • I’m surprised I’ve yet to hear of a homebrew industry of completely cutting out the microcontrollers and soldering in a Pi or something to drive the raw display. I don’t predict it to be easy, but it doesn’t seem completely unobtainable?

    Flashing a custom bootloader would be even better, but I assume that hasn’t been done because they got that shit cryptographically locked down at the chip level.


  • I think my purest moment of gaming bliss was experiencing completely blind the last handful of worlds in Super Mario Odyssey while buzzed with a few whiskeys. God, my soul was in orbit with that experience. Pure, unfettered joy and whimsy through and through and cinematically epic when it wanted to be. I wouldn’t call it the best game ever or even my favorite game ever, but god damn it, it struck me just right way at just the right time. It was something truly special.

    More games I will cherish will certainly follow, and have followed. But for that specific set of vibes and circumstances, I don’t know if I’ll ever top that peak from playing a video game ever again.



  • pixelscript@lemm.eetoProgramming@programming.devThe yaml document from hell
    link
    fedilink
    English
    arrow-up
    8
    arrow-down
    1
    ·
    edit-2
    6 months ago

    The first four of them are “just how floats work”, yeah. Has nothing to do with JavaScript.

    typeof NaN
    // "number"
    

    Classic, yes, very funny. “NaN stands for ‘not a number’ but it says it’s a number”. But for real though. It’s still a variable that’s the Number type, but its contents happen to be invalid. It’s Not a (Valid) Number.

    The next three are just classic floating point precision moments.

    The Math.max() and Math.min() ones are interesting. Seems that under the hood, both methods implicitly have a fallback “number” that it compares to any argument list you give it that will auto-lose (or at closest, tie) with any other valid number you can possibly give it, so when you give it nothing at all, they leak out. Honestly, makes sense. Kinda ludicrous it needs to have defined behavior for a zero-argument call in the first place. But JS is one of those silly languages that lets you stuff in or omit as many arguments as you want with no consequences, function signature be damned. So as long as that paradigm exists, the zero-argument case probably ought to do something, and IMO this isn’t the worst choice.

    Every other one is bog standard truthy/type coercion shitlery. A demonstration of why implicit type coercion as a language feature is stupid.


  • There’s lots of software out there that is available to use without payment, but is still license restricted in such a way that you are not permitted to redistribute, modify, use for commercial purposes, etc. To many, these rights are the far more important facet of “free” software, above what it costs.

    But since the English language has the same word for all of these concepts, we have all these yucks running around with zero-cost but right-restricted software wearing the “FOSS” badge thinking they’re part of the club. So some people add “Libre” to the acronym to explicitly disambiguate.




  • pixelscript@lemm.eetoGaming@lemmy.ml*Permanently Deleted*
    link
    fedilink
    English
    arrow-up
    2
    ·
    7 months ago

    Factorio never ever goes on sale, out of principle. The devs have stated on multiple occasions. They know what their game is worth and they’re upfront about asking every player to pay the same price for it.

    If you’re interested in Factorio at full price, no harm in buying now. If you will never buy it at full price, you will never buy it.



  • I remember grinding my way through Pokemon Conquest, having a decent time but also kinda wanting it to reach its conclusion. I get to the end of the main campaign, scroll the credits, and then it tells me on next boot that there’s now some more content to play.

    “Oh cool, a postgame,” I thought.

    No. There was not a postgame. There were something like eighteen new campaigns to play.

    To a certain kind of person this must’ve felt like Christmas morning. I put the game in a drawer and didn’t turn it on again out of sheer intimidation.