Skip Navigation

Posts
2
Comments
139
Joined
2 yr. ago

  • you have to fix the indentation because if not then the document won’t work or mean something completely different

    Whitespace has no meaning in json. You can indent however you want, or not at all.

    I'm assuming you're running into issues because you're writing json in a yaml file which does care about indentation, and you're only writing json in yaml to get access to comments.

    In which case it circles back around to: why not use toml? Whitespace formatting doesn't corrupt the file, and it has built in comments.

  • If you read the - as "dash":

     
        
    docker compose up
    docker system prune -a
    docker compose up
    
      
  • If you're reaching for yaml, why not use toml?

  • How would you mark a flag in your json settings file as deprecated?

  • That doesn't really work when you need two comments at the same level, since they'd both have the same key

  • Where do you put your comments in JSON files?

  • The solution is simple: Remove the dagger mid-combat.

    You could make the dagger too hot to hold and it falls out of reach (off a mountain, into rushing water, etc...)

    You could make the dagger dissolve away (through lava, acid, being eaten, etc...)

    You could make something take the dagger (disarming, stealing, etc...)

    A hag/genie/etc could place a curse on the PC (holding anything makes them experience immense pain and drop what they're holding, anything dagger they hold is turned into a spoon, etc...)

  • I think you're forgetting about the Animation API.

    Example: making something flash once to get a user's attention

     js
        
    element.animate( {opacity: [1, 0, 1]}, { duration: 500 } );
    
      

    Use CSS animations everywhere you can, but if you need to be able to hook into an animation (to dynamically change the speed, cancel something, sync animations together, etc...) you should be using the Animation API.

    There's never a need for jQuery.

  • What do you still need babel for?

    The only features that come to mind for anyone who needs to reach out to babel today would be those working on the tc39 proposals themselves.

  • What do you mean about animations?

    Every use-case I can think about is already well supported by vanilla css/js without libraries or frameworks. (not including really out-there use-cases like game engines or image editors)

    Can you give an example?

  • DOM attributes are built for browsers and frameworks to take advantage of.

    The style of some of those frameworks to stick symbols in there is downright weird. But that only goes against those particular frameworks. It doesn't impact how good DOM attributes actually are.

  • Svelte uses labels, so Svelte itself is weird compared to everything. Except in a way to assembly and 50s goto-control-flow styled code.

  • But why bother with creating a new language

    I can just do items.map(item => 〈Item key={item.id} item={item} /〉)

    I don't think this is a very good example. You've just said not to use a new language, then used JSX, a new language.

  • I have yet to be given an example of something a “general” intelligence would be able to do that an LLM can’t do.

    Presenting...

    Something a general intelligence can do that an LLM can't do:

    Play chess: https://www.youtube.com/watch?v=kvTs_nbc8Eg

    Why can't it play it? Because LLM's don't have memory, so they can't work with logic. They are the same as the little "next word predictor" in your phone's keyboard. It just says what it thinks is the most probable next word based on previous words, it's not actually thinking or understanding anything. So instead, we get moves that don't make sense or are completely invalid.

  • Undertale for sure. (I'm a long time gamer, and I consider this in my top 5 games now)

    It has such a slow start, and meh graphics going into it. It took me 3 separate years trying to get into it, but once I got past the first 2 hours, man did the humour, characters and music blow me away.

    If you're worried you won't get into it:

    • The graphics start out rough to make the better graphics later on really stand out
    • The slow start is actually them setting things up a whole bunch of things that pay off later, stick with it. (Also since the game is only 7 hours and there are multiple endings, you will replay it to get the other endings and notice just how much content is hidden at the start that you didn't understand the first time playing it).

    I'm so glad I came back and stuck with it.

    I was just trying to clear something out of my library and ended up with the most powerful gaming attachment I've had in over a decade.

  • My long bet: The EU will force Google Search + Ads, to separate from Youtube within a decade.

  • Did you purge and update your filters?

    Note: I'm not talking about turning filters off then back on, I'm talking about updating the version of each filter itself.

  • it looks like JS/TS with arrow functions.

    JS/TS already has arrow functions.