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

    The OFFICIAL programming thread

    Tech
    22
    1.4k
    10.5k
    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.
    • TheMouseT
      TheMouse @A Former User
      last edited by

      @hog said in The OFFICIAL programming thread:

      @gators1 said in The OFFICIAL programming thread:

      Why Hog is a fraud…

      How to "Google It" like a Senior Software Engineer

      I’m fucked if work ever look at my search history. Because I switch programming languages all the time, I forget really basic shit all the time or, rather, get the syntax confused between languages.

      Yesterday my IDE was showing an error against an else if clause so I tried elif and elseif but it didn’t work. So I googled how to do an if statement in JavaScript. It’s probably the first thing any programmer learns after declaring variables so my employer would be rightfully wondering why the fuck they are paying me so much if I had to google it. (Turns out else if was correct and the error was from something else. )

      I remember when i was about 14 I had a book with all the difent syntax’s for difent languages that did the same thing listed for different computer makes/ languages …

      1 Reply Last reply Reply Quote 0
      • WingmannW
        Wingmann Gold
        last edited by

        Polishing and Releasing My Tiny Geography Game

        -= Ez dut galduko itxaropena =-

        Gators1G ? 2 Replies Last reply Reply Quote 1
        • Gators1G
          Gators1 @Wingmann
          last edited by

          @wingmann said in The OFFICIAL programming thread:

          Polishing and Releasing My Tiny Geography Game

          I was about to bash you for mathing up the fucking forum, but then I saw I do some similar shit at work with map projections, great circle calculations, etc. Some of that was pretty cool actually. One analysis I did was to figure out if our cheating ass customers were arbitraging our pricing. We have a device we sell in two flavors, one for land and one for aviation. It’s the same thing basically but we charge more for the aviation one because it’s aviation. They thought some of the customers might be putting the land ones in airplanes and pocketing the difference. We don’t get the altitude off the device when it transmits the call data to us, so I had to come up with a different way. So basically what I did was to calculate the distance and time between two points transmitted by the device and convert into freedom MPH. So the shit that was moving fast could be an airplane. The distance had to be calculated with the haversine formula because you are traveling across the globe, so that took some googling to find a code snippet already written for me, plugged it into a function and ran it through my call records. End result is our customers apparently aren’t that smart.

          alt text

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

            @wingmann said in The OFFICIAL programming thread:

            Polishing and Releasing My Tiny Geography Game

            I watched a couple of his earlier vids making the same game (I think it was the same project anyway. It was like a year or two back) - they were invaluable for learning how to do procedural terrain geometry.

            Gators1G 1 Reply Last reply Reply Quote 0
            • Gators1G
              Gators1 @A Former User
              last edited by

              @hog Does he have a video on medieval leg meshes? I know someone that needs some help.

              alt text

              1 Reply Last reply Reply Quote 1
              • TazzT
                Tazz
                last edited by

                I believe this could be true…

                Screenshot_20220505-074403-126.png

                GTFO

                1 Reply Last reply Reply Quote 6
                • TazzT
                  Tazz
                  last edited by

                  0687c086-7946-46b8-8b28-140a47b9fbfa-image.png

                  GTFO

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

                    This tickles me. You click on the guage icon in the top toolbar and it opens this popover:

                    2722a63b-98a7-4ed7-8192-0ed29c4f8126-image.png

                    In the actual app (not the above screenie) the needle dramatically rotates from left to right like a tachometer and the data and time savings spin up like a reverse countdown timer from a bond film. It’s only a half second animation so is maybe more subtle than it sounds but it helps draw the eye to it and subconsciously impresses on the user that the values aren’t static but are growing with time.

                    Anyway, in the real world, the minimum data savings would be kilobytes after first using it but would quickly grow to megabytes etc. But because I’m iteratively developing and testing with small queries, the savings for me get reset regularly and often don’t amount to more than a few bytes. But the animations still kick in every time I open the popover, making my 4 bytes of bandwith saved seem hella impressive.

                    Edit: oh, and it’s not really called the “Hog 2000”.

                    TazzT 1 Reply Last reply Reply Quote 2
                    • TazzT
                      Tazz @A Former User
                      last edited by

                      @hog What browser is that?

                      GTFO

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

                        @tazz said in The OFFICIAL programming thread:

                        @hog What browser is that?

                        Edge. Not that you can see any of the browser in that screenshot. The toolbar at the top is from the client’s ERP system (ie the browser search bar etc would be just above it if I hadn’t cropped it out).

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

                          Thought this was pretty cool. Ascii art-like video:

                          YouTube

                          YouTube

                          Enjoy the videos and music you love, upload original content, and share it all with friends, family, and the world on YouTube.

                          Above is a few second clip with the results but he writes the whole program (while explaining it) in only 22 minutes.

                          1 Reply Last reply Reply Quote 0
                          • rote7R
                            rote7
                            last edited by

                            7567555735425

                            fffg

                            1 Reply Last reply Reply Quote 1
                            • Lob12L
                              Lob12
                              last edited by

                              HAR HAR HAR HAR, programmer humor.

                              HAR HAR HAR HAR

                              [IMG] https://image.ibb.co/nhhF0Q/new_sig_lob12.jpg [/IMG]

                              1 Reply Last reply Reply Quote 0
                              • rote7R
                                rote7
                                last edited by

                                Boooooooooooooo !!!

                                fffg

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

                                  Yeah, lawyer jokes are funnier.

                                  1. The attorney tells the accused, “I have some good news and some bad news.” “What’s the bad news?” asks the accused. “The bad news is, your blood is all over the crime scene, and the DNA tests prove you did it.” “What’s the good news?” “Your cholesterol is 130.” 3. A lawyer defending a man accused of burglary tried this creative defense: “My client merely inserted his arm into the window and removed a few trifling articles. His arm is not himself, and I fail to see how you can punish the whole individual for an offense committed by his limb.” “Well put,” the judge replied. “Using your logic, I sentence the defendant’s arm to one year’s imprisonment. He can accompany it or not, as he chooses.” The defendant smiled. With his lawyer’s assistance, he detached his artificial limb, laid it on the bench, and walked out. 4. How many lawyers does it take to change a lightbulb? None, they’d rather keep their clients in the dark. 5. Someone mistakenly left the cages open in the Reptile House at the zoo, and there were snakes slithering all over the place. Frantically, the keeper tried everything but couldn’t get the slippery animals back into their cages. Finally, he yelled, “Quick, call a lawyer!” “A lawyer? Why?” “We need someone who speaks their language.”

                                  alt text

                                  1 Reply Last reply Reply Quote 2
                                  • Lob12L
                                    Lob12
                                    last edited by

                                    At least we know how to use paragraphs.

                                    [IMG] https://image.ibb.co/nhhF0Q/new_sig_lob12.jpg [/IMG]

                                    1 Reply Last reply Reply Quote 1
                                    • Lob12L
                                      Lob12
                                      last edited by

                                      [IMG] https://image.ibb.co/nhhF0Q/new_sig_lob12.jpg [/IMG]

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

                                        Why did the picture get arrested?

                                        It got framed.

                                        ♙♙♙ Michael Waltz added you to the group.

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

                                          What do you call a bear without an ear?

                                          b

                                          ♙♙♙ Michael Waltz added you to the group.

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

                                            When does a joke become a dad joke?

                                            When it becomes apparent.

                                            ♙♙♙ Michael Waltz added you to the group.

                                            rote7R JamJ 2 Replies Last reply Reply Quote 3
                                            • First post
                                              Last post