Beehaw
  • Communities
  • Create Post
  • search
    Search
  • Login
  • Sign Up
anders ( anders@rytter.me )  to Programmer Humor@lemmy.ml · 3 years ago

When your code works, but you don't know how

rytter.me

message-square
13
link
fedilink
262

When your code works, but you don't know how

rytter.me

anders ( anders@rytter.me )  to Programmer Humor@lemmy.ml · 3 years ago
message-square
13
link
fedilink

When your code works, but you don’t know how
@programmerhumor

  • TheHalc ( TheHalc@sopuli.xyz ) 
    link
    fedilink
    arrow-up
    13
    ·
    3 years ago

    Just make sure to add comments like

    //Magic, do not touch
    

    To make sure no-one accidentally breaks the spell.

    • 𝘋𝘪𝘳𝘬 ( Dirk@lemmy.ml ) 
      link
      fedilink
      arrow-up
      7
      ·
      3 years ago
      // Do not delete! Yes, it's not used anywhere in the code, but if it is removed
      // the application crashes and the error code is useless for debugging.
      let f = 'a';
      
    • echo ( echo@lemmy.ml ) 
      link
      fedilink
      arrow-up
      4
      ·
      3 years ago

      If you even know which line of random bullshit you changed that made it work, that is

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.

  • 11 users / day
  • 46 users / week
  • 359 users / month
  • 1.81K users / 6 months
  • 871 local subscribers
  • 43.7K subscribers
  • 1.25K Posts
  • 10.3K Comments
  • Modlog
  • mods:
  • AgreeableLandscape ( AgreeableLandscape@lemmy.ml ) 
  • cat_programmer ( cat_programmer@lemmy.ml ) 
  • BE: 0.19.15
  • Modlog
  • Legal
  • Instances
  • Docs
  • Code