• 1 Post
  • 174 Comments
Joined 3 years ago
cake
Cake day: March 25th, 2022

help-circle



  • I’ve been wondering why not window.chrome == true or Boolean(window.chrome), but it turns out that the former doesn’t work and that == has essentially no use unless you remember some completely arbitrary rules, and that JS developers would complain that the latter is too long given the fact that I’ve seen javascript code using !0 for true and !1 for false, instead of just true and false because they can save 2 to 3 characters that way.






  • I don’t see a reason to spell it phonetically when it is a real word (forge in esperanto). A phonetic spelling would also only be more digestible to readers who know the language the phonetic spelling is tailored at (phonetic spelling is language specific as different languages use different ways to represent different sounds).

    ĝ is simply the english sound of the consonants in the following words: “john”, “gem”, “jar”. And j is pronounced as the y in “yes” and “yoink”

    The diacritic would clear up confusion, because “g” without the diacritic has different sound (like the g in “gamma”, “girl”, “go” in english). The diacritic as a bonus would also makes it clear that it isn’t supposed to be pronounced it as if it were in english, because english does not use the ^ diacritic. It would also extinguish my annoyance at seeing a misspelled word being used as a trademark.









  • Faresh@lemmy.mltoProgramming@programming.devSelf-documenting Code
    link
    fedilink
    English
    arrow-up
    7
    arrow-down
    1
    ·
    9 months ago

    Comments are super useful but soooo overused

    I think overusing comments is a non-issue. I’d rather have over-commented code that doesn’t need it, over undocumented code without comments that needs them. If this over-commenting causes some comments to be out of date, those instances should hopefully be obvious from the code itself or the other comments and easily fixed.


  • Btw, what is a non-local RSS reader? I have come across multiple that RSS readers that advertise being “self-hosted” and I’m confused about that since in my mind RSS readers are simply clients that periodically query different servers for an .rss file, so I’m confused about where there is anything to host besides the host of the .rss feed.