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

know the features of your language

lemmy.world

message-square
125
link
fedilink
615

know the features of your language

lemmy.world

jroid8@lemmy.world to Programmer Humor@lemmy.ml · 2 years ago
message-square
125
link
fedilink
  • bamboo@lemm.ee
    link
    fedilink
    arrow-up
    18
    arrow-down
    1
    ·
    2 years ago

    I’m learning swift and I actually just discovered ?? today. Am I missing out in other languages?

    • qaz@lemmy.world
      link
      fedilink
      arrow-up
      17
      ·
      2 years ago

      C# and Kotlin both have it

    • hstde@feddit.de
      link
      fedilink
      arrow-up
      13
      ·
      2 years ago

      Yes, it’s very useful when applied correctly.

      I’m always disappointed when I remember, that I can’t use such a feature, because I’m stuck using Java.

      • jape@infosec.pub
        link
        fedilink
        arrow-up
        1
        ·
        2 years ago

        Maybe you’r using an older version of Java? Works fine for me.

        • hstde@feddit.de
          link
          fedilink
          arrow-up
          1
          ·
          edit-2
          2 years ago

          New versions of java have a null coalescing operator?

          I didn’t know that.

          Edit: a short search didn’t return any answers, as far as I can see java doesn’t have this operator, the closest thing is the ternary if operator.

    • Psaldorn@lemmy.world
      link
      fedilink
      arrow-up
      9
      ·
      2 years ago

      PHP too

    • effward@lemmy.world
      link
      fedilink
      English
      arrow-up
      7
      ·
      2 years ago

      C#

    • reboot6675@sopuli.xyz
      link
      fedilink
      arrow-up
      7
      ·
      2 years ago

      JavaScript and TypeScript too

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.

  • 17 users / day
  • 1.49K users / week
  • 3.24K users / month
  • 9.07K users / 6 months
  • 75 local subscribers
  • 36.4K subscribers
  • 1.46K Posts
  • 33.9K Comments
  • Modlog
  • mods:
  • AgreeableLandscape@lemmy.ml
  • cat_programmer@lemmy.ml
  • BE: 0.19.11
  • Modlog
  • Legal
  • Instances
  • Docs
  • Code
  • join-lemmy.org