Windows also uses linefeeds, they just also add carriage returns.
- 1 Post
- 77 Comments
I’ve been wondering why not
window.chrome == true
orBoolean(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 justtrue
andfalse
because they can save 2 to 3 characters that way.
Why the double negation?
Faresh@lemmy.mlto Programming@programming.dev•Forget "gif" vs "jif" debate. How does one pronounce "Forgejo"?English71·7 months agoI 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.mlto Programming@programming.dev•Forget "gif" vs "jif" debate. How does one pronounce "Forgejo"?English212·7 months agoI hope that someday they decide to add the diacritic to clear up the confusion (Forĝejo (/forˈd͡ʒe.jo/) is how it’s supposed to be pronounced). It’s 2024, there’s no reason we should be afraid of non-ASCII characters.
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.
That code was C++ or something like that. Not GDScript.
I tested this on Godot 4.2.1. You can write identifiers using a different writing system other than latin and you are allowed to have emojis in strings, but you aren’t allowed to use emojis in identifiers.
I think they exclude some unicode characters from being use in identifiers. At least last I tried it wouldn’t allow me to use an emoji as a variable name.
I’m using both.
Faresh@lemmy.mlto Mildly Infuriating@lemmy.world•Google now requires JavaScriptEnglish15·9 months agoI installed NoScript just a few days ago, because I’m forced to use a really weak computer that struggles to even browse the modern web. I feel like NoScript improved it a lot, and while quite a few websites broke (including lemmy) (but most will still display the content), I just set the ones that I need working to trusted, but the performance is still good (I should note I’m also using it in conjunction with an automatic tab discarter).
I however also don’t directly use Google. Both SearX and Yandex don’t need javascript, so I’m unaffected by these news, despite being a bit mad about it as a reflection of the direction the web is going as a whole.
Faresh@lemmy.mlto Programmer Humor@programming.dev•Still relevant, just substitute for win 11English9·9 months agoThe hover-over text says “Disclaimer: I have not actually tried the beta yet. I hear it’s quite pleasant and hardly Hitler-y at all.”
echo
andalias
are both shell commands. If the shell is running (which it obviously still is), those commands should still work, as it does not involve reading data from disk, but from memory.Edit: I just noticed the picture said
cd
was not found, which is also a shell built-in. So, I don’t know.
Faresh@lemmy.mlto Programmer Humor@lemmy.ml•spreading misinformation online (javascript??)English16·10 months agoI’m not sure, but I think that might have been part of the joke, seeing all the comments here.
Faresh@lemmy.mlto Programming@programming.dev•The graying open source community needs fresh bloodEnglish42·1 year agoa degree in game programming
That’s a thing?
When people say perl, they normally mean Perl 5. Perl 6 is now called Raku and is considered a different language.
Faresh@lemmy.mlto Programmer Humor@programming.dev•new preference war just droppedEnglish8·1 year agoIf it’s like Lisp, then
?
is just part of the symbol and doesn’t have any special syntatic meaning. In different Lisps it’s also convention to end predicate names with a?
or withP
(p for predicate)
I think this is a sort of anti-license, so I think the sort of people who use it reject copyright law.
If you have a fever.
deleted by creator