Announcement

Collapse
No announcement yet.

If there were code porn, this is it.

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • #31
    Originally posted by Dis
    *dis slowly backs away from thread*
    *Ozzy slowly backs away from thread*
    Captain of Team Apolyton - ISDG 2012

    When I was younger I thought curfews were silly, but now as the daughter of a young woman, I appreciate them. - Rah

    Comment


    • #32
      Can you explain how the 0xstuff was derived or why it's magic?


      It's related to the starting point for the iteration.

      That's only part of it. In fact, it's not much of a gain at all in the age of 64-bit integers and fast FPUs.


      I know very little about how optimizations actually work on modern computers. I'd assume this is mostly unnecessary now anyway.

      Comment


      • #33
        I am lost in trying to understand this thread's purpose
        I will never understand why some people on Apolyton find you so clever. You're predictable, mundane, and a google-whore and the most observant of us all know this. Your battles of "wits" rely on obscurity and whenever you fail to find something sufficiently obscure, like this, you just act like a 5 year old. Congratulations, molly.

        Asher on molly bloom

        Comment


        • #34
          My friend who is studying engineering had to code something as a school assignment. He named his variables "*****", "dick", etc. The corrector gave him 0 (even though his code did the required task).
          In Soviet Russia, Fake borises YOU.

          Comment


          • #35
            Originally posted by Oncle Boris
            My friend who is studying engineering had to code something as a school assignment. He named his variables "*****", "dick", etc. The corrector gave him 0 (even though his code did the required task).
            French people.
            "The issue is there are still many people out there that use religion as a crutch for bigotry and hate. Like Ben."
            Ben Kenobi: "That means I'm doing something right. "

            Comment


            • #36
              Originally posted by Datajack Franit
              I am lost in trying to understand this thread's purpose
              I assure you, it has more purpose than your post.
              "The issue is there are still many people out there that use religion as a crutch for bigotry and hate. Like Ben."
              Ben Kenobi: "That means I'm doing something right. "

              Comment


              • #37
                Originally posted by Oncle Boris
                My friend who is studying engineering had to code something as a school assignment. He named his variables "*****", "dick", etc. The corrector gave him 0 (even though his code did the required task).
                When I first started programming, in like fourth grade or so, I had similarly indecipherable (but less obscene) variable names. It worked when the programs were simple. But once I started to do more complex things, I finally realized that relevant, intelligible variable names really do make your code better. It's an important lesson to learn.

                Of course, I gave up programming in my senior year of high school and, except during a few flashes of nostalgia, haven't wanted to do it since.
                Click here if you're having trouble sleeping.
                "We confess our little faults to persuade people that we have no large ones." - François de La Rochefoucauld

                Comment


                • #38
                  In my last job I made some VBA code to automatize the creation of reports with Excel. I hope my successors have taken a look at it
                  In Soviet Russia, Fake borises YOU.

                  Comment


                  • #39
                    At the job I have now, some of the code was developed in India not too long ago (before they ditched that idea). Many of the variables are spelled phonetically in Hindi.
                    "The issue is there are still many people out there that use religion as a crutch for bigotry and hate. Like Ben."
                    Ben Kenobi: "That means I'm doing something right. "

                    Comment


                    • #40
                      Originally posted by Asher
                      French people.
                      You bet. Don't you dare naming your variables in slang en anglais
                      "I have been reading up on the universe and have come to the conclusion that the universe is a good thing." -- Dissident
                      "I never had the need to have a boner." -- Dissident
                      "I have never cut off my penis when I was upset over a girl." -- Dis

                      Comment


                      • #41
                        I was never impressed by complex/unreadable code. Anyone can do that.

                        I'm impressed by Visual Basic and the like. A couple of clicks and the application is finished

                        Comment


                        • #42
                          It's not complex nor unreadable. It's damn efficient and clever.
                          "The issue is there are still many people out there that use religion as a crutch for bigotry and hate. Like Ben."
                          Ben Kenobi: "That means I'm doing something right. "

                          Comment


                          • #43
                            I was never impressed by complex/unreadable code. Anyone can do that.


                            This code isn't just some complex/unreadable version of something that could be expressed better. It is an extremely elegant optimization of a processor-intensive calculation.

                            I'm impressed by Visual Basic and the like.


                            VB syntax makes me puke.

                            Comment


                            • #44
                              Originally posted by Kuciwalker

                              I'm impressed by Visual Basic and the like.


                              VB syntax makes me puke.
                              Corrected.
                              With or without religion, you would have good people doing good things and evil people doing evil things. But for good people to do evil things, that takes religion.

                              Steven Weinberg

                              Comment


                              • #45
                                Agreed.

                                Comment

                                Working...
                                X