Your first program

Since this is a beginning-coding thread, I thought it best not to start another one.

After I finish my book and I've gotten down all the basics from the book (Sam's Teach Yourself in 21 days 4 ed). Where do I go from there? Should I get a more comprehensive reference book and finish my education from there or will I know basically everything I need to know from the Sam's? Also, what's the next step for game-creation? Should I start 2D and work my way into 3D?. Creating a mod team would be a nice hobby once I'm in college, so I'd like to learn game-coding basics. I've already got the 3D modelling down, so this is the next step for me. I want to be a Rennaisance-man!!
 
Learn by experience. Create programs with real purpose, not just as an excercise, and you will never look back.
 
The first program I was ever really proud of is some AI that I wrote in Flash's scripting language, ActionScript. It's not C++, but the concepts are the same. It incorperates a wandering AI along with a "hunter" AI that tries to intercept its target rather than simply chacing it. You can see it here.
 
phantomdesign said:
EDIT: I'll stop being a nerd....

The first program I wrote was the quadratic formula & I wrote it on a TI-80.
From there I've done a lot of mathematical and physics program on calculators.

Probably the most useful program I wrote was one called "trainable" which you input basic triangle info (3 inputs) and it tells you what the other 3 variables are. I wrote it in 10th grade & used it until I graduated college....saved a significant amount of work and time.

Any chance you'll share?
 
0100010001101111011011110110110100100000001100110010000001101001011100110010000001110100011001010110100000100000011101110110111101110010011110100111010000100000011001110110000101101101011001010010000001100101011101100110010101110010001000010010000001001000011000010110110001100110011011000110100101100110011001010010000000110010001000000110100101110011001000000111010001100101011010000010000001110000011100100011000001100101011100110111010000100000011001110110000101101101011001010010000001100101011101100110000100100001
 
WaterMelon34 said:
0100010001101111011011110110110100100000001100110010000001101001011100110010000001110100011001010110100000100000011101110110111101110010011110100111010000100000011001110110000101101101011001010010000001100101011101100110010101110010001000010010000001001000011000010110110001100110011011000110100101100110011001010010000000110010001000000110100101110011001000000111010001100101011010000010000001110000011100100011000001100101011100110111010000100000011001110110000101101101011001010010000001100101011101100110000100100001

DooÉÉ\¡°;öüò Ha364ÖH
.dFVéâæâü evÉ

....
 
For a TI-83 it should be this:

Clrhome
Input A
Clrhome
Input B
Clrhome
Input C
Clrhome
(-B + SqrRootkey(B^2 - 4AC))/(2A) -> D
(-B - SqrRootkey(B^2 - 4AC))/(2A) -> E
Disp D
Disp E

That should do it. I could make one thats more user friendly.
 
My first major achievment was a breakout clone in Visual Badic 6. It was pretty cool to me at the time, but in reality it wasnt that good. The collision detection only worked in one direction (If you hit the bottom of a brick, you go down. If you hit the top, you go down), the ball ALWAYS moved at a 45 degree angle, I never finished the level/score/life systems, never fixed that infernal flickering on the ball and paddle (I know about BitBlt, just too lazy to mess with it), etc...

But, it was still cool to me at the time, with the ultra realistic physics (Look! It bounces!), the mindblowing sound (*beep*...*beep beep*... *beep*), the eye popping graphics (grey blocks, red ball, black background), and the twists and turns in the story (*Boop!* Fatal error...).

It's the closest I've ever come to finishing a game. I've tried many'a time, too. Online browser based MMORPG called Mysteria (PHP), Computer Tycoon-A business sim (Visual Basic), and a few trys at a top down space shooter (Tyrian, anyone?) in VB. Only thing to come out of that is a decent member system that I've used in other projects, from the PHP game.
 
lol wtf, i didnt say that!

go here to decode this:

0100010001101111011011110110110100100000001100110010000001101001011100110010000001110100011001010110100000100000011000100110010101011010011101000010000001100111011000010110110101100101001000000110010101110110011001010111001000100001001000000100100001100001011011000110011001101100011010010110011001100101001000000011001000100000011010010111001100100000011101000110010101101000001000000110011101100001011101000111100101100101011100110101010001110100001000000110011101100001011011010110010100100000011001010111011001100001011001010111001000100001

<NOT!>
 
read this

