Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon.

Pages: 1-4041-

Your first program ever

Name: Anonymous 2009-06-05 14:00

What was your first program ever? I mean, beyond the hello world and exercises; the first one you came up with yourself?
For me it was a Scheme program that made given text (from file) all upper/lower case. It asked the user for case, then did the converting, but if the user provided anything else than ``up'' or ``down'' as the mode, the program displayed the header that said ``learn to type, faggot'', and then printed an endless sequence of ASCII penises. It was a nice easter egg. Lol, good old days.

Name: Anonymous 2009-06-05 14:09

i wrote an ansi c compiler

Name: Anonymous 2009-06-05 14:14

Uhh, apart from endless Sepples [code]Please enter your name:, \nPlease enter your date of birth:, \nHello %s, you are younger than Hitler[code] pseudo-games, unfinished crapbags and 30-line programs that did the most basic things, I think it was an infinite barberpole generator that took a phrase from you and continually printf'd it and shifted the first character onto the end. Looked pretty neat.

Name: Anonymous 2009-06-05 14:23

My first program was in Pascal, it printed a man in ascii walking(by printing and clearing the screen constantly) and then asking: "Do you want to fire a kamehameha?(y/n)", you can imagine what it did. I was very proud of it, i even got a loser into programming by showing it to him. Too bad that piece of shit preferred to learn Delphi.

Name: Anonymous 2009-06-05 14:38

I mean, beyond the hello world and exercises;
Lol.  Only java monkeys start learning to program by doing exercises.

