Off Topic
    • Categories
    • Tags
    • Users
    • Groups
    • Amazon
    • OT Fundraiser
    • Register
    • Login

    The OFFICIAL programming thread

    Tech
    22
    1.4k
    10.4k
    Loading More Posts
    • 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.
    • ?
      A Former User
      last edited by

      30d24e47-5816-439d-a258-a1ea7eb8c877-image.png

      tiggerT 1 Reply Last reply Reply Quote 6
      • ?
        A Former User
        last edited by

        30d24e47-5816-439d-a258-a1ea7eb8c877-image.png

        tiggerT 1 Reply Last reply Reply Quote 6
        • tiggerT
          tigger @A Former User
          last edited by

          @hog said in The OFFICIAL programming thread:

          30d24e47-5816-439d-a258-a1ea7eb8c877-image.png

          Can you think of a way to create the longest such sorted array in O(n) time?

          ? 1 Reply Last reply Reply Quote 0
          • ?
            A Former User @tigger
            last edited by A Former User

            @tigger warn the elements of the rules in advance and expect them to sort themselves before you start?

            Edit: no, I don’t know

            tiggerT 1 Reply Last reply Reply Quote 2
            • tiggerT
              tigger @A Former User
              last edited by

              @hog said in The OFFICIAL programming thread:

              @tigger warn the elements of the rules in advance and expect them to sort themselves before you start?

              Edit: no, I don’t know

              You can use o(n) memory…

              1 Reply Last reply Reply Quote 0
              • Gators1G
                Gators1
                last edited by

                I am thinking Tigger is about to start throwing down algorithms. I am locking this thread before it gets out of hand.

                alt text

                1 Reply Last reply Reply Quote 2
                • ?
                  A Former User
                  last edited by

                  Y’all might have seen this already on Reddit or Hacker News but, for those that haven’t, it’s a great story. Makes me really nostalgic for that era.

                  Mad Ned

                  A Teenager's Guide to Avoiding Actual Work

                  A Teenager's Guide to Avoiding Actual Work

                  How in 1982, the author successfully hacked his way out of having to fill in potholes.

                  tiggerT 1 Reply Last reply Reply Quote 1
                  • tiggerT
                    tigger @A Former User
                    last edited by

                    @hog said in The OFFICIAL programming thread:

                    Y’all might have seen this already on Reddit or Hacker News but, for those that haven’t, it’s a great story. Makes me really nostalgic for that era.

                    Mad Ned

                    A Teenager's Guide to Avoiding Actual Work

                    A Teenager's Guide to Avoiding Actual Work

                    How in 1982, the author successfully hacked his way out of having to fill in potholes.

                    You successfully hacked your way out of solving a fun problem!!

                    ? 1 Reply Last reply Reply Quote 0
                    • ?
                      A Former User @tigger
                      last edited by

                      @tigger said in The OFFICIAL programming thread:

                      You successfully hacked your way out of solving a fun problem!!

                      Me? How so?

                      tiggerT 1 Reply Last reply Reply Quote 0
                      • tiggerT
                        tigger @A Former User
                        last edited by

                        @hog said in The OFFICIAL programming thread:

                        @tigger said in The OFFICIAL programming thread:

                        You successfully hacked your way out of solving a fun problem!!

                        Me? How so?

                        Actually, my bad. The “Stalin sort”. I actually thought it was a O(n) but it’s O(n\log(n)). (The problem is usually called longest increasing subsequence)

                        1 Reply Last reply Reply Quote 0
                        • ?
                          A Former User
                          last edited by A Former User

                          The only real hacking I did (aside from hacking around to understand something as every programmer does) was when I was about 15. I became friends with a kid in the same suburb as me who was into cracking and distributing Apple II games and other software. He was right into it and connected with people from around the world who were into it and used phone freaking to get free international calls. He had a side business putting arcade games into places like gas stations and he showed me how to get free credits on arcade machines using a piezo lighter from a stove. Anyway, fun guy to know.

                          I never really got into what he was doing but one day he tossed me a floppy disk with some game that they had been able to crack the copy protection on but hadn’t been able to overwrite the game’s splash screen with their own names and credits. So I took it home and started hunting through the disk using a hex viewer that I’d written myself. I paged through the data, eventually found where I thought the splash screen was and then somehow autisticly discovered how they’d scrambled the data. I wrote a basic program that unscrambled the image and saved it to disk and then set about updating the credits using a pixel editor that I also wrote myself. Not having done it before and not knowing which piracy crew my friend was with, I didn’t know what to write so I invented a name for myself: “The Buzz Boy” and draw in my name with a circular saw logo. I rescrambled the image, overwrote the original image and proudly gave the floppy disk back to my friend. He was impressed that I’d managed to do it and wanted to know how but when he saw my new moniker, he was like “The Buzz Boy”? Really? And tossed the disk aside like it was the lamest thing he’d ever heard.

                          GustafG 1 Reply Last reply Reply Quote 6
                          • GustafG
                            Gustaf @A Former User
                            last edited by

                            @hog And he was right. Thankfully, we now have a new name for you BB.

                            "Let's give it a week! Still a disaster? Let's give it another week…" -Tazz

                            Gators1G 1 Reply Last reply Reply Quote 1
                            • Gators1G
                              Gators1 @Gustaf
                              last edited by

                              @gustaf said in The OFFICIAL programming thread:

                              @hog And he was right. Thankfully, we now have a new name for you BB.

                              Sounds cooler than Twinkie Boy at least.

                              alt text

                              1 Reply Last reply Reply Quote 2
                              • PakoonP
                                Pakoon
                                last edited by

                                I can relate to this

                                May 24, 2021

                                Surprise! Developers' days ruined by interruptions and meetings, GitHub finds

                                Surprise! Developers' days ruined by interruptions and meetings, GitHub finds

                                If you want to be happy at work, never meet more than twice a day

                                ♙♙♙ Michael Waltz added you to the group.

                                ? 1 Reply Last reply Reply Quote 1
                                • ?
                                  A Former User @Pakoon
                                  last edited by

                                  @pakoon said in The OFFICIAL programming thread:

                                  I can relate to this

                                  May 24, 2021

                                  Surprise! Developers' days ruined by interruptions and meetings, GitHub finds

                                  Surprise! Developers' days ruined by interruptions and meetings, GitHub finds

                                  If you want to be happy at work, never meet more than twice a day

                                  e1085e5b-fd7b-4a60-8430-34e00d612733-image.png

                                  1 Reply Last reply Reply Quote 5
                                  • LithuL
                                    Lithu
                                    last edited by

                                    One thing I do not understand it how you can write this whole damn app which is maybe thousands of lines, yet the documentation is written like a fucking riddle.

                                    StuS ? KilemallK 3 Replies Last reply Reply Quote 1
                                    • StuS
                                      Stu @Lithu
                                      last edited by

                                      @lithu said in The OFFICIAL programming thread:

                                      One thing I do not understand it how you can write this whole damn app which is maybe thousands of lines, yet the documentation is written like a fucking riddle.

                                      Yeah, but does the app work correctly?

                                      It is easy to do justice - very hard to do right

                                      1 Reply Last reply Reply Quote 0
                                      • ?
                                        A Former User @Lithu
                                        last edited by

                                        @lithu said in The OFFICIAL programming thread:

                                        One thing I do not understand it how you can write this whole damn app which is maybe thousands of lines, yet the documentation is written like a fucking riddle.

                                        There’s no comments in the source code?

                                        LithuL 1 Reply Last reply Reply Quote 0
                                        • LithuL
                                          Lithu @A Former User
                                          last edited by

                                          @hog said in The OFFICIAL programming thread:

                                          @lithu said in The OFFICIAL programming thread:

                                          One thing I do not understand it how you can write this whole damn app which is maybe thousands of lines, yet the documentation is written like a fucking riddle.

                                          There’s no comments in the source code?

                                          Hol up! So now I have to go read through the source code instead of reading the documentation!!! FFS!

                                          Source code:

                                          beauty

                                          Documentation:

                                          scribbling

                                          ? 1 Reply Last reply Reply Quote 0
                                          • ?
                                            A Former User @Lithu
                                            last edited by

                                            @lithu said in The OFFICIAL programming thread:

                                            Hol up! So now I have to go read through the source code

                                            That’s where I write my documentation.

                                            LithuL WhoofeW 2 Replies Last reply Reply Quote 1
                                            • First post
                                              Last post