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
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
19,422 posts since Feb 2002
Reputation Points: 1,474
Solved Threads: 230
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
19,422 posts since Feb 2002
Reputation Points: 1,474
Solved Threads: 230
Doh. I knew I told you, but I was hoping you didn't give it away. :shock:
samaru
a.k.a inscissor
1,256 posts since Feb 2002
Reputation Points: 262
Solved Threads: 18
cscgal
The Queen of DaniWeb
19,422 posts since Feb 2002
Reputation Points: 1,474
Solved Threads: 230
You never wrote what the hardest program you wrote was. :shock:
samaru
a.k.a inscissor
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
19,422 posts since Feb 2002
Reputation Points: 1,474
Solved Threads: 230
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
1,256 posts since Feb 2002
Reputation Points: 262
Solved Threads: 18
Restarting the computer would be smaller than a NOP?
What's a NOP?
cscgal
The Queen of DaniWeb
19,422 posts since Feb 2002
Reputation Points: 1,474
Solved Threads: 230
NOP = No OPeration. A program, procedure, process, line of code that does nothing. Stub functions are NOPs.
samaru
a.k.a inscissor
1,256 posts since Feb 2002
Reputation Points: 262
Solved Threads: 18
cscgal
The Queen of DaniWeb
19,422 posts since Feb 2002
Reputation Points: 1,474
Solved Threads: 230
hehe :) C to F as in celcius to farenheit? ;)
cscgal
The Queen of DaniWeb
19,422 posts since Feb 2002
Reputation Points: 1,474
Solved Threads: 230
I have not seen such a senseless post in a long time. ;)
samaru
a.k.a inscissor
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
19,422 posts since Feb 2002
Reputation Points: 1,474
Solved Threads: 230