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. The Lounge
  3. The First Program You Ever Wrote

The First Program You Ever Wrote

Scheduled Pinned Locked Moved The Lounge
c++delphiquestion
47 Posts 28 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.
  • H homegrown

    just thinking back between to the first time, and the very first program ever that i ever "wrote" was a DOS "application" [yes, it was called an application] that had to calculate tax [@ 14%]on any price you input. ANY price. ;P > Enter price: 10.00 Tax = 1.14 Total Price = 11.40 and it was sooo cool! nevermind it took me the best of three hours to write with borland c++ :D [and i copied half of it anyway cos i just didn't get what all the ;'s were doing there] the journey from that day to now... well, let's just say things are a little different- but programming still remains sooo cool. anyhoooo.. i was wondering just where/how did most programmers start out with their first ever "application"?

    :: have the courage to use your own reason

    M Offline
    M Offline
    Marc Clifton
    wrote on last edited by
    #17

    The first program I wrote that I remember was a text-based (teletype actually) Star Trek game on a PDP-11. 10x10 grid, your ship, phasers, photons, Romulan Neutral Zone, a couple planets to investigate, a space station to dock with. You basically had to wipe out the Romulans and save the planets, but some of them lurked hidden behind the neutral zone and you had to go hunt them down. Every turn reprinted the grid with updated positions and stats like shields, energy, etc. Let's see, that was in 8th grade, I think, over 30 years ago. Marc

    Thyme In The Country

    People are just notoriously impossible. --DavidCrow
    There's NO excuse for not commenting your code. -- John Simmons / outlaw programmer
    People who say that they will refactor their code later to make it "good" don't understand refactoring, nor the art and craft of programming. -- Josh Smith

    H 1 Reply Last reply
    0
    • H homegrown

      just thinking back between to the first time, and the very first program ever that i ever "wrote" was a DOS "application" [yes, it was called an application] that had to calculate tax [@ 14%]on any price you input. ANY price. ;P > Enter price: 10.00 Tax = 1.14 Total Price = 11.40 and it was sooo cool! nevermind it took me the best of three hours to write with borland c++ :D [and i copied half of it anyway cos i just didn't get what all the ;'s were doing there] the journey from that day to now... well, let's just say things are a little different- but programming still remains sooo cool. anyhoooo.. i was wondering just where/how did most programmers start out with their first ever "application"?

      :: have the courage to use your own reason

      L Offline
      L Offline
      Lost User
      wrote on last edited by
      #18

      Too long ago to remember exactly - probably something to perform some simple calculations in BBC Basic (around 1983/1984).

      1 Reply Last reply
      0
      • R ra ra ra ra

        on the good ole spectrum 48k 10 Print "Hello World" 20 Goto 10 think thats the right syntax! :rolleyes:

        R Offline
        R Offline
        Ray Hayes
        wrote on last edited by
        #19

        I'm sure I used to do something like PRINT "Hello ", or something else at the end of the line which resulted in the output going all over the screen rather than a column down the left. If I had more time, I put a loop in there and changed the foreground and background colours too!

        Regards, Ray

        A R 2 Replies Last reply
        0
        • H homegrown

          just thinking back between to the first time, and the very first program ever that i ever "wrote" was a DOS "application" [yes, it was called an application] that had to calculate tax [@ 14%]on any price you input. ANY price. ;P > Enter price: 10.00 Tax = 1.14 Total Price = 11.40 and it was sooo cool! nevermind it took me the best of three hours to write with borland c++ :D [and i copied half of it anyway cos i just didn't get what all the ;'s were doing there] the journey from that day to now... well, let's just say things are a little different- but programming still remains sooo cool. anyhoooo.. i was wondering just where/how did most programmers start out with their first ever "application"?

          :: have the courage to use your own reason

          C Offline
          C Offline
          Chris Losinger
          wrote on last edited by
          #20

          it was probably 10 PRINT "Yay "; 20 Goto 10 in BASIC, on a Commodore PET.

          image processing | blogging

          H 1 Reply Last reply
          0
          • M Marc Clifton

            The first program I wrote that I remember was a text-based (teletype actually) Star Trek game on a PDP-11. 10x10 grid, your ship, phasers, photons, Romulan Neutral Zone, a couple planets to investigate, a space station to dock with. You basically had to wipe out the Romulans and save the planets, but some of them lurked hidden behind the neutral zone and you had to go hunt them down. Every turn reprinted the grid with updated positions and stats like shields, energy, etc. Let's see, that was in 8th grade, I think, over 30 years ago. Marc

            Thyme In The Country

            People are just notoriously impossible. --DavidCrow
            There's NO excuse for not commenting your code. -- John Simmons / outlaw programmer
            People who say that they will refactor their code later to make it "good" don't understand refactoring, nor the art and craft of programming. -- Josh Smith

            H Offline
            H Offline
            homegrown
            wrote on last edited by
            #21

            ok.. that sounds just a *tad* more exciting than calculating tax.. but only *just* ;P

            :: have the courage to use your own reason

            1 Reply Last reply
            0
            • C Chris Losinger

              it was probably 10 PRINT "Yay "; 20 Goto 10 in BASIC, on a Commodore PET.

              image processing | blogging

              H Offline
              H Offline
              homegrown
              wrote on last edited by
              #22

              i like your style.. "hello, world" it just so *ancient* imagine every framework/sdk/language littered with a plethora of "Yay" programs as part of their introduction.. :D

              :: have the courage to use your own reason

              1 Reply Last reply
              0
              • R Ray Hayes

                I'm sure I used to do something like PRINT "Hello ", or something else at the end of the line which resulted in the output going all over the screen rather than a column down the left. If I had more time, I put a loop in there and changed the foreground and background colours too!

                Regards, Ray

                A Offline
                A Offline
                Arjan Schouten
                wrote on last edited by
                #23

                Yep, something with POKE 53280,X and POKE 53281,X on the C64 if I recall correct. ;)

                Arjan

                R 1 Reply Last reply
                0
                • H homegrown

                  just thinking back between to the first time, and the very first program ever that i ever "wrote" was a DOS "application" [yes, it was called an application] that had to calculate tax [@ 14%]on any price you input. ANY price. ;P > Enter price: 10.00 Tax = 1.14 Total Price = 11.40 and it was sooo cool! nevermind it took me the best of three hours to write with borland c++ :D [and i copied half of it anyway cos i just didn't get what all the ;'s were doing there] the journey from that day to now... well, let's just say things are a little different- but programming still remains sooo cool. anyhoooo.. i was wondering just where/how did most programmers start out with their first ever "application"?

                  :: have the courage to use your own reason

                  T Offline
                  T Offline
                  Tim Carmichael
                  wrote on last edited by
                  #24

                  My first 'application' was written on mark sense cards, in a pseudo-language... and I don't remember the name of it... (circa... 1980) In college (1982), we were asked to write an application in this 'language' that read in a deck of cards (number unknown) and print them in reverse order... the only way to complete the application was to have the program modify itself to change the index operator from 'add 1' to 'subtract 1'... I miss applications that can modify themselves... Tim

                  1 Reply Last reply
                  0
                  • H homegrown

                    just thinking back between to the first time, and the very first program ever that i ever "wrote" was a DOS "application" [yes, it was called an application] that had to calculate tax [@ 14%]on any price you input. ANY price. ;P > Enter price: 10.00 Tax = 1.14 Total Price = 11.40 and it was sooo cool! nevermind it took me the best of three hours to write with borland c++ :D [and i copied half of it anyway cos i just didn't get what all the ;'s were doing there] the journey from that day to now... well, let's just say things are a little different- but programming still remains sooo cool. anyhoooo.. i was wondering just where/how did most programmers start out with their first ever "application"?

                    :: have the courage to use your own reason

                    R Offline
                    R Offline
                    Roger Wright
                    wrote on last edited by
                    #25

                    My first wasn't really an application; today we'd call it a driver. My first computer didn't have any I/O, so I designed and built an interface card. Then I needed something to allow it to work, so I had to write the code to make the computer check it periodically for the presence of a data byte and do something with the data.

                    "...a photo album is like Life, but flat and stuck to pages." - Shog9

                    1 Reply Last reply
                    0
                    • B benjymous

                      On the Tandy TRS80 my dad recovered from a skip when his University was having a clearout - I think it was something along the lines of: 10 PRINT "HELLO RICHARD" 20 GOTO 10 Then (with lots of help from my Dad) we made some kind of snow program, with white asterisks falling down the screen. The TRS80 was incredibly limited to what you could actually do - it had no graphics, just upper case characters and punctuation.

                      -- Help me! I'm turning into a grapefruit! Buzzwords!

                      J Offline
                      J Offline
                      jbarton
                      wrote on last edited by
                      #26

                      From what I remember, the TRS-80 had a very crude form of "graphics". While it really always stayed in text mode, 64 characters in the character set were special 3 high by 2 wide pixel characters. This allowed setting monochrome pixels on the screen (as long as they didn't overlap with where you wanted to put text). I think the text display was 80 by 24, which allowed for an effective graphics resolution of 160 by 72. I remember an early game called 'Android Nim' which used the crude graphics to display animation of Android characters which were destroyed as part of playing the game. The game itself was very simple, but it was fun to see animation on a TRS-80. I think that the source was printed in some magazine of the time (the late 70's). At the time, I had an Exidy Sorceror computer (another Z-80 based computer which also had Basic available). It didn't have the TRS-80 character set for graphics, but it did have a programmable character set (you could poke data into the character set for the top 128 characters). I ported a number of TRS-80 games to the Exidy (including Android Nim) by setting up the programmable characters with a character set similar to the TRS-80.

                      1 Reply Last reply
                      0
                      • H homegrown

                        just thinking back between to the first time, and the very first program ever that i ever "wrote" was a DOS "application" [yes, it was called an application] that had to calculate tax [@ 14%]on any price you input. ANY price. ;P > Enter price: 10.00 Tax = 1.14 Total Price = 11.40 and it was sooo cool! nevermind it took me the best of three hours to write with borland c++ :D [and i copied half of it anyway cos i just didn't get what all the ;'s were doing there] the journey from that day to now... well, let's just say things are a little different- but programming still remains sooo cool. anyhoooo.. i was wondering just where/how did most programmers start out with their first ever "application"?

                        :: have the courage to use your own reason

                        M Offline
                        M Offline
                        Matthew Bache
                        wrote on last edited by
                        #27

                        The first real (i.e. useful) program I wrote was at University. It was written in FORTRAN and processed data from a spectrometer for one of my projects. I forget the actual purpose of the project, but do remember finding programming more enjoyable than the physics I was meant to be doing! Even so, it took me 14 years to get around to doing more programming, when I finally embarked on the Computer Science course that led to my current career.

                        1 Reply Last reply
                        0
                        • H homegrown

                          just thinking back between to the first time, and the very first program ever that i ever "wrote" was a DOS "application" [yes, it was called an application] that had to calculate tax [@ 14%]on any price you input. ANY price. ;P > Enter price: 10.00 Tax = 1.14 Total Price = 11.40 and it was sooo cool! nevermind it took me the best of three hours to write with borland c++ :D [and i copied half of it anyway cos i just didn't get what all the ;'s were doing there] the journey from that day to now... well, let's just say things are a little different- but programming still remains sooo cool. anyhoooo.. i was wondering just where/how did most programmers start out with their first ever "application"?

                          :: have the courage to use your own reason

                          E Offline
                          E Offline
                          El Corazon
                          wrote on last edited by
                          #28

                          homegrown wrote:

                          i was wondering just where/how did most programmers start out with their first ever "application"?

                          depends on how you define my first application. I modified a text only game on a TRS-80 Model I that was bombing Russia (cold war). I added graphics (radar screen) so that you could see targets, enemies, and approaching missiles trying to take you out. My first program written from the ground up was a polar coordinate mapping program of spider webs, choose center of screen, weave web until reaches a wall.... It was just learning the graphics system of my new computer I bought for myself in High School.

                          _________________________ Asu no koto o ieba, tenjo de nezumi ga warau. Talk about things of tomorrow and the mice in the ceiling laugh. (Japanese Proverb)

                          H 1 Reply Last reply
                          0
                          • R Ray Hayes

                            I'm sure I used to do something like PRINT "Hello ", or something else at the end of the line which resulted in the output going all over the screen rather than a column down the left. If I had more time, I put a loop in there and changed the foreground and background colours too!

                            Regards, Ray

                            R Offline
                            R Offline
                            ra ra ra ra
                            wrote on last edited by
                            #29

                            Ahh yes, its all coming back to me. INK and PAPER. sooo self explanatory!!! so now we can have something a bit more colourful like this: 10 RANDOMIZE 1 20 CLS 30 PAPER INT (RND*7) : INK INT(RND*7) 40 PRINT "MY brother smells "; 45 POKE 23692,255 50 GOTO 30 I changed the text to something I would have more likely output at the tender age of 8 or 9 when I got my speccy! ok so I admit I can't remember my ZX spectrum BASIC this well. I found a manual hingy on the web.... http://www.1000bit.net/support/manuali/zxspectrum/contents.htm[^]

                            1 Reply Last reply
                            0
                            • E El Corazon

                              homegrown wrote:

                              i was wondering just where/how did most programmers start out with their first ever "application"?

                              depends on how you define my first application. I modified a text only game on a TRS-80 Model I that was bombing Russia (cold war). I added graphics (radar screen) so that you could see targets, enemies, and approaching missiles trying to take you out. My first program written from the ground up was a polar coordinate mapping program of spider webs, choose center of screen, weave web until reaches a wall.... It was just learning the graphics system of my new computer I bought for myself in High School.

                              _________________________ Asu no koto o ieba, tenjo de nezumi ga warau. Talk about things of tomorrow and the mice in the ceiling laugh. (Japanese Proverb)

                              H Offline
                              H Offline
                              homegrown
                              wrote on last edited by
                              #30

                              Jeffry J. Brickley wrote:

                              depends on how you define my first application.

                              your first application would be any software program that was designed to perform a specific task. i;m not sure if the definition cateres for quality though [ie. did it actually work and how well? :)] nonetheless, for a first app... not bad

                              :: have the courage to use your own reason

                              E 1 Reply Last reply
                              0
                              • H homegrown

                                just thinking back between to the first time, and the very first program ever that i ever "wrote" was a DOS "application" [yes, it was called an application] that had to calculate tax [@ 14%]on any price you input. ANY price. ;P > Enter price: 10.00 Tax = 1.14 Total Price = 11.40 and it was sooo cool! nevermind it took me the best of three hours to write with borland c++ :D [and i copied half of it anyway cos i just didn't get what all the ;'s were doing there] the journey from that day to now... well, let's just say things are a little different- but programming still remains sooo cool. anyhoooo.. i was wondering just where/how did most programmers start out with their first ever "application"?

                                :: have the courage to use your own reason

                                N Offline
                                N Offline
                                Nic Rowan
                                wrote on last edited by
                                #31

                                homegrown wrote:

                                and the very first program ever that i ever "wrote" was a DOS "application" [yes, it was called an application] that had to calculate tax [@ 14%]on any price you input. ANY price.

                                I had to write the EXACT same program. Except I had to do it in Pascal (back in '95) :~ I still have it somewhere I think... It didn't have any procedures or functions. It was just one loooong block of code. Well, it seemed long back then it's probably only a few lines but I remember I had to (Gasp) scroll down to get to the bottom of the code.


                                Capital Punishment means never having to say "you again?" As easy as 3.141592653589793238462643383279502884197169


                                H 1 Reply Last reply
                                0
                                • H homegrown

                                  Jeffry J. Brickley wrote:

                                  depends on how you define my first application.

                                  your first application would be any software program that was designed to perform a specific task. i;m not sure if the definition cateres for quality though [ie. did it actually work and how well? :)] nonetheless, for a first app... not bad

                                  :: have the courage to use your own reason

                                  E Offline
                                  E Offline
                                  El Corazon
                                  wrote on last edited by
                                  #32

                                  homegrown wrote:

                                  did it actually work and how well?

                                  I made the game "look" incredible compared to before. But we offered it back to the company that made it, the author pressed that any modifications to his code belonged to him, it was our first example of software legal battles, and we were in 9th grade. We had a team, I taught the others programming and we all through around "could you do this" and I did it. The game looked great, played great, the legal battle was short, we gave up the code, I never modified another program, and almost didn't go into programming... I just missed it so much when I wasn't programming, I saved up enough to buy my own a couple years later.

                                  _________________________ Asu no koto o ieba, tenjo de nezumi ga warau. Talk about things of tomorrow and the mice in the ceiling laugh. (Japanese Proverb)

                                  H 1 Reply Last reply
                                  0
                                  • N Nic Rowan

                                    homegrown wrote:

                                    and the very first program ever that i ever "wrote" was a DOS "application" [yes, it was called an application] that had to calculate tax [@ 14%]on any price you input. ANY price.

                                    I had to write the EXACT same program. Except I had to do it in Pascal (back in '95) :~ I still have it somewhere I think... It didn't have any procedures or functions. It was just one loooong block of code. Well, it seemed long back then it's probably only a few lines but I remember I had to (Gasp) scroll down to get to the bottom of the code.


                                    Capital Punishment means never having to say "you again?" As easy as 3.141592653589793238462643383279502884197169


                                    H Offline
                                    H Offline
                                    homegrown
                                    wrote on last edited by
                                    #33

                                    Nic Rowan wrote:

                                    I had to write the EXACT same program

                                    what are the odds? must have been the choice of the decade back then.. '96 for me. :laugh: our lecturer was inot his GIS C++ stuff back then.. so pascal was out but i remember a few "geeks" in the class room complaining becos c++ wasn't as friendly as the pascal they were used to... of course.. i had NO clude as to what they were talking about..

                                    :: have the courage to use your own reason

                                    1 Reply Last reply
                                    0
                                    • A Arjan Schouten

                                      Yep, something with POKE 53280,X and POKE 53281,X on the C64 if I recall correct. ;)

                                      Arjan

                                      R Offline
                                      R Offline
                                      Ryan Binns
                                      wrote on last edited by
                                      #34

                                      Arjan Schouten wrote:

                                      Yep, something with POKE 53280,X and POKE 53281,X on the C64 if I recall correct.

                                      Yup :). Those numbers sound awfully familiar

                                      Ryan

                                      "Punctuality is only a virtue for those who aren't smart enough to think of good excuses for being late" John Nichol "Point Of Impact"

                                      H 1 Reply Last reply
                                      0
                                      • E El Corazon

                                        homegrown wrote:

                                        did it actually work and how well?

                                        I made the game "look" incredible compared to before. But we offered it back to the company that made it, the author pressed that any modifications to his code belonged to him, it was our first example of software legal battles, and we were in 9th grade. We had a team, I taught the others programming and we all through around "could you do this" and I did it. The game looked great, played great, the legal battle was short, we gave up the code, I never modified another program, and almost didn't go into programming... I just missed it so much when I wasn't programming, I saved up enough to buy my own a couple years later.

                                        _________________________ Asu no koto o ieba, tenjo de nezumi ga warau. Talk about things of tomorrow and the mice in the ceiling laugh. (Japanese Proverb)

                                        H Offline
                                        H Offline
                                        homegrown
                                        wrote on last edited by
                                        #35

                                        Jeffry J. Brickley wrote:

                                        it was our first example of software legal battles, and we were in 9th grade

                                        taking on the heavies from an early age then, heh ;) maybe that kind of thing [software legal wrangles] should be included as part of programming certification ? ...

                                        :: have the courage to use your own reason

                                        E 1 Reply Last reply
                                        0
                                        • A Alsvha

                                          Can't remember, to many years ago, but it was in Comal 80.

                                          --------------------------- 127.0.0.1 - Sweet 127.0.0.1

                                          H Offline
                                          H Offline
                                          homegrown
                                          wrote on last edited by
                                          #36

                                          Comal 80 ? never heard of it [not that i have a wealth of knowledge in programming languages] but it sounds like a prescription drug more than a programming language.. :laugh:

                                          :: have the courage to use your own reason

                                          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