lemmy.jrvs.cc
  • 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

message-square
20
fedilink
388

looks good to me

lemm.ee

irelephant [he/him]🍭@lemm.ee to Programmer Humor@lemmy.mlEnglish · 4 months ago
message-square
20
fedilink
alert-triangle
You must log in or register to comment.
  • xmunk@sh.itjust.works
    link
    fedilink
    arrow-up
    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
      arrow-up
      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
        arrow-up
        2
        ·
        4 months ago
        set -e
        
    • thebestaquaman@lemmy.world
      link
      fedilink
      arrow-up
      4
      ·
      4 months ago

      set -e

    • intensely_human@lemm.ee
      link
      fedilink
      arrow-up
      2
      arrow-down
      3
      ·
      4 months ago

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

      • ℍ𝕂-𝟞𝟝@sopuli.xyz
        link
        fedilink
        English
        arrow-up
        7
        ·
        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
        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@popplesburger.hilciferous.nl
        link
        fedilink
        arrow-up
        2
        ·
        edit-2
        3 months ago

        deleted by creator

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

    Ship it.

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

    Like putting electrical tape over your check engine light.

  • konalt@lemmy.world
    link
    fedilink
    arrow-up
    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@lemmy.world
      link
      fedilink
      arrow-up
      9
      ·
      4 months ago

      Yo dawg, I heard you like try-catch blocks

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

    Average node bug solving

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

    That’s fucking hilarious

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

    except: pass

  • FiniteLooper@lemm.ee
    link
    fedilink
    English
    arrow-up
    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
    arrow-up
    10
    ·
    edit-2
    4 months ago

    It works on their machine though!

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

    Donald Trump does coding.

  • devilish666@lemmy.world
    link
    fedilink
    arrow-up
    5
    ·
    4 months ago

    Push it to prod & see the world burns around you

  • Artemis@toot.cafe
    link
    fedilink
    arrow-up
    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.
Visibility: Public
globe

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

  • 77 users / day
  • 531 users / week
  • 1.74K users / month
  • 10.3K users / 6 months
  • 1 local subscriber
  • 35.6K subscribers
  • 765 Posts
  • 5.5K Comments
  • Modlog
  • mods:
  • cat_programmer@lemmy.ml
  • BE: 0.19.5
  • Modlog
  • Instances
  • Docs
  • Code
  • join-lemmy.org