• 0 Posts
  • 11 Comments
Joined 4 months ago
cake
Cake day: February 15th, 2025

help-circle







  • capybara@lemm.eetoProgrammer Humor@programming.devJavaScript
    link
    fedilink
    English
    arrow-up
    36
    arrow-down
    5
    ·
    3 days ago

    To start off… Using arithmetic operators on strings in combination with integers is a pure skill issue. Let’s disregard this.

    If you were to use + where one part is a string, it’s natural to assume a string appending is desired since + is commonly used as a function for this. On the other hand, - is never used for any string operation. Therefore, it’s safe to assume that it relates to actual artihmetics and any strings should therefore be converted to numerical values.

    This is an issue with untyped languages. If you don’t like it, use typescript. End of story.


  • capybara@lemm.eetoProgrammer Humor@programming.devthe beautiful code
    link
    fedilink
    English
    arrow-up
    2
    arrow-down
    1
    ·
    11 days ago

    No one cares about the definition of knowledge to this extent except for philosophers. The person who originally used the word “know” most definitely didn’t give a single shit about the philosophical perspective. Therefore, you shitting yourself a word not being used exactly as you’d like instead of understanding the usage in the context is very much semantics.