halubilo.social
  • Communities
  • Create Post
  • Create Community
  • heart
    Support Lemmy
  • search
    Search
  • Login
  • Sign Up
irelephant [he/him]🍭 to Programmer [email protected]English • 2 years ago

looks good to me

lemm.ee

message-square
19
fedilink
  • cross-posted to:
  • [email protected]
344

looks good to me

lemm.ee

irelephant [he/him]🍭 to Programmer [email protected]English • 2 years ago
message-square
19
fedilink
  • cross-posted to:
  • [email protected]
alert-triangle
You must log in or register to comment.
  • @[email protected]
    link
    fedilink
    49•2 years ago

    Ship it.

  • TimeSquirrel
    link
    fedilink
    32•2 years ago

    Like putting electrical tape over your check engine light.

  • konalt
    link
    fedilink
    30•2 years 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•2 years ago

      Yo dawg, I heard you like try-catch blocks

  • Lucy :3
    link
    fedilink
    25•
    edit-2
    2 years ago

    Average node bug solving

    • miss phant
      link
      fedilink
      8•2 years ago
      process.on('uncaughtException', console.error)
      
  • @[email protected]
    link
    fedilink
    English
    18•2 years ago

    That’s fucking hilarious

  • Arthur Besse
    link
    fedilink
    16•2 years ago

    except: pass

  • @[email protected]
    link
    fedilink
    English
    11•2 years 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!”

  • @[email protected]
    link
    fedilink
    10•
    edit-2
    2 years ago

    It works on their machine though!

  • Snot Flickerman
    link
    fedilink
    English
    6•2 years ago

    Donald Trump does coding.

  • devilish666
    link
    fedilink
    5•2 years ago

    Push it to prod & see the world burns around you

  • Artemis
    link
    fedilink
    4•2 years ago

    @Irelephant “Fixed dem warnings boss.”

  • @[email protected]
    link
    fedilink
    3•2 years 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.

    • @[email protected]
      link
      fedilink
      1•2 years ago

      set -e

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

    • @[email protected]
      link
      fedilink
      -2•2 years ago

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

      • ℍ𝕂-𝟞𝟝
        link
        fedilink
        English
        3•2 years ago

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

      • Skull giver
        link
        fedilink
        2•
        edit-2
        1 year ago

        deleted by creator

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

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]

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.
  • 66 users / day
  • 147 users / week
  • 1.34K users / month
  • 4.88K users / 6 months
  • 43K subscribers
  • 2.03K Posts
  • 40.8K Comments
  • Modlog
  • mods:
  • @[email protected]
  • @[email protected]
  • BE: 0.19.3
  • Modlog
  • Instances
  • Docs
  • Code
  • join-lemmy.org