Informis Lemmy
  • Communities
  • Create Post
  • Create Community
  • heart
    Support Lemmy
  • search
    Search
  • Login
  • Sign Up
Anders Rytter Hansen@rytter.me to Programmer Humor@lemmy.ml · 3 years ago

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

rytter.me

message-square
6
link
fedilink
30

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

rytter.me

Anders Rytter Hansen@rytter.me to Programmer Humor@lemmy.ml · 3 years ago
message-square
6
link
fedilink

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

alert-triangle
You must log in or register to comment.
  • fckreddit@lemmy.ml
    link
    fedilink
    arrow-up
    1
    ·
    3 years ago

    I know why it works. Because it was copied from stack overflow…

  • 𝘋𝘪𝘳𝘬@lemmy.ml
    link
    fedilink
    arrow-up
    0
    ·
    3 years ago

    Just containerize the dev environment and ship that to the customer.

    • TheHalc@sopuli.xyz
      link
      fedilink
      arrow-up
      0
      ·
      3 years ago

      Just make sure to add comments like

      //Magic, do not touch
      

      To make sure no-one accidentally breaks the spell.

      • 𝘋𝘪𝘳𝘬@lemmy.ml
        link
        fedilink
        arrow-up
        1
        ·
        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';
        
        • kamenLady.@lemmy.world
          link
          fedilink
          arrow-up
          0
          ·
          3 years ago

          if ( “a” == “a” ) { // i swear i saw this somewhere }

          • 𝘋𝘪𝘳𝘬@lemmy.ml
            link
            fedilink
            arrow-up
            1
            ·
            3 years ago

            I once did const theNumber = 4 in a function (and then took a second, actually random, number and compared it to theNumber).

            In the comment to the function I actually referenced https://xkcd.com/221/.

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.

  • 7 users / day
  • 111 users / week
  • 118 users / month
  • 118 users / 6 months
  • 1 local subscriber
  • 44.2K subscribers
  • 1.05K Posts
  • 14.1K Comments
  • Modlog
  • mods:
  • AgreeableLandscape@lemmy.mldeleted by creator
  • cat_programmer@lemmy.ml
  • UI: unknown version
  • BE: 0.19.21
  • Modlog
  • Instances
  • Docs
  • Code
  • join-lemmy.org