My first program (the one I wrote after the compulsory ``INCREDIBLE CALCULATOR'' was…  I don't remember.  But it was in QBASIC because I didn't learn any other languages until I was 12.  (My second language was Pascal and the third was C.)

Name: Anonymous 2009-06-05 14:42

My first real program was a script that randomly picked an image from a folder, resized/padded it so it fit my screen and set it as wallpaper.

At least that's what I think it did.

Name: Anonymous 2009-06-05 14:43

>>5
Lol.  Only java monkeys start learning to program by doing exercises.
You might want to read SICP.

Name: Anonymous 2009-06-05 14:45

I learnt to program by reverse-engineering Chipmunk Basic binaries at the age of 8.

Name: Anonymous 2009-06-05 14:47

>>7
I did, when I was mature enough to comprehend it in its glory.

Name: Anonymous 2009-06-05 15:05

I think it was some kind of horrible stick figure game in QBasic. Probably a platformer or something. No, the figure didn't have moving limbs.

Name: Anonymous 2009-06-05 15:23

Guessing a number the computer picked between 1 and 100 where the computer gave "higher" and "lower" feedback. Generally, this, compound interest calculators (for e.g. credit cards), and seives are the first things I try out in any new language. I think I will add rational arithmetic and continued fractions to this, though.

Name: Anonymous 2009-06-05 15:30

pascal;
you were required to enter your name, and if your name wasnt my name the program would endlesly print that they're a fegget.
it was yesterday ;_;

Name: Anonymous 2009-06-05 15:44

An ENTERPRISE application in Java. I get paid, I don't have time for toy programs or for being interesting.

Name: Anonymous 2009-06-05 16:07

I have no recollection whatsoever.

Name: Anonymous 2009-06-05 16:09

Factorial. I remember it as it was yesterday. In fact, it was yesterday. I write a factorial every day.

Name: Anonymous 2009-06-05 18:25

>>15
You have become recursion!!

Name: Anonymous 2009-06-05 18:32

>>13

Enterprise? Java? They don't go together well!

Name: Anonymous 2009-06-05 19:50

A prime number generator

Name: Anonymous 2009-06-05 20:11

My first program asked for quotes. If you passed ` or ', it deleted your relevant system files because those are not quotes.

Name: Anonymous 2009-06-05 21:19

A pokemon text battle game. You could only play as about 7 of them, but I was in middle school at the time and red/blue just came out.

Name: Anonymous 2009-06-05 23:52

A sudoku generator was my first program that I made aside from the initial hello world and some looping things.

Name: Anonymous 2009-06-06 0:04

I made a StarCraft trainer in x86 assembly. It created a simple dialog window with two buttons for activating the effects of the trainer (unlimited minerals / unlimited vespene.) Upon receiving a button click, it would find the process ID of starcraft.exe and use WriteProcessMemory to patch the code which subtracted resources, so instead of subtracting resources whenenver you built stuff it would add resources.

Name: Anonymous 2009-06-06 0:19

My first program was the Davinci virus

Name: Anonymous 2009-06-06 1:18

>>21
I tried to write a sudoku generator and failed after a few months of programming. I think I'll revisit this problem some day and show it who's boss.

Name: Anonymous 2009-06-06 8:50

First program?  Printing a sine wave out on a line printer, like how God intended your first program should be.

Name: Anonymous 2009-06-06 9:21

>>25
HAHA. Read YAHT.

Name: Scibble !vrg7uH8CdI 2009-06-06 10:16

I made a small game in flash as my first program, it was just a simple shooter.

Name: Anonymous 2009-06-06 10:27

My first program was inventing Assembly and using it to run Crysis on max setting at 60fps on an ENIAC.

Name: Anonymous 2009-06-06 10:49

i wrote a new firmware for my HP-9100 calculator

Name: Anonymous 2009-06-06 13:03

>>24
A few months???
Read SICP!

Name: Anonymous 2009-06-06 20:32

Doubly Linked List Library

Name: Anonymous 2009-06-06 21:56

I made a textual game called "Mazeman" in QBasic that used the extended ASCII characters to make a maze. There was a little 3x3 area you could see, and you had to go around the maze to collect keys and find the exit.

Looked something like this (assuming it renders properly)

█████
█└──█
█ ☺ █
█┐ │█
█████

Name: Anonymous 2009-06-06 22:08

>>32
Looks really nice :)

Name: Anonymous 2009-06-06 22:22

IRC bot which kicked ppl out if they entered text 3 times without anyone else replying to them

Name: Anonymous 2009-06-06 23:19

If you remember your first program you haven't been programming long enough.

Name: Anonymous 2009-06-07 1:36

A simple message delivery system, with encryption (an algorithm similar to rc4, but broken in a way that made it necessary to brute-force a 16-bit key (generated from the plaintext before encrypting) in addition to knowing the right 256-bit key to decrypt it) and some very ugly hacks to work around limitations of the file locking in QBASIC.

Name: Anonymous 2009-06-07 1:58

>>36
Who are you trying to impress?

Name: Anonymous 2009-06-07 2:39

>>37
back to /pr/, please.

Name: Anonymous 2009-06-07 2:52

Encryption algorithm that, upon looking back, was suspiciously similar to RC4 in that it used a permutation table modified by a key and the stream to be encrypted.

Name: Anonymous 2009-06-07 3:09

>>39
s/RC4/every stream cipher in existence

Name: Anonymous 2009-06-07 3:28

>>37
I found that impressive. I have never written anything besides a factorial and fibs in the last four years.

Name: Anonymous 2009-06-07 18:54

I downloaded some hugeass NES rom goodset. You know, those ones that have 1341 duplicates of everything for every region.

I remembered I spent some time learning some basic Python a while earlier, and decided to test my knowledge and cleaned out all duplicate files and hacks.

I ended up only playing about 5 games.

Name: Anonymous 2009-06-07 18:59

>>42
you shouldve used fdupes

Name: Anonymous 2009-06-07 20:23

My first program was on the BBC Micro, and it would read strings from INPUT statements until you entered a blank one, while writing them to a file. Its companion program read the file and printed out the strings.

My next ones messed around with sound, playing all sort of weird effects using the ENVELOPE and SOUND statements. Then I tried a bit of text mode animation, which culminated in drawing an egg (actually an ellipse) on the screen using SIN and COS functions, though I didn't understand why that worked at the time, filling it in with patterns, cracking it, drawing a small bird next to it and getting the computer to say "Happy Easter" using a speech synth program we bought as an addon.

Good times. Now I write business software all day and it fucking sucks.

Name: Anonymous 2009-06-07 21:01

>>44
You should redeem yourself by hacking on A++ super fun would code again projects all night. You don't want to die with the negative karma of a thousand scalable enterprise best practices compliant singleton classes weighing down your soul.

Name: Anonymous 2009-06-07 21:10

>>45
There's a reason enterprise practices include singletons. It's because they're a great idea.

Name: Anonymous 2009-06-07 21:36

>>45
I would do if I hadn't spent all my intellectual energy for the day at work.

Name: Anonymous 2009-06-08 1:09

>>46
Please elaborate. They're just global state. There's a case to be made for lazy instantiation if the object may not be needed, but at it's heart the "singleton pattern" is just a fancy name Java developers use to pretend that they're not using global variables, no?

Name: Anonymous 2009-06-08 1:22

>>48
That's like saying "at heart classes are just a fancy name Java developers use to pretend they're not using structs." Singletons co-operate nicely with the ideas of modularity, encapsulation and information hiding.

Name: Anonymous 2009-06-08 2:19

>>49
No, objects co-operate nicely with the idea of modularity, encapsulation and information hiding. It's a global variable that happens to be an object.

Name: Anonymous 2009-06-08 2:42

QBASIC textual capture-the-flag for two players at once (age 11-12ish). I thought it was so amazing that I had brilliantly realized how collision detection works.

Name: Anonymous 2009-06-08 4:28

"at heart classes are just a fancy name Java developers use to pretend they're not using structs."

You got it right >>49 san!

Name: FrozenVoid 2009-06-08 14:39

A bunch of screensavers in QBasic(It was included in win98) IIRC or the program i used to replaced command.com to password protected prompt(sort of compiled batch file) which then loaded command.com.

________________________________
http://xs135.xs.to/xs135/09042/av922.jpg
orbis terrarum delenda est

Name: Anonymous 2009-06-08 14:43

>>53
You're an anus!

Name: FrozenVoid 2009-06-08 15:20

>>54
 Interesting subject is, why are you looking at the anus(missing the whole man)?
Is there some unresolved sexual tension?
___________________________________________
http://xs135.xs.to/xs135/09042/av922.jpg
orbis terrarum delenda est

Name: Anonymous 2009-06-08 15:24

>>54
goddammit, now I see him too. Thought I'd uninstalled that script

Name: Anonymous 2009-06-08 16:06

>>55
You're an anus!

Name: Anonymous 2009-06-08 16:10

10 BEEP

Name: Anonymous 2009-06-08 17:44

AHH THE PLEASURE OF REINSTALLING MY ANTINAMEFAG JS

Name: Anonymous 2009-06-08 17:51

>>58
10 BEEP
That was actually the first thing I ever did when I taught myself QBasic.  I ran it, was pleased that I had instructed my computer to beep, and then began searching through the help thingy for more commands)

Name: Anonymous 2009-06-08 18:47

>>1
GO READ APPLE HUMAN INTERFACE GUIDLENS THE PENIS ARE AGAINST USABILITY!

Name: Anonymous 2009-06-09 2:51

>>61
The Apple "GUIDELENS" is actually "PENIS IN EVERY PROGRAM" and hes just too enthusiastic about it.

Name: Anonymous 2009-06-09 3:18

❤ my first program ❤

num = 256

out = 0

for i in range(((int(math.log(num, 2)))+1)):

    bit = num % 2

    out += bit*10**i

    num /= 2

    print bit,

    print i

print out

Name: Anonymous 2009-06-09 3:41

>>63
first program
love hearts
FIOC

EYE HIBBIT

Name: Anonymous 2010-09-10 2:56

I wrote a program in Visual Basic 6 called "msn ephin." It could rapidly change your display name and make you appear offline then online so you could fill your friends' screens with online notifications that formed messages. It could also constantly send a keypress followed by a backspace so while you had a conversation window open your friend would always see "x is typing a message."

Name: Anonymous 2010-09-10 5:15

>>65
I wrote a Threadbumper called RISE FROM YOUR GRAVE. It could rapidly bump your threads and make you appear as a new thread so you could fill your friends' screens with old threads. It could also constantly post HAX MY ANUS-derived memes so while you had a prog window open your friend would always see MY ANUS

Name: Anonymous 2010-09-10 15:01

>>66
I modified RISE FROM YOUR GRAVE to include the word MASTURBATING in bumped threads.

Name: Anonymous 2010-09-10 17:03

>>66
I used to do this to disrupt forums back in 2006.

Name: Anonymous 2010-09-10 23:14

I wrote a calculator with trigonometric functions.

Name: Anonymous 2010-09-12 16:07

I wrote snake on a calculator.

Name: Anonymous 2011-02-03 6:31

Name: Anonymous 2011-04-11 17:46

I wrote a console RickRoller.

Name: Anonymous 2011-04-11 17:49

I wrote an ANSI Turd compiler when I was 12 years old.

Name: Anonymous 2011-04-11 18:05

I wrote an utility, that ripped music and images from video games. It even had a pattern database, like your anrtivirus programms.

Name: Anonymous 2011-04-11 18:26

I wrote calculator on a snake.

Name: Anonymous 2011-04-11 19:01

Mine was a rubiks cube utility that gave a scramble sequence, and did various things with your times. I didn't know how to save things across launching the app, though, so it was pretty useless.

Name: Anonymous 2011-04-11 22:09

Uh... a simple text game made in FIOC, I think.

It was about a magic dwarf. Dang, I'm such a creative mastermind.

Name: Anonymous 2013-08-05 16:27

>>77
nice dubs

Don't change these.
Name: Email:
Entire Thread Thread List