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

looks good to me

lemm.ee

message-square
20
fedilink
  • cross-posted to:
  • programmer_humor@programming.dev
390

looks good to me

lemm.ee

irelephant [he/him]🍭 to Programmer Humor@lemmy.mlEnglish • 4 months ago
message-square
20
fedilink
  • cross-posted to:
  • programmer_humor@programming.dev
alert-triangle
You must log in or register to comment.
  • @xmunk@sh.itjust.works
    link
    fedilink
    94•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.

    • @wizardbeard@lemmy.dbzer0.com
      link
      fedilink
      English
      25•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
        2•4 months ago
        set -e
        
    • @thebestaquaman@lemmy.world
      link
      fedilink
      4•4 months ago

      set -e

    • @intensely_human@lemm.ee
      link
      fedilink
      2•4 months ago

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

      • ℍ𝕂-𝟞𝟝
        link
        fedilink
        English
        7•4 months ago

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

      • @locuester@lemmy.zip
        link
        fedilink
        English
        3•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.

      • Skull giver
        link
        fedilink
        2•
        edit-2
        3 months ago

        deleted by creator

  • @DickFiasco@lemm.ee
    link
    fedilink
    51•4 months ago

    Ship it.

  • TimeSquirrel
    link
    fedilink
    33•4 months ago

    Like putting electrical tape over your check engine light.

  • konalt
    link
    fedilink
    31•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
      link
      fedilink
      9•4 months ago

      Yo dawg, I heard you like try-catch blocks

  • Lucy :3
    link
    fedilink
    26•
    edit-2
    4 months ago

    Average node solving

    • miss phant
      link
      fedilink
      8•4 months ago
      process.on('uncaughtException', console.error)
      
  • @Bosht@lemmy.world
    link
    fedilink
    English
    18•4 months ago

    That’s fucking hilarious

  • Arthur Besse
    link
    fedilink
    16•4 months ago

    except: pass

  • @FiniteLooper@lemm.ee
    link
    fedilink
    English
    11•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!”

  • @Pickle_Jr@lemmy.dbzer0.com
    link
    fedilink
    10•
    edit-2
    4 months ago

    It works on their machine though!

  • Snot Flickerman
    link
    fedilink
    English
    9•4 months ago

    Donald Trump does coding.

  • @devilish666@lemmy.world
    link
    fedilink
    5•4 months ago

    Push it to prod & see the world burns around you

  • Artemis
    link
    fedilink
    4•4 months ago

    @Irelephant “Fixed dem warnings boss.”

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.
  • 59 users / day
  • 527 users / week
  • 1.55K users / month
  • 10.1K users / 6 months
  • 35.6K subscribers
  • 1.7K Posts
  • 37.6K Comments
  • Modlog
  • mods:
  • @AgreeableLandscape@lemmy.ml
  • @cat_programmer@lemmy.ml
  • BE: 0.19.3
  • Modlog
  • Legal
  • Instances
  • Docs
  • Code
  • join-lemmy.org