What's the HARDEST program you've written?

Please support our Computer Science advertiser: Learn about neural networks and artificial intelligence.
Reply

Join Date: Feb 2002
Posts: 1,135
Reputation: samaru is just really nice samaru is just really nice samaru is just really nice samaru is just really nice 
Solved Threads: 6
Team Colleague
samaru's Avatar
samaru samaru is offline Offline
a.k.a inscissor

What's the HARDEST program you've written?

 
0
  #1
Jun 25th, 2003
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?
Check out my blog at http://www.shinylight.com for more stuff about web dev.
Reply With Quote Quick reply to this message  
Join Date: Feb 2002
Posts: 12,019
Reputation: cscgal is a glorious beacon of light cscgal is a glorious beacon of light cscgal is a glorious beacon of light cscgal is a glorious beacon of light cscgal is a glorious beacon of light cscgal is a glorious beacon of light 
Solved Threads: 128
Administrator
Staff Writer
cscgal's Avatar
cscgal cscgal is offline Offline
The Queen of DaniWeb

Re: What's the HARDEST program you've written?

 
0
  #2
Jun 25th, 2003
2 bytes? Let me guess ... it restarted the computer? I remember you telling me once it did something like that.
Dani the Computer Science Gal
Follow my Twitter feed! twitter.com/daniweb
Reply With Quote Quick reply to this message  
Join Date: Feb 2002
Posts: 12,019
Reputation: cscgal is a glorious beacon of light cscgal is a glorious beacon of light cscgal is a glorious beacon of light cscgal is a glorious beacon of light cscgal is a glorious beacon of light cscgal is a glorious beacon of light 
Solved Threads: 128
Administrator
Staff Writer
cscgal's Avatar
cscgal cscgal is offline Offline
The Queen of DaniWeb

Re: What's the HARDEST program you've written?

 
0
  #3
Jun 25th, 2003
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.

http://www.daniweb.com/forums/thread140.html and it's the 4th post down.
Dani the Computer Science Gal
Follow my Twitter feed! twitter.com/daniweb
Reply With Quote Quick reply to this message  
Join Date: Feb 2002
Posts: 1,135
Reputation: samaru is just really nice samaru is just really nice samaru is just really nice samaru is just really nice 
Solved Threads: 6
Team Colleague
samaru's Avatar
samaru samaru is offline Offline
a.k.a inscissor

Re: What's the HARDEST program you've written?

 
0
  #4
Jun 25th, 2003
Doh. I knew I told you, but I was hoping you didn't give it away. :shock:
Check out my blog at http://www.shinylight.com for more stuff about web dev.
Reply With Quote Quick reply to this message  
Join Date: Feb 2002
Posts: 12,019
Reputation: cscgal is a glorious beacon of light cscgal is a glorious beacon of light cscgal is a glorious beacon of light cscgal is a glorious beacon of light cscgal is a glorious beacon of light cscgal is a glorious beacon of light 
Solved Threads: 128
Administrator
Staff Writer
cscgal's Avatar
cscgal cscgal is offline Offline
The Queen of DaniWeb

Re: What's the HARDEST program you've written?

 
0
  #5
Jun 25th, 2003
sorry :mrgreen:
Dani the Computer Science Gal
Follow my Twitter feed! twitter.com/daniweb
Reply With Quote Quick reply to this message  
Join Date: Feb 2002
Posts: 1,135
Reputation: samaru is just really nice samaru is just really nice samaru is just really nice samaru is just really nice 
Solved Threads: 6
Team Colleague
samaru's Avatar
samaru samaru is offline Offline
a.k.a inscissor

Re: What's the HARDEST program you've written?

 
0
  #6
Jun 25th, 2003
You never wrote what the hardest program you wrote was. :shock:
Check out my blog at http://www.shinylight.com for more stuff about web dev.
Reply With Quote Quick reply to this message  
Join Date: Feb 2002
Posts: 12,019
Reputation: cscgal is a glorious beacon of light cscgal is a glorious beacon of light cscgal is a glorious beacon of light cscgal is a glorious beacon of light cscgal is a glorious beacon of light cscgal is a glorious beacon of light 
Solved Threads: 128
Administrator
Staff Writer
cscgal's Avatar
cscgal cscgal is offline Offline
The Queen of DaniWeb

Re: What's the HARDEST program you've written?

 
0
  #7
Jun 25th, 2003
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
Dani the Computer Science Gal
Follow my Twitter feed! twitter.com/daniweb
Reply With Quote Quick reply to this message  
Join Date: Feb 2003
Posts: 793
Reputation: Paladine has a spectacular aura about Paladine has a spectacular aura about Paladine has a spectacular aura about 
Solved Threads: 27
Team Colleague
Paladine's Avatar
Paladine Paladine is offline Offline
Master Poster

Re: What's the HARDEST program you've written?

 
0
  #8
Jun 26th, 2003
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. :-)
Assistant Manager, Pharmacy Informatics
Wordpress Learning Blog
Updated : ASP.Net Login Code
Reply With Quote Quick reply to this message  
Join Date: Feb 2002
Posts: 110
Reputation: whipaway is an unknown quantity at this point 
Solved Threads: 2
Team Colleague
whipaway whipaway is offline Offline
Junior Poster

Re: What's the HARDEST program you've written?

 
0
  #9
Jun 26th, 2003
Restarting the computer would be smaller than a NOP?
Reply With Quote Quick reply to this message  
Join Date: Feb 2002
Posts: 1,135
Reputation: samaru is just really nice samaru is just really nice samaru is just really nice samaru is just really nice 
Solved Threads: 6
Team Colleague
samaru's Avatar
samaru samaru is offline Offline
a.k.a inscissor

Re: What's the HARDEST program you've written?

 
0
  #10
Jun 27th, 2003
Originally Posted by whipaway
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.
Check out my blog at http://www.shinylight.com for more stuff about web dev.
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:



Other Threads in the Computer Science Forum
Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC