Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (Darkly)
  • No Skin
Collapse
Brand Logo
  1. Home
  2. Uncategorized
  3. Look what I found

Look what I found

Scheduled Pinned Locked Moved Uncategorized
49 Posts 37 Posters 0 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • gloriouscowG gloriouscow

    @error

    switches are just polyamorous gotos

    Saffron🏳️‍⚧️S This user is from outside of this forum
    Saffron🏳️‍⚧️S This user is from outside of this forum
    Saffron🏳️‍⚧️
    wrote last edited by
    #37

    @gloriouscow @error the important part is the boundaries tbh

    1 Reply Last reply
    0
    • System FaultE System Fault

      Look what I found

      Here: http://pigeonsnest.co.uk/stuff/pigeons-device.html

      Shafik YaghmourS This user is from outside of this forum
      Shafik YaghmourS This user is from outside of this forum
      Shafik Yaghmour
      wrote last edited by
      #38

      @error

      May I offer you more cursed code

      https://hachyderm.io/@shafik/115833761917985895

      Shafik YaghmourS System FaultE 2 Replies Last reply
      0
      • Shafik YaghmourS Shafik Yaghmour

        @error

        May I offer you more cursed code

        https://hachyderm.io/@shafik/115833761917985895

        Shafik YaghmourS This user is from outside of this forum
        Shafik YaghmourS This user is from outside of this forum
        Shafik Yaghmour
        wrote last edited by
        #39

        @error

        you can find more here:

        https://hachyderm.io/search?q=%22Cursed+code+of+the+day%22&type=statuses

        1 Reply Last reply
        0
        • System FaultE System Fault

          @mikee I actually tried it. It works just fine to my surprise. But the clangd formatter gone mad:

          h3mmy :v_enby:H This user is from outside of this forum
          h3mmy :v_enby:H This user is from outside of this forum
          h3mmy :v_enby:
          wrote last edited by
          #40

          @error
          This is much more readable to me than the original screenshot. The font inconsistency had me trying to figure out what the base code was and what was just an annotation
          @mikee

          1 Reply Last reply
          0
          • Ype KingmaK Ype Kingma

            @error

            Three lines too many. I thought serious programmers were lazy.

            SteveF This user is from outside of this forum
            SteveF This user is from outside of this forum
            Steve
            wrote last edited by
            #41

            @KingmaYpe @error I think this one falls under increasing job security by writing code nobody else understands how to work with

            1 Reply Last reply
            0
            • System FaultE System Fault

              Look what I found

              Here: http://pigeonsnest.co.uk/stuff/pigeons-device.html

              RedGlowR This user is from outside of this forum
              RedGlowR This user is from outside of this forum
              RedGlow
              wrote last edited by
              #42

              @error this will infest my nightmares.

              1 Reply Last reply
              0
              • Shafik YaghmourS Shafik Yaghmour

                @error

                May I offer you more cursed code

                https://hachyderm.io/@shafik/115833761917985895

                System FaultE This user is from outside of this forum
                System FaultE This user is from outside of this forum
                System Fault
                wrote last edited by
                #43

                @shafik WHATDA...
                Hm

                1 Reply Last reply
                0
                • koorogiK koorogi

                  @error musl does this in its printf implementation: https://git.musl-libc.org/cgit/musl/tree/src/stdio/vfprintf.c#n597

                  System FaultE This user is from outside of this forum
                  System FaultE This user is from outside of this forum
                  System Fault
                  wrote last edited by
                  #44

                  @koorogi so, in case 'm', we just skip the first line of the next case and go straight to the line 600. Ok

                  Without {} it reads easier, I'd say

                  1 Reply Last reply
                  0
                  • Jan MoličM This user is from outside of this forum
                    Jan MoličM This user is from outside of this forum
                    Jan Molič
                    wrote last edited by
                    #45

                    @xChaos @error

                    switch(1) {
                    case 0:
                    if (false) {
                    case 1:
                    printf("Hello\n");
                    } else {
                    case 2:
                    printf("World\n");
                    }
                    }

                    => Hello

                    1 Reply Last reply
                    0
                    • System FaultE System Fault

                      Look what I found

                      Here: http://pigeonsnest.co.uk/stuff/pigeons-device.html

                      void friendV This user is from outside of this forum
                      void friendV This user is from outside of this forum
                      void friend
                      wrote last edited by
                      #46

                      @error The “break;” are not necessary in this example. https://gcc.godbolt.org/z/GTenx1bPz

                      1 Reply Last reply
                      0
                      • System FaultE System Fault

                        Look what I found

                        Here: http://pigeonsnest.co.uk/stuff/pigeons-device.html

                        Ms NgoC This user is from outside of this forum
                        Ms NgoC This user is from outside of this forum
                        Ms Ngo
                        wrote last edited by
                        #47

                        @error This might actually lead to a physical altercation.

                        1 Reply Last reply
                        0
                        • System FaultE System Fault

                          Look what I found

                          Here: http://pigeonsnest.co.uk/stuff/pigeons-device.html

                          Nina Felwitch :v_trans:N This user is from outside of this forum
                          Nina Felwitch :v_trans:N This user is from outside of this forum
                          Nina Felwitch :v_trans:
                          wrote last edited by
                          #48

                          @error this is actually amazing.

                          1 Reply Last reply
                          0
                          • System FaultE System Fault

                            Look what I found

                            Here: http://pigeonsnest.co.uk/stuff/pigeons-device.html

                            mkjM This user is from outside of this forum
                            mkjM This user is from outside of this forum
                            mkj
                            wrote last edited by
                            #49

                            @error This is cursed.

                            1 Reply Last reply
                            1
                            0
                            • R AodeRelay shared this topic
                            Reply
                            • Reply as topic
                            Log in to reply
                            • Oldest to Newest
                            • Newest to Oldest
                            • Most Votes


                            • Login

                            • Don't have an account? Register

                            • Login or register to search.
                            Powered by NodeBB Contributors
                            • First post
                              Last post
                            0
                            • Categories
                            • Recent
                            • Tags
                            • Popular
                            • World
                            • Users
                            • Groups