ProIT
  • Communities
  • Create Post
  • heart
    Support Lemmy
  • search
    Search
  • Login
  • Sign Up
hypertown@lemmy.world to Programmer Humor@programming.dev · 11 months ago

Life is hard

lemmy.world

external-link
message-square
38
link
fedilink
496
external-link

Life is hard

lemmy.world

hypertown@lemmy.world to Programmer Humor@programming.dev · 11 months ago
message-square
38
link
fedilink
alert-triangle
You must log in or register to comment.
  • henfredemars@infosec.pub
    link
    fedilink
    English
    arrow-up
    49
    ·
    edit-2
    11 months ago

    Missing type or identifier.

    A const what?

    Also, I read that you have to assign a const when it is declared. Something doesn’t feel right about this statement.

    • Kaboom@reddthat.com
      link
      fedilink
      arrow-up
      57
      arrow-down
      3
      ·
      11 months ago

      Its javascript, itll just let you do that

      • vithigar@lemmy.ca
        link
        fedilink
        arrow-up
        40
        ·
        11 months ago

        it’ll just let you do that

        Pretty much sums up JavaScript’s entire philosophy.

        • jaybone@lemmy.world
          link
          fedilink
          arrow-up
          3
          ·
          11 months ago

          Let me just coalesce these types for you.

        • Kaboom@reddthat.com
          link
          fedilink
          arrow-up
          4
          arrow-down
          21
          ·
          11 months ago

          Imo, its better for it. A tool shouldnt tell the user what to do

          • Ziglin (it/they)@lemmy.world
            link
            fedilink
            arrow-up
            7
            arrow-down
            1
            ·
            11 months ago

            But the CPU would be thoroughly confused in many cases. Like if you added a number with a string. This means low level tools have too and therefore people who do low level programming are confused and the generally carefree has rules can make it difficult to debug js.

            Also I think rust making you write “safe” code unless you explicitly tell it otherwise is a great thing.

            So I think that tools telling the user that they’re doing something wrong is great, tools telling the user to stick with physical limitations for better performance are completely valid but what js does seem really weird with having constants be reassignable, making them nothing but labels combined with HTML I find it even more annoying.

            • Justas🇱🇹@sh.itjust.works
              link
              fedilink
              arrow-up
              2
              ·
              11 months ago

              [‘a’] + [‘b’] = ‘ab’

              Gets me every time.

              • Ziglin (it/they)@lemmy.world
                link
                fedilink
                arrow-up
                2
                ·
                11 months ago

                I’m always more confused by adding integers to strings or something being an empty object because something else was undefined and the console didn’t bother to tell me.

          • Ephera@lemmy.ml
            link
            fedilink
            arrow-up
            2
            ·
            edit-2
            11 months ago

            I think, most of us consider it part of the job of a good tool, that it prevents us from using it wrongly. Allows us to use it much more recklessly.

          • skulbuny@sh.itjust.works
            link
            fedilink
            English
            arrow-up
            2
            arrow-down
            4
            ·
            edit-2
            11 months ago

            You’re downvoted, but you’re 100% right. The web is designed to not break. Engineers who can’t accept that don’t get to complain

    • TurtleTourParty@midwest.social
      link
      fedilink
      English
      arrow-up
      15
      ·
      11 months ago

      const long pain = 1;

      • jaybone@lemmy.world
        link
        fedilink
        arrow-up
        3
        ·
        11 months ago

        1L

    • 9point6@lemmy.world
      link
      fedilink
      arrow-up
      8
      ·
      11 months ago

      void

      • S0UPernova@lemmy.world
        link
        fedilink
        arrow-up
        4
        ·
        11 months ago

        Maybe…

        const pain = Infinity
        
    • hypertown@lemmy.worldOP
      link
      fedilink
      arrow-up
      8
      ·
      11 months ago

      :any

    • pipe01@programming.dev
      link
      fedilink
      arrow-up
      7
      arrow-down
      1
      ·
      11 months ago

      Ackshually you don’t need a type qualifier in C

      • Static_Rocket@lemmy.world
        link
        fedilink
        English
        arrow-up
        7
        ·
        edit-2
        11 months ago

        Well, assuming you meant type specifier, at least not before C99. After that it is required. C23 explicitly states that a type specifier is required for all declarations.

        If you actually meant type qualifier, then no. That was never required.

      • henfredemars@infosec.pub
        link
        fedilink
        English
        arrow-up
        3
        ·
        11 months ago

        Really? TIL.

        • zaphod@sopuli.xyz
          link
          fedilink
          arrow-up
          4
          ·
          11 months ago

          Defaults to int if I’m not mistaken.

      • jaybone@lemmy.world
        link
        fedilink
        arrow-up
        1
        ·
        11 months ago

        Huh?

  • randompasta@lemmy.today
    link
    fedilink
    arrow-up
    33
    ·
    11 months ago

    Meanwhile in France: Lunch time!

    • lockhart@lemmy.ml
      link
      fedilink
      arrow-up
      9
      ·
      11 months ago

      can’t stop eating though

      • onion@feddit.de
        link
        fedilink
        arrow-up
        12
        ·
        11 months ago

        Can’t stop eating dough

        • jaybone@lemmy.world
          link
          fedilink
          arrow-up
          3
          ·
          11 months ago

          Baguette du fromage

    • oce 🐆@jlai.lu
      link
      fedilink
      arrow-up
      5
      ·
      11 months ago

      For mage in pain:

  • jflorez@sh.itjust.works
    link
    fedilink
    English
    arrow-up
    13
    ·
    11 months ago

    If they move to Python they can just have pain without constant 😜

    • lugal@sopuli.xyz
      link
      fedilink
      arrow-up
      4
      ·
      11 months ago

      And if they learned French instead, they had bread but this is not how it works. We don’t always get what we want nor what we deserve

  • Richard@lemmy.world
    link
    fedilink
    English
    arrow-up
    12
    ·
    11 months ago

    The variable is not initialised.

  • NegativeLookBehind@lemmy.world
    link
    fedilink
    English
    arrow-up
    11
    ·
    11 months ago

    And pain is immutable

  • danhab99@programming.dev
    link
    fedilink
    arrow-up
    11
    ·
    11 months ago

    Age or experience? Because both are funny

    • TheReturnOfPEB@reddthat.com
      link
      fedilink
      English
      arrow-up
      1
      ·
      edit-2
      11 months ago

      const_cast<pain>

  • 🇰 🌀 🇱 🇦 🇳 🇦 🇰 🇮 🏆@yiffit.net
    link
    fedilink
    English
    arrow-up
    7
    ·
    11 months ago

    For (life) { suffering; }

  • ArbitraryValue@sh.itjust.works
    link
    fedilink
    English
    arrow-up
    7
    ·
    11 months ago

    I spent those years in dll hell.

    • jaybone@lemmy.world
      link
      fedilink
      arrow-up
      5
      ·
      11 months ago

      .so please, I use arch btw.

  • flerp@lemm.ee
    link
    fedilink
    arrow-up
    5
    ·
    11 months ago

    bool theEnd;

  • jaybone@lemmy.world
    link
    fedilink
    arrow-up
    3
    ·
    11 months ago

    Is that a vaio?

  • laserm@lemmy.world
    link
    fedilink
    arrow-up
    1
    ·
    10 months ago

    Mood

  • const_void@lemmy.ml
    link
    fedilink
    arrow-up
    2
    arrow-down
    1
    ·
    11 months ago

    Lol

Programmer Humor@programming.dev

programmer_humor@programming.dev

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: [email protected]

Welcome to Programmer Humor!

This is a place where you can post jokes, memes, humor, etc. related to programming!

For sharing awful code theres also Programming Horror.

Rules

  • Keep content in english
  • No advertisements
  • Posts must be related to programming or programmer topics
Visibility: Public
globe

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

  • 1.34K users / day
  • 4.91K users / week
  • 9.12K users / month
  • 17.8K users / 6 months
  • 1 local subscriber
  • 23.2K subscribers
  • 1.39K Posts
  • 52.3K Comments
  • Modlog
  • mods:
  • Feyter@programming.dev
  • adr1an@programming.dev
  • BurningTurtle@programming.dev
  • Pierre-Yves Lapersonne@programming.dev
  • BE: 0.19.11
  • Modlog
  • Instances
  • Docs
  • Code
  • join-lemmy.org