• 3 Posts
  • 36 Comments
Joined 1 year ago
cake
Cake day: June 8th, 2023

help-circle




  • I feel the same way. Designing good, opinionated APIs is HARD, but it also provides the best experience for both the author and the consumer.

    • Prettier is the undisputed king of JS formatters because it has no options by design. You set and forget.
    • One of the reasons iOS is so successful is because they lock down their APIs and put strict standards on apps, making it hard to write something that doesn’t at least look good and slot into the OS well.

    Among other examples.


  • Tekhne@sh.itjust.workstoProgrammer Humor@lemmy.mlgot him
    link
    fedilink
    arrow-up
    9
    arrow-down
    1
    ·
    2 months ago

    In a world where your IDE and maybe also compiler should warn you about using unicode literals in source code, that’s not much of a concern.

    VSCode (and I’m sure other modern IDEs, but haven’t tested) will call out if you’re using a Unicode char that could be confused with a source code symbol (e.g. i and ℹ️, which renders in some fonts as a styled lowercase i without color). I’m sure it does the same on the long equals sign.

    Any compiler will complain (usually these days with a decent error message) if someone somehow accidentally inserts an invalid Unicode character instead of typing ==.











  • That’s cool! I’ve never heard of a contronym before.

    However the difference is that most of those have different usages - e.g. if you say “I’m going to clip the hedges” vs “I’m going to clip something to the hedges”, you have to use the word differently. With “dust”, it’s different based on the context, because you need to be talking about some sort of powder to be talking about putting something on. If I said “I’m going to dust the furniture”, you would assume I meant clean, but if I said “dust the furniture with cleaning powder”, you’d probably understand the difference. Different locations and activities also help here (e.g. skiing, cake decorating, cleaning, etc).

    Nonplussed on the other hand likely derives its alternate meaning from an incorrect understanding of the original meaning, and so it’s used in the exact same manner and context to mean the exact inverse. If I say the sentence “he was nonplussed at the news”, which meaning am I referring to?

    “Table” is another contronym that’s ACTUALLY confusing (learned that one from this post as well).