Lemmy
  • Communities
  • Create Post
  • Create Community
  • heart
    Support Lemmy
  • search
    Search
  • Login
  • Sign Up
jroid8@lemmy.world to Programmer Humor@lemmy.ml · 1 year ago

know the features of your language

lemmy.world

message-square
145
fedilink
623

know the features of your language

lemmy.world

jroid8@lemmy.world to Programmer Humor@lemmy.ml · 1 year ago
message-square
145
fedilink
  • nighty@lemmy.ml
    link
    fedilink
    arrow-up
    6
    ·
    1 year ago

    we can remove the return!

    const fn = (a, b) => a || b
    
    • nick@campfyre.nickwebster.dev
      link
      fedilink
      English
      arrow-up
      5
      ·
      1 year ago
      const fn = (a, b) => a ?? b
      
      • nighty@lemmy.ml
        link
        fedilink
        arrow-up
        3
        ·
        1 year ago

        Gotta love some peer review

      • shastaxc@lemm.ee
        link
        fedilink
        arrow-up
        2
        ·
        1 year ago

        But this just creates a function. You still have to call it.

        • nick@campfyre.nickwebster.dev
          link
          fedilink
          arrow-up
          2
          ·
          1 year ago
          ((a, b) => a ?? b)();
          

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.

  • 105 users / day
  • 593 users / week
  • 2.47K users / month
  • 10.4K users / 6 months
  • 1 local subscriber
  • 35.8K subscribers
  • 1.74K Posts
  • 37.5K Comments
  • Modlog
  • mods:
  • AgreeableLandscape@lemmy.ml
  • cat_programmer@lemmy.ml
  • BE: 0.19.10
  • Modlog
  • Instances
  • Docs
  • Code
  • join-lemmy.org