Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • 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 (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Other Discussions
  3. The Weird and The Wonderful
  4. Childhood coding

Childhood coding

Scheduled Pinned Locked Moved The Weird and The Wonderful
game-devquestion
10 Posts 8 Posters 0 Views 1 Watching
  • 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.
  • D Offline
    D Offline
    Daniel Tak M
    wrote on last edited by
    #1

    I wrote my first game when I was about 14 or 15, on my lovely Amiga 1200. I did not really know what I was doing, but the outcome was quite good (it was a MadTV clone, but with a radio station). I still have my old Amiga, and just for the fun of it, I took a look at my old code (which was written in CanDo... guess nobody knows it). I was pretty amazed of what I did without knowing what I did, but I stumbled upon a... "concept" that I used pretty often. It basically looked like this (pseudo code): if not rect.PointInRect(point) or control.IsDisabled() then DoNothing() else ... # Some real code here endif DoNothing is not a dummy here, it was an actual function. Yes, I had a function that just did... nothing :D And I used it pretty often. Oh, and the "else" part was not always there. Sometimes I only had the if/DoNothing part (no idea what sense that made to me when I was a kid). So what tells me this? I was able to get a full game up and running, but knew sh*t about boolean algebra and how these strange if-thingies work. It still makes me giggle.

    P D C M X 5 Replies Last reply
    0
    • D Daniel Tak M

      I wrote my first game when I was about 14 or 15, on my lovely Amiga 1200. I did not really know what I was doing, but the outcome was quite good (it was a MadTV clone, but with a radio station). I still have my old Amiga, and just for the fun of it, I took a look at my old code (which was written in CanDo... guess nobody knows it). I was pretty amazed of what I did without knowing what I did, but I stumbled upon a... "concept" that I used pretty often. It basically looked like this (pseudo code): if not rect.PointInRect(point) or control.IsDisabled() then DoNothing() else ... # Some real code here endif DoNothing is not a dummy here, it was an actual function. Yes, I had a function that just did... nothing :D And I used it pretty often. Oh, and the "else" part was not always there. Sometimes I only had the if/DoNothing part (no idea what sense that made to me when I was a kid). So what tells me this? I was able to get a full game up and running, but knew sh*t about boolean algebra and how these strange if-thingies work. It still makes me giggle.

      P Offline
      P Offline
      Pete OHanlon
      wrote on last edited by
      #2

      A 5 for such honesty.

      Deja View - the feeling that you've seen this post before.

      My blog | My articles

      N 1 Reply Last reply
      0
      • P Pete OHanlon

        A 5 for such honesty.

        Deja View - the feeling that you've seen this post before.

        My blog | My articles

        N Offline
        N Offline
        NormDroid
        wrote on last edited by
        #3

        1 for stupidity? :)

        WPF - Imagineers Wanted Follow your nose using DoubleAnimationUsingPath

        1 Reply Last reply
        0
        • D Daniel Tak M

          I wrote my first game when I was about 14 or 15, on my lovely Amiga 1200. I did not really know what I was doing, but the outcome was quite good (it was a MadTV clone, but with a radio station). I still have my old Amiga, and just for the fun of it, I took a look at my old code (which was written in CanDo... guess nobody knows it). I was pretty amazed of what I did without knowing what I did, but I stumbled upon a... "concept" that I used pretty often. It basically looked like this (pseudo code): if not rect.PointInRect(point) or control.IsDisabled() then DoNothing() else ... # Some real code here endif DoNothing is not a dummy here, it was an actual function. Yes, I had a function that just did... nothing :D And I used it pretty often. Oh, and the "else" part was not always there. Sometimes I only had the if/DoNothing part (no idea what sense that made to me when I was a kid). So what tells me this? I was able to get a full game up and running, but knew sh*t about boolean algebra and how these strange if-thingies work. It still makes me giggle.

          D Offline
          D Offline
          Dan Neely
          wrote on last edited by
          #4

          I didn't do anything that spectacular, but when I was 16 I wrote a tetris clone in turbo pascal for the final project of my 2nd year programming class. Then over the summer I started writing a top scrolling shooter game, I got the engine to what I estimated was 60-80% complete before the accumulated WTFs I was developing made me take what ended up being a permanent break. The biggest of them was that my code was object oriented, but I was fully self taught and had no idea of the concept of polymorphism. Instead my MovingObject class used function pointers to handle different forms of behavior. This kinda sorta worked but was a real pita in implementation and kept failing for reasons I could never figure out.

          Otherwise [Microsoft is] toast in the long term no matter how much money they've got. They would be already if the Linux community didn't have it's head so firmly up it's own command line buffer that it looks like taking 15 years to find the desktop. -- Matthew Faithfull

          1 Reply Last reply
          0
          • D Daniel Tak M

            I wrote my first game when I was about 14 or 15, on my lovely Amiga 1200. I did not really know what I was doing, but the outcome was quite good (it was a MadTV clone, but with a radio station). I still have my old Amiga, and just for the fun of it, I took a look at my old code (which was written in CanDo... guess nobody knows it). I was pretty amazed of what I did without knowing what I did, but I stumbled upon a... "concept" that I used pretty often. It basically looked like this (pseudo code): if not rect.PointInRect(point) or control.IsDisabled() then DoNothing() else ... # Some real code here endif DoNothing is not a dummy here, it was an actual function. Yes, I had a function that just did... nothing :D And I used it pretty often. Oh, and the "else" part was not always there. Sometimes I only had the if/DoNothing part (no idea what sense that made to me when I was a kid). So what tells me this? I was able to get a full game up and running, but knew sh*t about boolean algebra and how these strange if-thingies work. It still makes me giggle.

            C Offline
            C Offline
            ClementsDan
            wrote on last edited by
            #5

            The worst coding I ever did as a kid was to write programs that used dozens of variables because I hadn't learned about arrays yet.

            D P 2 Replies Last reply
            0
            • C ClementsDan

              The worst coding I ever did as a kid was to write programs that used dozens of variables because I hadn't learned about arrays yet.

              D Offline
              D Offline
              Daniel Tak M
              wrote on last edited by
              #6

              Oh I knew about arrays! :D There was one huge array with all the game variables (for save games)... oh yes it was HUGE...

              1 Reply Last reply
              0
              • C ClementsDan

                The worst coding I ever did as a kid was to write programs that used dozens of variables because I hadn't learned about arrays yet.

                P Offline
                P Offline
                PIEBALDconsult
                wrote on last edited by
                #7

                ClementsDan wrote:

                I hadn't learned about arrays yet

                I on the other hand... In my first programming course (using BASIC-Plus on a PDP-11) one of the assignments was to do something (I forget what) with a bunch of numbers and it was expected that we would use a bunch of individual variables. But I said to myself, "there's gotta be a better way", and proceeded to read the next chapter of the book, which covered "subscripted variables" (arrays). So I wrote my program using them and turned it in. The teacher replied, "that's next week's assignment!" :laugh:

                1 Reply Last reply
                0
                • D Daniel Tak M

                  I wrote my first game when I was about 14 or 15, on my lovely Amiga 1200. I did not really know what I was doing, but the outcome was quite good (it was a MadTV clone, but with a radio station). I still have my old Amiga, and just for the fun of it, I took a look at my old code (which was written in CanDo... guess nobody knows it). I was pretty amazed of what I did without knowing what I did, but I stumbled upon a... "concept" that I used pretty often. It basically looked like this (pseudo code): if not rect.PointInRect(point) or control.IsDisabled() then DoNothing() else ... # Some real code here endif DoNothing is not a dummy here, it was an actual function. Yes, I had a function that just did... nothing :D And I used it pretty often. Oh, and the "else" part was not always there. Sometimes I only had the if/DoNothing part (no idea what sense that made to me when I was a kid). So what tells me this? I was able to get a full game up and running, but knew sh*t about boolean algebra and how these strange if-thingies work. It still makes me giggle.

                  M Offline
                  M Offline
                  MidwestLimey
                  wrote on last edited by
                  #8

                  I remember CanDo!!!


                  I'm largely language agnostic


                  After a while they all bug me :doh:


                  D 1 Reply Last reply
                  0
                  • M MidwestLimey

                    I remember CanDo!!!


                    I'm largely language agnostic


                    After a while they all bug me :doh:


                    D Offline
                    D Offline
                    Daniel Tak M
                    wrote on last edited by
                    #9

                    Cool :D

                    1 Reply Last reply
                    0
                    • D Daniel Tak M

                      I wrote my first game when I was about 14 or 15, on my lovely Amiga 1200. I did not really know what I was doing, but the outcome was quite good (it was a MadTV clone, but with a radio station). I still have my old Amiga, and just for the fun of it, I took a look at my old code (which was written in CanDo... guess nobody knows it). I was pretty amazed of what I did without knowing what I did, but I stumbled upon a... "concept" that I used pretty often. It basically looked like this (pseudo code): if not rect.PointInRect(point) or control.IsDisabled() then DoNothing() else ... # Some real code here endif DoNothing is not a dummy here, it was an actual function. Yes, I had a function that just did... nothing :D And I used it pretty often. Oh, and the "else" part was not always there. Sometimes I only had the if/DoNothing part (no idea what sense that made to me when I was a kid). So what tells me this? I was able to get a full game up and running, but knew sh*t about boolean algebra and how these strange if-thingies work. It still makes me giggle.

                      X Offline
                      X Offline
                      Xiangyang Liu
                      wrote on last edited by
                      #10

                      Tak wrote:

                      if not rect.PointInRect(point) or control.IsDisabled() then DoNothing() else ... # Some real code here endif

                      I think you knew more about programming than you realized. You were obviously thinking about future extensions and nice features you could add within the DoNothing function. I bet if you had to continue to work on the game today you would be happy the handy DoNothing you put there many years ago. And people would be wondering, how could someone be so brilliant when he was only 14 or 15? :-D

                      My .NET Business Application Framework My Home Page

                      1 Reply Last reply
                      0
                      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.
                      • First post
                        Last post
                      0
                      • Categories
                      • Recent
                      • Tags
                      • Popular
                      • World
                      • Users
                      • Groups