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

help-circle





  • You clearly do not understand the difference between a specification and a schema. On top of that you clearly don’t even understand what you wrote down doesn’t even agree with you. No where in that spec does it say anything about auto casting a double or float to an int.


  • tyler@programming.devtoProgrammer Humor@lemmy.mlEvil Ones
    link
    fedilink
    arrow-up
    1
    arrow-down
    1
    ·
    edit-2
    4 months ago

    JSON schema is not a standard lol. 😂 it especially isn’t a standard across languages. And it most definitely isn’t an ISO standard 🤣. JSON Data Interchange Format is a standard, but it wasn’t published until 2017, and it doesn’t say anything about 1.0 needs to auto cast to 1 (because that would be fucking idiotic). https://datatracker.ietf.org/doc/html/rfc8259

    JSON Schema does have a draft in the IETF right now, but JSON Schema isn’t a specification of the language, it’s for defining a schema for your code. https://datatracker.ietf.org/doc/draft-handrews-json-schema/

    Edit: and to add to that, JavaScript has a habit of declaring their dumb bugs as “it’s in the spec” years after the fact. Just because it’s in the spec doesn’t mean it’s not a bug and just because it’s in the spec doesn’t mean everywhere else is incorrect.


  • JavaScript only has a single number type, so 0.0 is the same as 0. Thus when you are sending a JS object as JSON, in certain situations it will literally change 0.0 to 0 for you and send that instead (same with any number that has a zero decimal). This will cause casting errors in other languages when they attempt to deserialize ints into doubles or floats.



  • tyler@programming.devtoProgrammer Humor@lemmy.ml1 hour in Java
    link
    fedilink
    arrow-up
    2
    arrow-down
    2
    ·
    8 months ago

    No, it really is unique to python. Most other languages have one or two package managers, not 15 (15 is not an exaggeration). Ruby has one. Rust has one. Java has two (maven and gradle). Elixir has one. Swift has one.

    Python programmers think it’s normal when it most definitely is not. Even your IntelliJ example isn’t correct because IntelliJ will literally install and set up the jdk for you, but pycharm is completely unable to do that and it’s not because JetBrains hasn’t tried. Python tooling is just really really really bad.




  • tyler@programming.devtoProgrammer Humor@lemmy.ml1 hour in Java
    link
    fedilink
    arrow-up
    6
    arrow-down
    1
    ·
    8 months ago

    What I mean by that is that Python tooling is terrible. There’s five different ways to do everything, which you have to decide between, and in the end, they all have weird limitations (which is probably why four others exist).

    There’s actually at least 15 different ways (the fifteenth one is called rye and it’s where I got that article from). And yes your entire post is super accurate. The pycharm thing is ridiculous too because RubyMine is excellent in comparison. You just pull in a library with Ruby’s excellent (singular) package manager, and then RubyMine is able to autocomplete it pretty much perfectly. PyCharm can’t even manage to figure out that you added a new dependency to whatever flavor of the week package manager you’re using this time.



  • I’m gonna go ahead and say that the lawyers I implemented it for understand it a lot better than you (and yes even Google’s lawyers).

    If not in the EU, this doesn’t impact a business not planning to operate there.

    it does if you ever will operate there though. Many many companies eventually need to do business in the EU. So not following GDPR is just asking to never be allowed to operate there ever. Fine for local newspapers, not fine for a finance company that eventually needs to do business across national boundaries.





  • Mac comes built in with those shortcuts just by holding command. Command left and right is home and end. Command up and down is page up page down.

    And yeah there are definitely some holes? But Karabiner-Elements closes them up better than anything on windows does.

    For navigation by keyboard you need to turn off a bunch of the animations and it’s very very snappy. I use Hammerspoon and can jump between apps faster than on Linux and windows.