Dendarii
  • Communities
  • Create Post
  • Create Community
  • heart
    Support Lemmy
  • search
    Search
  • Login
  • Sign Up
irelephant [he/him]🍭@lemm.ee to Programmer Humor@lemmy.mlEnglish · 4 months ago

looks good to me

lemm.ee

external-link
message-square
21
fedilink
  • cross-posted to:
  • [email protected]
0
external-link

looks good to me

lemm.ee

irelephant [he/him]🍭@lemm.ee to Programmer Humor@lemmy.mlEnglish · 4 months ago
message-square
21
fedilink
  • cross-posted to:
  • [email protected]
alert-triangle
You must log in or register to comment.
  • devilish666@lemmy.world
    link
    fedilink
    arrow-up
    0
    ·
    4 months ago

    Push it to prod & see the world burns around you

  • Arthur Besse@lemmy.ml
    link
    fedilink
    arrow-up
    0
    ·
    4 months ago

    except: pass

  • DickFiasco@lemm.ee
    link
    fedilink
    arrow-up
    0
    ·
    4 months ago

    Ship it.

  • Snot Flickerman@lemmy.blahaj.zone
    link
    fedilink
    English
    arrow-up
    0
    ·
    4 months ago

    Donald Trump does coding.

  • konalt@lemmy.world
    link
    fedilink
    arrow-up
    0
    ·
    4 months ago

    I wrap every line of code in a try catch block, even my try catch blocks are in try catch blocks just in case the first accidentally drops it after catching it

    • CaptainBlagbird@lemmy.world
      link
      fedilink
      arrow-up
      0
      ·
      4 months ago

      Yo dawg, I heard you like try-catch blocks

  • xmunk@sh.itjust.works
    link
    fedilink
    arrow-up
    0
    ·
    4 months ago

    Still not as excellent as On Error Resume Next

    Imagine the sheer idiocy genius required to add a language feature where, if an error occurred, the handling method is to just pretend that line of code never existed and continue onto the next line.

    VBA is truly the language of savants.

    • intensely_human@lemm.ee
      link
      fedilink
      arrow-up
      0
      ·
      4 months ago

      So catching errors and doing nothing? That exists in every language except maybe BASIC?

      • Skull giver@popplesburger.hilciferous.nl
        link
        fedilink
        arrow-up
        0
        ·
        4 months ago

        Ignoring every exception, including divisions by zero, is something I’ve never seen outside of BASIC and shell scripting. Even C and assembly will shit themselves when you do some of the shit that ON ERROR RESUME NEXT will ignore.

      • ℍ𝕂-𝟞𝟝@sopuli.xyz
        link
        fedilink
        English
        arrow-up
        0
        ·
        4 months ago

        Catching individual errors is fine. Having all errors be ignored by default is weird.

      • locuester@lemmy.zip
        link
        fedilink
        English
        arrow-up
        0
        ·
        4 months ago

        Very different. This means default ignore all errors and continue to the next line. You’d have to explicitly catch every line in most(all?) other languages.

    • wizardbeard@lemmy.dbzer0.com
      link
      fedilink
      English
      arrow-up
      0
      ·
      4 months ago

      PowerShell does that by default, and it’s my least favorite feature in my most used language.

      $ErrorActionPreference = Stop

      At the start of almost every script.

      • Cysioland@lemmygrad.ml
        link
        fedilink
        arrow-up
        0
        ·
        4 months ago
        set -e
        
    • thebestaquaman@lemmy.world
      link
      fedilink
      arrow-up
      0
      ·
      4 months ago

      set -e

  • FiniteLooper@lemm.ee
    link
    fedilink
    English
    arrow-up
    0
    ·
    4 months ago

    I came across a stack overflow recently about how to do something in a jasmine unit test. Someone gave a solution of “I just changed the test to xit(“… and now there are no errors!”

  • TimeSquirrel@kbin.melroy.org
    link
    fedilink
    arrow-up
    0
    ·
    4 months ago

    Like putting electrical tape over your check engine light.

  • Lucy :3@feddit.org
    link
    fedilink
    arrow-up
    0
    ·
    edit-2
    4 months ago

    Average node bug solving

    • miss phant@lemmy.blahaj.zone
      link
      fedilink
      arrow-up
      0
      ·
      4 months ago
      process.on('uncaughtException', console.error)
      
  • Pickle_Jr@lemmy.dbzer0.com
    link
    fedilink
    arrow-up
    0
    ·
    edit-2
    4 months ago

    It works on their machine though!

  • Artemis@toot.cafe
    link
    fedilink
    arrow-up
    0
    ·
    4 months ago

    @Irelephant “Fixed dem warnings boss.”

  • Bosht@lemmy.world
    link
    fedilink
    English
    arrow-up
    0
    ·
    4 months ago

    That’s fucking hilarious

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

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.

  • 6 users / day
  • 29 users / week
  • 181 users / month
  • 1.62K users / 6 months
  • 0 local subscribers
  • 35.6K subscribers
  • 1.78K Posts
  • 36.8K Comments
  • Modlog
  • mods:
  • AgreeableLandscape@lemmy.ml
  • cat_programmer@lemmy.ml
  • BE: 0.19.9
  • Modlog
  • Instances
  • Docs
  • Code
  • join-lemmy.org