awful.systems
  • Communities
  • Create Post
  • 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
138
fedilink
641

know the features of your language

lemmy.world

@jroid8@lemmy.world to Programmer Humor@lemmy.ml • 2 years ago
message-square
138
fedilink
  • @bamboo@lemm.ee
    link
    fedilink
    18•2 years ago

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

    • qaz
      link
      fedilink
      17•2 years ago

      C# and Kotlin both have it

    • @hstde@feddit.de
      link
      fedilink
      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
        1•2 years ago

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

        • @hstde@feddit.de
          link
          fedilink
          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
      link
      fedilink
      9•2 years ago

      PHP too

    • @reboot6675@sopuli.xyz
      link
      fedilink
      7•2 years ago

      JavaScript and TypeScript too

    • @effward@lemmy.world
      link
      fedilink
      English
      7•2 years ago

      C#

Programmer Humor@lemmy.ml

!programmerhumor@lemmy.ml

remote_follow_modal_title

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.
  • 321 users / day
  • 1.05K users / week
  • 3.08K users / month
  • 9.31K users / 6 months
  • 37.1K subscribers
  • 1.71K Posts
  • 31.2K Comments
  • Modlog
  • mods:
  • @AgreeableLandscape@lemmy.ml
  • @cat_programmer@lemmy.ml
  • BE: 0.19.3
  • Modlog
  • Instances
  • Docs
  • Code
  • join-lemmy.org