954,123 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

What's the HARDEST program you've written?

Just curious. Hehe, I was thinking about this the other day and now I'm wondering what all you fellow coders out there have done. So what's the HARDEST most complicated program you've written? It doesn't have to be efficient, heck, it can all be spaghetti code.

The hardest thing I've coded was a DOS text editor written all in assembly. Parts of it were in Turbo Pascal 7.0, but it was used to call assembly libraries.

The second was a program, also written in assembly language and pascal that converted a text file to an EXE file, encrypted it, and password protected it (it had a login interface). It had some weird features like playing a song (an actual WAV sample) through the PC speaker while controlling the LEDs in the CD-ROM drive, Floppy, and Scroll/Caps/Number Lock (It made them flash like Christmas lights).

The shortest program I've ever written compiled to two bytes. Yes, two bytes. If anyone can beat that, let me know because there is only 1 program in the world that can have a size like that. =) Anyone care to guess what it did?

samaru
a.k.a inscissor
Team Colleague
1,256 posts since Feb 2002
Reputation Points: 262
Solved Threads: 18
 

2 bytes? Let me guess ... it restarted the computer? I remember you telling me once it did something like that.

cscgal
The Queen of DaniWeb
Administrator
19,421 posts since Feb 2002
Reputation Points: 1,474
Solved Threads: 229
 

Haha you gave yourself away. I knew I remembered seeing it somewhere. I did a search on techtalk for "assembly" and came up with this post that you wrote talking about that 2 byte program.

[thread]140[/thread] and it's the 4th post down.

cscgal
The Queen of DaniWeb
Administrator
19,421 posts since Feb 2002
Reputation Points: 1,474
Solved Threads: 229
 

Doh. I knew I told you, but I was hoping you didn't give it away. :shock:

samaru
a.k.a inscissor
Team Colleague
1,256 posts since Feb 2002
Reputation Points: 262
Solved Threads: 18
 

sorry :mrgreen:

cscgal
The Queen of DaniWeb
Administrator
19,421 posts since Feb 2002
Reputation Points: 1,474
Solved Threads: 229
 

You never wrote what the hardest program you wrote was. :shock:

samaru
a.k.a inscissor
Team Colleague
1,256 posts since Feb 2002
Reputation Points: 262
Solved Threads: 18
 

Hmm ... that's cuz I can't think of one. Possibly the Unix-based file manager I wrote in C this past semester for Mini-Krish. (It makes it a lot harder when you don't know C at all and the professor gives you no help.) I anticipate the file server queue I have yet to write for this guy to be tough too (hopefully not though!)

I'm also very proud of the Dictionary ADT (hash table) I wrote for CSC120 with Kamberova ... some of the stuff I did in Liang's class with QT was a lot of hard work too.

Probably the most complicated stuff I've done is work with the back-end of this damn forum software ;) It's my first endeavor with PHP and I sorta jumped into this complex proggie consisting of 200+ php files.

EDIT: After thinking about it, I decided that this phpBB forum software isn't hard, it's just long and tedious :o

cscgal
The Queen of DaniWeb
Administrator
19,421 posts since Feb 2002
Reputation Points: 1,474
Solved Threads: 229
 

Well that is a tough one.... let me see. I have two actually.

One is a program we had to write in school that simulate the different CPU alogorithms, and we had a choice of any language. Sounds like a dream...it wasn't. It was extremely tough, since we also had to display results, and show a graph. I decided to go the VBA route in good old Access 2000.

The second most difficult was probably the first C++ program I ever had to create, which was an actual functioning Tax Calculator. First exposure to C++ was definitely a downer. :-)

Paladine
Master Poster
Team Colleague
824 posts since Feb 2003
Reputation Points: 211
Solved Threads: 27
 

Restarting the computer would be smaller than a NOP?

whipaway
Junior Poster
Team Colleague
124 posts since Feb 2002
Reputation Points: 15
Solved Threads: 2
 
Restarting the computer would be smaller than a NOP?

Yes it would be smaller by a few bytes. Because even if you have a NOP, you would still need code to exit the program, which would add a few bytes more. When you restart the computer, you don't need to exit because you don't need any user input right after it reboots.

I believe that it only works in older machines though. I only tried it on a Windows 95 machine, in DOS.

samaru
a.k.a inscissor
Team Colleague
1,256 posts since Feb 2002
Reputation Points: 262
Solved Threads: 18
 

Files manager sounds interesting.. but my hardest was a .DOC to .HTML conversion program in PERL.

GR3Y
Newbie Poster
1 post since Jul 2003
Reputation Points: 10
Solved Threads: 0
 
Restarting the computer would be smaller than a NOP?

What's a NOP?

cscgal
The Queen of DaniWeb
Administrator
19,421 posts since Feb 2002
Reputation Points: 1,474
Solved Threads: 229
 

NOP = No OPeration. A program, procedure, process, line of code that does nothing. Stub functions are NOPs.

samaru
a.k.a inscissor
Team Colleague
1,256 posts since Feb 2002
Reputation Points: 262
Solved Threads: 18
 
cscgal
The Queen of DaniWeb
Administrator
19,421 posts since Feb 2002
Reputation Points: 1,474
Solved Threads: 229
 

Hardest? The one I'm working on right now... which isn't necessarily hard, just boring and time consuming.

A 2-tier client/server app in VB.NET with SQL Server support. It's a distributed app for my dork roomies and their RPGs. We have a LAN, so they want an distributed app to completely eliminate the paper and pencil aspect of their roleplaying games.

So... functional player sheets and dice rollers on teh clients, with the server having full access to the info and the ability to change info (the server is the GM's computer, obv.)... basic interface is done. I have the clients talking to server, and server talking to DB.

Once I got basic functionality done, and communications between client-server-db, I started fooling with making little openGL animations for 3-d dice rolling, hoping to stick them in a box somewhere in a VB window.

It's a huge, uncommented, hog of a program.. and damn messy. I think i may give up soon. Just getting the thing talking to it's different components took out my oomph. i haven't even begun to create the business rules, or built the huge multi-table relational database.

Blah, programming is hard, yo.

:(

Shug
Newbie Poster
5 posts since Aug 2003
Reputation Points: 10
Solved Threads: 1
 

hello world

subtronic
Junior Poster
117 posts since Aug 2003
Reputation Points: 44
Solved Threads: 1
 

i made a c to f converter in spanish and in english, the spanish grammar was really hard.


but making chocolate chip cookies was the hardest for me, the source code was all wrong

xlulux
Newbie Poster
21 posts since Oct 2003
Reputation Points: 14
Solved Threads: 3
 

hehe :) C to F as in celcius to farenheit? ;)

cscgal
The Queen of DaniWeb
Administrator
19,421 posts since Feb 2002
Reputation Points: 1,474
Solved Threads: 229
 

I have not seen such a senseless post in a long time. ;)

samaru
a.k.a inscissor
Team Colleague
1,256 posts since Feb 2002
Reputation Points: 262
Solved Threads: 18
 

Oh shut up you. :P (There, an even more senseless post.)

cscgal
The Queen of DaniWeb
Administrator
19,421 posts since Feb 2002
Reputation Points: 1,474
Solved Threads: 229
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You