Civilloquy
  • Communities
  • Create Post
  • heart
    Support Lemmy
  • search
    Search
  • Login
  • Sign Up
cm0002@lemmy.zip to Programmer Humor@programming.dev · 7 days ago

More code = more better

lemmy.zip

message-square
51
fedilink
536

More code = more better

lemmy.zip

cm0002@lemmy.zip to Programmer Humor@programming.dev · 7 days ago
message-square
51
fedilink
  • Grandwolf319@sh.itjust.works
    link
    fedilink
    arrow-up
    24
    ·
    edit-2
    7 days ago

    How about

    x=x-x

    x++

    x++

    x++

    x++

    x++

    x++

    x++

    x++

    x++

    x++

    • okmko@lemmy.world
      link
      fedilink
      arrow-up
      7
      ·
      edit-2
      7 days ago

      Freshman year of college doing assembly programming, I spent a while figuring out a “programmic” way to solve a problem, trying to wrangle labels and gotos. My friend came in with essentially this but as lookup table. It blew my mind.

      It was then that I learned to trade space for complexity.

    • olenkoVD@lemmy.dbzer0.com
      link
      fedilink
      arrow-up
      1
      ·
      6 days ago

      Make sure you initialize x with x=x/x-x/x for better precision

      • Grandwolf319@sh.itjust.works
        link
        fedilink
        arrow-up
        1
        ·
        6 days ago

        What if it’s already 0?

        • optional@sh.itjust.works
          link
          fedilink
          arrow-up
          1
          ·
          3 days ago

          Just add // @TODO find out why this crashes our application sometimes to fix that issue

Programmer Humor@programming.dev

programmer_humor@programming.dev

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: !programmer_humor@programming.dev

Welcome to Programmer Humor!

This is a place where you can post jokes, memes, humor, etc. related to programming!

For sharing awful code theres also Programming Horror.

Rules

  • Keep content in english
  • No advertisements
  • Posts must be related to programming or programmer topics
Visibility: Public
globe

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

  • 158 users / day
  • 3.21K users / week
  • 6.45K users / month
  • 13.6K users / 6 months
  • 1 local subscriber
  • 27.9K subscribers
  • 1.71K Posts
  • 44.1K Comments
  • Modlog
  • mods:
  • Feyter@programming.dev
  • adr1an@programming.dev
  • BurningTurtle@programming.dev
  • Pierre-Yves Lapersonne@programming.dev
  • BE: 0.19.5
  • Modlog
  • Legal
  • Instances
  • Docs
  • Code
  • join-lemmy.org