games  anime  |  toys
This is a Dtoid readers's blog. For staff blogs click here. Confused? read this Create you own!  |   Members: Login now



My first program!
smasher imp | 3:57 AM on 07.02.2009 13 comments


I've finally done it. I actually stuck with a programming language long enough to vaguely learn it. And I produced my first program from scratch. I'm proud, to be honest. And it's coded in Python.

It's creatively named. It's called the 'Area Calculation Program'. You can calculate the area of 2D shapes, and the volume of 3D shapes. In terms of graphics, you've got a black background, with white writing. No sound effects as of yet. Another of my achievements, I compiled it into an .exe, and biffed that into a .zip file. Yes, it runs in command prompt, but so what? At least it runs smoothly, with no hiccups or lag. That's something not many games can boast nowadays. Not that this is a game. Anyway.



You can grab it here, if you're interested at all.



Attached photos:

Photo

  related blogs:
 

Is this post awesome? Vote it up!

0


Comment with Facebook





Click connect and comment instantly!

Comment with Dtoid





New? SIGN UP - it takes 5 seconds

13 comments | showing # 1 to 13

prev next

Half left's Destructoid Blog
7/10

Keep learning.
Tavendale's Destructoid Blog
It's exciting isn't it!

My first was a dice program in Visual BASIC.
IroN1c's Destructoid Blog
Nice job, I know how satisfying it is to create something like this, even if it's simple. I had to learn C++ and Visual BASIC in school and....uh. I hated it.
PhazonYoshi's Destructoid Blog
Whoo!

My first program was... I think a console app that would take 2 numbers and add them. Keep going, programming is awesome fun.

@Ironic, VB is utter shit, and C++ really isn't a language to learn as your first (This function returns what? A pointer to an array of pointers pointing to arrays of characters that represent floating point integers? ...what.), but stuff like Python is a brilliant language to both start, and continue with. Fairly easy to get your head round, and very powerful. GO GO GO I expect Crysis 2 by october.
Zippyduda's Destructoid Blog
Keep trying :) I'm nearly in the process of learning this kind of programming, Visual Basic, Dark Basic and C++.
Holyetheline's Destructoid Blog
I don't even remember my first program anymore... it was so long ago. This is nice, though! Keep it up!
Tubatic's Destructoid Blog
Grats!

My first first program printed a message.

Also, I made a tank battle type game in PASCAL, using print statements. It was functional and horrible, but I'm pretty sure I had like two types of weapons...
norm9's Destructoid Blog
Hello world!

Congrats on that. It must be really exciting to accomplish something creative and complex. Build on it yo!
Tristero's Destructoid Blog
@NORM9: Lol at the Hello world! That's the first thing I learned in BASIC for the Commodore 64. It's funny how that little phrase could make you feel so proud as it spilled down the screen.
Dead Movie Star's Destructoid Blog
... How did you make it a .exe? I want to make my Python scripts .exes!
Dead Movie Star's Destructoid Blog
Oh, I just downloaded the whole Python programming language. That makes sense.

Also, you should do this:

from time import time, ctime

print ctime(time())
start_time = ctime(time())
count = 0
while count < 1000000000000000000000000000000000000:
print count
count = count + 1

print "Started at: ",start_time
print "Ended at", ctime(time())
raw_input()
Marioland's Destructoid Blog
LOL my first program was a simple calculator on Qbasic. I also made some jiggy stuff on LOGO in school. It's been 12 years...aah those days... so sweet...
smasher imp's Destructoid Blog
Dead Movie Star, to make it an .exe, you download py2exe. You can find a real easy tutorial online. It's simple as to use. Also, I have another loop, which is effectively the same as yours. Thanks for the comment!


prev next


Comment with Facebook





Click connect and comment instantly!

Comment with Dtoid





New? SIGN UP - it takes 5 seconds

Comments policy

Destructoid is an open discussion community. You don't need to "audition" to post a comment - just speak your mind. We respect differing opinions on the site, so have at it. Be smart, funny, insightful, clueless, or cute -- but back it up with substance. Keep your cool, keep it fun. We only ask that you act respectfully and above all: don't be a troll and ruin it for everyone else. Don't bring down gamers or we'll, you know, gently shoot you in the face and stuff you into a flaming mailbox. Each comment is your opportuntity to make this community awesomer. Is that even a word?

Avoiding the banhammer only requires common sense: spamming, trolling, racism, NSFW stuff, and other forms of sucking will not be tolerated. If anyone is griefing please report abuse. Be good. Don't suck!

 about me

 xbox 360 gamertag
 friends' updates
Caffeine Knight's Profile Caffeine Knight
The Caffeine Knight has arrived!


 

 
  get involved

register or login
post a blog
post a forum
enter a contest
contribute a news tip
suggest a feature
be a guest editor
support

new member's guide
login assistance
tech support
report abuse
email our editors
read our dev blog
nuclear crisis?
keep in touch

RSS feed
Twitter
Facebook
Myspace
Flickr
Game nights
Meetup+play online
seriously

about Destructoid
advertising
terms of use
privacy policy
jobs at MM
buy our crap
our network

Tomopop
Japanator
Despingation?




Destructoid is an independently-run publication forged by our love of video games and the gaming community's need of accountable enthusiast press
living the dream since March 16, 2006