Lemmy | Lama Corp.
  • Communities
  • Create Post
  • Create Community
  • heart
    Support Lemmy
  • search
    Search
  • Login
  • Sign Up
hoch@lemmy.world to Programmer Humor@lemmy.ml · 1 month ago

More code = more better

lemmy.ml

message-square
25
link
fedilink
284

More code = more better

lemmy.ml

hoch@lemmy.world to Programmer Humor@lemmy.ml · 1 month ago
message-square
25
link
fedilink
  • Tolookah@discuss.tchncs.de
    link
    fedilink
    arrow-up
    7
    ·
    1 month ago

    No

    i= 0;

    do{ i++; } while (10 != *(U32 *) i );

    ?

    Gotta make it hard to read as well

    • anton@lemmy.blahaj.zone
      link
      fedilink
      arrow-up
      3
      ·
      1 month ago

      Segmentation fault, you forgot to take the reference and derefenced a null pointer.

      • Tolookah@discuss.tchncs.de
        link
        fedilink
        arrow-up
        1
        ·
        1 month ago

        i is my address. The bigger problem is that I should have increased i by sizeof(U32)

        (This works on bare metal, mostly, not on an os)

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.

  • 74 users / day
  • 240 users / week
  • 2.12K users / month
  • 7.09K users / 6 months
  • 1 local subscriber
  • 40K subscribers
  • 914 Posts
  • 5.08K Comments
  • Modlog
  • mods:
  • cat_programmer@lemmy.ml
  • BE: 0.19.15
  • Modlog
  • Instances
  • Docs
  • Code
  • join-lemmy.org