halubilo.social
  • Communities
  • Create Post
  • Create Community
  • heart
    Support Lemmy
  • search
    Search
  • Login
  • Sign Up
irelephant [he/him]🍭 to Programmer [email protected]English • 6 months 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 • 6 months 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•6 months ago

    Ship it.

  • TimeSquirrel
    link
    fedilink
    32•6 months ago

    Like putting electrical tape over your check engine light.

  • konalt
    link
    fedilink
    30•6 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•6 months ago

      Yo dawg, I heard you like try-catch blocks

  • Lucy :3
    link
    fedilink
    25•
    edit-2
    6 months ago

    Average node bug solving

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

    That’s fucking hilarious

  • Arthur Besse
    link
    fedilink
    16•6 months ago

    except: pass

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

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

    It works on their machine though!

  • Snot Flickerman
    link
    fedilink
    English
    6•6 months ago

    Donald Trump does coding.

  • @[email protected]
    link
    fedilink
    5•6 months ago

    Push it to prod & see the world burns around you

  • Artemis
    link
    fedilink
    4•6 months ago

    @Irelephant “Fixed dem warnings boss.”

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

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

      set -e

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

    • @[email protected]
      link
      fedilink
      -2•6 months ago

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

      • ℍ𝕂-𝟞𝟝
        link
        fedilink
        English
        3•6 months ago

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

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

        deleted by creator

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

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.
  • 216 users / day
  • 971 users / week
  • 3.07K users / month
  • 9.3K users / 6 months
  • 37K subscribers
  • 1.79K Posts
  • 38.1K Comments
  • Modlog
  • mods:
  • @[email protected]
  • @[email protected]
  • BE: 0.19.3
  • Modlog
  • Instances
  • Docs
  • Code
  • join-lemmy.org