0100100001100001011011000110011001101100011010010110011001100101001000000011001000100000011101110110100101101100011011000010000001100010011001010010000001101111011011100110010100100000011011110110011000100000011101000110100001100101001000000110011101110010011001010110000101110100011001010111001101110100001000000110011101100001011011010110010101110011001000000110010101110110011001010111001000101110001000000100010001101111011011110110110100100000001100110010000001101001011101000111001100100000011011110110101100101110
 
01110011011010000111010101110100001000000111010001101000011001010010000001100110011101010110001101101011001000000111010101110000001000000110001001101111011101000110100000100000011011110110011000100000011110010110111101110101001000000110111101110010001000000110011101100101011101000010000001110100011001010110100000100000011000100110000101101110001000010010000100110001001000000011101001000100
 
0110111101101110011010010110111101101110011100110010000001110011011011010110010101101100011011000111001100100000011011110110011000100000011100110111010001100001011100100110110101101111011011100110101101100101011110010010000001101101011000010110111000100000011101110110010101100101001000000011101100101000
 
Code:
010010010010000001101101011000010110010001100101001000000110000100100000011000110110100001100001011101000010000001110011011001010111001001110110011001010111001000101111011000110110110001101001011001010110111001110100001000000111010001101000011010010110111001100111001000000110100101101110001000000101011001000010001000000110111101101110011000110110010100101100001000000100100100100000011001010110111001101010011011110111100101100101011001000010000001101001011101000010110000100000011101010110111001110100011010010110110000100000010010010010000001110010011001010110000101101100011010010111101001100101011001000010000001001001001000000110101101101110011001010111011100100000011000010110001001110011011011110110110001110101011101000110010101101100011110010010000001101110011011110111010001101000011010010110111001100111001000000110000101100010011011110111010101110100001000000110100001101111011101110010000001110000011100100110111101100111011100100110000101101101011100110010000001100111011001010110111001100101011100100110000101101100011011000111100100100000011010000110000101101110011001000110110001100101011001000010000001101110011001010111010001110111011011110111001001101011001000000110001101101111011011100110111001100101011000110111010001101001011011110110111001110011001011100000110100001010011010000111010001110100011100000011101000101111001011110111011101100101011000100111000001100001011001110110010101110011001011100110001101101000011000010111001001110100011001010111001000101110011011100110010101110100001011110111001001101111011001110111010101100101011101000110001101101110
compact way to do binary ;)
I also made a 1337 speak converter somewhere, only encoding, no decoding... it was ... haard :(
I am trying to learn c++ better, I can do some basic things in console apps and stuff, but that's about it right now.
 
My first true program was a memory game. 9 boxes would display on the screen each being numbered from 1-9. The program would begin by flashing one number. it would then ask the user to enter that number. On correct input, it would flash that number again along but this time, it would flash a new number after the first. The numbers would get larger and larger and they player would lose if they input the wrong number. It was actually very fun. :)
 
First program I was proud of I wrote when I was 6 or 7 using the ZX Spectrums Basic - it didn't do much though, played a tune (which i wrote myself) and took inputs / displayed outputs... I thought it was so cool.

Didn't really get into programming after that, till I was about 13 or 14 when I went through a dark phase writing programs in VisualBasic that I probably shouldn't have, but no harm done.

Latest one I am proud of was for some Uni coursework, a web-based (javascript) program a few hundered lines long, for gathering data and displaying graphical statistics.

Apart from that, i'm most happy with my IRC script that renders 99% of anti-ban scripts completely useless. I wrote it in a few minutes too, because a few script-kiddies were trying to be 'leet'. I won. :D
 
Jmechy said:
first one i was proud of:
that was after a quarter and a few weeks of college level compSci
http://jmechy.digitalpaintball.net/Java/pascal/Pascal.html
(in theory, by sat. night, i'll have a much more complicated applet up, but it's only half done... MUST beat the deadline!!!!)

HA! I had to do that too! i was so proud! But i love the library one I did, i created a library check-in and check out system with dif books, users, and status, ect.
 
The first program I ever wrote that was of a use to me is the one I'm writing now. You can see a thread about it here.
 
First program I was proud of was a control for a small (about 4.5 Kg) hexapod robot with a GUI interface written entirely in QBasic for a DOS computer, communication between the computer and the robot was done with an 8 bit serial connection. It was about about 2000 lines long. I would've been 14 at the time.

Haven't touched QBasic since.
 
2 pictures of the robot standing on its power supply.
 
The best program I've written was for the Commodore 64 when I was a kid, it enabled me to change the C64 keyboard into a music and sound FX keyboard. Like you'd press a key and a gunshot sound would go off.

I also programmed various basic games such as space invades for C64, those were the days.....
 
Back
Top