Star Trek Website
  • Communities
  • Create Post
  • heart
    Support Lemmy
  • search
    Search
  • Login
  • Sign Up
☆ Yσɠƚԋσʂ ☆@lemmy.ml to Programmer Humor@lemmy.mlEnglish · 3 years ago

JavaScript devs be like

lemmy.ml

message-square
9
link
fedilink
14

JavaScript devs be like

lemmy.ml

☆ Yσɠƚԋσʂ ☆@lemmy.ml to Programmer Humor@lemmy.mlEnglish · 3 years ago
message-square
9
link
fedilink
alert-triangle
You must log in or # to comment.
  • BrianTheeBiscuiteer@lemmy.world
    link
    fedilink
    English
    arrow-up
    3
    ·
    3 years ago

    Total shitpost. We use let now.

    • 𝘋𝘪𝘳𝘬@lemmy.ml
      link
      fedilink
      English
      arrow-up
      2
      ·
      3 years ago

      You mean const.

      • Crackhappy@lemmy.world
        link
        fedilink
        English
        arrow-up
        2
        ·
        3 years ago

        Const ipated = 1;

    • TheInsane42@lemmy.ml
      link
      fedilink
      English
      arrow-up
      1
      ·
      3 years ago

      Unless you code for an ancient java class that includes js code… (yuck)

      No, no rewrite, it’s going to de replaced soon™… (like the cobol code)

  • HoornseBakfiets@feddit.nl
    link
    fedilink
    English
    arrow-up
    3
    ·
    edit-2
    2 years ago

    deleted by creator

  • Hypnosis4162@lemmy.world
    link
    fedilink
    English
    arrow-up
    2
    ·
    3 years ago

    I code in Python. Can someone explain what is that magic require function here with a bunch of strings?

    • ☆ Yσɠƚԋσʂ ☆@lemmy.mlOP
      link
      fedilink
      English
      arrow-up
      0
      arrow-down
      2
      ·
      3 years ago

      it’s how modules get loaded with node.js

  • beforan@lemm.ee
    link
    fedilink
    English
    arrow-up
    1
    ·
    3 years ago

    Either that for the sweet sweet node_modules, or this for the code golf:

    Array(100).fill().forEach((_, n) => console.log((++n % 3 ? "" : "Fizz") + (n % 5 ? "" : "Buzz") || n));

  • ditherwither@lemmy.world
    link
    fedilink
    English
    arrow-up
    1
    ·
    3 years ago

    This is art

  • tony@l.bxy.sh
    link
    fedilink
    English
    arrow-up
    1
    ·
    3 years ago

    It doesn’t look like condition is imported, only ifCondition so I’m not sure that will run

Programmer Humor@lemmy.ml

programmerhumor@lemmy.ml

Subscribe from Remote Instance

Create a post
You are not logged in. However you can subscribe from another Fediverse account, for example Lemmy or Mastodon. To do this, paste the following into the search field of your instance: !programmerhumor@lemmy.ml

Post funny things about programming here! (Or just rant about your favourite programming language.)

Rules:

  • Posts must be relevant to programming, programmers, or computer science.
  • No NSFW content.
  • Jokes must be in good taste. No hate speech, bigotry, etc.
Visibility: Public
globe

This community can be federated to other instances and be posted/commented in by their users.

  • 103 users / day
  • 109 users / week
  • 1.74K users / month
  • 5.58K users / 6 months
  • 123 local subscribers
  • 41.6K subscribers
  • 2K Posts
  • 40.3K Comments
  • Modlog
  • mods:
  • AgreeableLandscape@lemmy.ml
  • cat_programmer@lemmy.ml
  • BE: 0.19.15
  • Modlog
  • Legal
  • Instances
  • Docs
  • Code
  • join-lemmy.org