• 0 Posts
  • 36 Comments
Joined 2 years ago
cake
Cake day: June 20th, 2023

help-circle
  • Javascript’s type coercion is rather insane, yes, but there is an actual, practical reason it’s done. JS, having been designed to be run in web browsers, wants to avoid blowing up and crashing at all costs. If it gets an unusual type comparison, usually the result of a bug, it tries to return something, such that the script can continue running if at all possible. In JS’ mentality, keeping a page running, even if it might not completely function properly, is preferable to throwing an unhandled exception and completely crashing it.

    Whether or not that is the right approach is debatable, but there is at least some logic to it. Personally, I think that the proliferation of Node letting JS run outside of browsers exacerbates a lot of JS’ issues, but TypeScript does a lot to make it look like a more sensible language.



  • The thing that I think a lot of people forget about the first Avatar is that it was pretty much the first big blockbuster to be available with those RealD 3D glasses. I distinctly remember wanting to go see it so I could check out RealD and find out if it lived up to the hype.

    Of course, it had the James Cameron name recognition, so it was probably going to be pretty successful regardless, but I don’t know if it would have been quite so record-shattering if it weren’t for the novelty of RealD, combined with the higher ticket price of 3D showings.




  • Let’s leave the conspiracy theories to the far-right lunatics, please. The attempt killed an innocent bystander and the shooter was a right-winger. Even if they were cynical enough to stage the first part on purpose (and honestly, I wouldn’t put it past them), the shooter being one of their own completely undermines the entire point of staging something like that to begin with.

    Besides, this administration is way too incompetent to keep a secret. With the way Trump has been blundering his way through the Epstein accusations, do you really think he could keep his mouth shut about staging an assassination attempt?







  • jedibob5@lemmy.worldtoProgrammer Humor@lemmy.mlBefore and after programming
    link
    fedilink
    English
    arrow-up
    77
    arrow-down
    1
    ·
    10 months ago

    The whitespace doesn’t bother me. Any IDE worth a damn will manage that for you. As for the type system, yeah, I strongly prefer static typing, but for simpler projects I can see the convenience of it.

    My real issue with Python comes with managing a development environment when multiple developers are working on it. Dependency management in Python is a headache, and while in theory, virtual envs should help with synchronizing environments from machine to machine, I still find it endlessly fiddly with a bunch of things that can go wrong that are hard to diagnose.

    Python is great for small scripts, proofs-of-concept, and such, but I wouldn’t write anything more heavy-duty than that in it.





  • Not as drastic as the headline makes it out to be, or at least so they claim.

    “We acquired Tumblr to benefit from its differences and strengths, not to water it down. We love Tumblr’s streamlined posting experience and its current product direction,” the post explained. “We’re not changing that. We’re talking about running Tumblr’s backend on WordPress. You won’t even notice a difference from the outside,” it noted.

    We’ll see how that actually works out. Tumblr’s backend has always seemed rather… makeshift, so I’m curious to see how they manage to do that. Given Tumblr’s technical eccentricities, a backend migration could probably do a lot of good for the functionality of the site, if done properly. I have my doubts that WordPress’ engineers will be given the time and resources to do a full overhaul/refactor though, so I’m fully expecting even more janky, barely functional code stapling the two systems together.