• 1 Post
  • 81 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.








  • Faresh@lemmy.mltoich_iel@feddit.orgich_iel
    link
    fedilink
    Deutsch
    arrow-up
    8
    ·
    9 months ago

    Ich glaube, nur wenige befürworten dies. Wenn wir aber Alkohol mit Tabak vergleichen, merken wir, dass Bierflaschen keine Bilder von kaputten Lebern tragen müssen, dass Alkohol in öffentlichen Medien geworben werden darf, und dass es nicht etwas wie ein Rauchoktoberfest gibt.







  • Faresh@lemmy.mltoProgrammer Humor@programming.devof=/dev/sda
    link
    fedilink
    English
    arrow-up
    7
    ·
    edit-2
    9 months ago

    echo and alias 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.