halubilo.social
  • Communities
  • Create Post
  • Create Community
  • heart
    Support Lemmy
  • search
    Search
  • Login
  • Sign Up
@[email protected] to Programmer [email protected] • 1 year ago

Life is hard

lemmy.world

message-square
38
fedilink
496

Life is hard

lemmy.world

@[email protected] to Programmer [email protected] • 1 year ago
message-square
38
fedilink
alert-triangle
You must log in or register to comment.
  • @[email protected]
    link
    fedilink
    English
    49•
    edit-2
    1 year 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.

    • @[email protected]
      link
      fedilink
      54•1 year ago

      Its javascript, itll just let you do that

      • @[email protected]
        link
        fedilink
        40•1 year ago

        it’ll just let you do that

        Pretty much sums up JavaScript’s entire philosophy.

        • @[email protected]
          link
          fedilink
          3•1 year ago

          Let me just coalesce these types for you.

        • @[email protected]
          link
          fedilink
          -17•1 year ago

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

          • Ziglin (it/they)
            link
            fedilink
            6•1 year 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🇱🇹
              link
              fedilink
              2•1 year ago

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

              Gets me every time.

              • Ziglin (it/they)
                link
                fedilink
                2•1 year 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
            link
            fedilink
            2•
            edit-2
            1 year 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.

          • @[email protected]
            link
            fedilink
            English
            -2•
            edit-2
            1 year 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

    • @[email protected]
      link
      fedilink
      English
      15•1 year ago

      const long pain = 1;

      • @[email protected]
        link
        fedilink
        3•1 year ago

        1L

    • @[email protected]OP
      link
      fedilink
      8•1 year ago

      :any

    • @[email protected]
      link
      fedilink
      8•1 year ago

      void

      • @[email protected]
        link
        fedilink
        4•1 year ago

        Maybe…

        const pain = Infinity
        
    • @[email protected]
      link
      fedilink
      6•1 year ago

      Ackshually you don’t need a type qualifier in C

      • @[email protected]
        link
        fedilink
        English
        7•
        edit-2
        1 year 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.

      • @[email protected]
        link
        fedilink
        English
        3•1 year ago

        Really? TIL.

        • @[email protected]
          link
          fedilink
          4•1 year ago

          Defaults to int if I’m not mistaken.

      • @[email protected]
        link
        fedilink
        1•1 year ago

        Huh?

  • @[email protected]
    link
    fedilink
    33•1 year ago

    Meanwhile in France: Lunch time!

    • @[email protected]
      link
      fedilink
      9•1 year ago

      can’t stop eating though

      • @[email protected]
        link
        fedilink
        12•1 year ago

        Can’t stop eating dough

        • @[email protected]
          link
          fedilink
          3•1 year ago

          Baguette du fromage

    • oce 🐆
      link
      fedilink
      5•1 year ago

      For mage in pain:

  • @[email protected]
    link
    fedilink
    English
    13•1 year ago

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

    • @[email protected]
      link
      fedilink
      4•1 year 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
    link
    fedilink
    English
    12•1 year ago

    The variable is not initialised.

  • @[email protected]
    link
    fedilink
    English
    11•1 year ago

    And pain is immutable

  • @[email protected]
    link
    fedilink
    11•1 year ago

    Age or experience? Because both are funny

    • @[email protected]
      link
      fedilink
      English
      1•
      edit-2
      1 year ago

      const_cast<pain>

  • 🇰 🌀 🇱 🇦 🇳 🇦 🇰 🇮 🏆
    link
    fedilink
    English
    7•1 year ago

    For (life) { suffering; }

  • @[email protected]
    link
    fedilink
    English
    7•1 year ago

    I spent those years in dll hell.

    • @[email protected]
      link
      fedilink
      5•1 year ago

      .so please, I use arch btw.

  • @[email protected]
    link
    fedilink
    5•1 year ago

    bool theEnd;

  • @[email protected]
    link
    fedilink
    3•1 year ago

    Is that a vaio?

  • @[email protected]
    link
    fedilink
    1•11 months ago

    Mood

  • @[email protected]
    link
    fedilink
    1•1 year ago

    Lol

Programmer [email protected]

[email protected]

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
  • 2.16K users / day
  • 5.46K users / week
  • 9.37K users / month
  • 18.2K users / 6 months
  • 23.8K subscribers
  • 1.47K Posts
  • 53.5K Comments
  • Modlog
  • mods:
  • Feyter
  • adr1an
  • @[email protected]
  • Pierre-Yves Lapersonne
  • BE: 0.19.3
  • Modlog
  • Instances
  • Docs
  • Code
  • join-lemmy.org