| | |
What's the HARDEST program you've written?
Please support our Computer Science advertiser: Learn about neural networks and artificial intelligence.
![]() |
By far the hardest nut I had to crack was some javascript (bearing in mind I grew up on basic and vb) that was to run clientside for my ASP web application. It was difficult because the user needed to be presented with data in a series of HTML tables, and wanted to 'drag and drop' rows between those tables (the tables represented Delivery vehicles and the rows where parcels to be delivered), getting the data and presenting it in tables was expensive and I did'nt want to post for every 'drag n drop' operation.
Luckily this was an IE only shop so I didn't have to worry about cross-browser stuff. And I discovered in IE you can dynamically set the src attribute of a <script> block to an asp page on the server, this spawns a GET request to the server.
So I created a string of key/value pairs that could be sent in the query string, once you get server side though you have to use JScript in the ASP page instead of VB, but this turned out to be not too bad. I could then do database stuff and at the end generate more javascript that the cient receives in responce to its GET. This tripped another javascript function that - now knowing DB stuff had been successfull - could use the DOM to re-arrange the tables.
And that's how you do distributed Drag n drop in a conectionless environment ! without jamming the network with reams of HTTP traffic.
PS. and no unsightly activeX control to download and install either.
Luckily this was an IE only shop so I didn't have to worry about cross-browser stuff. And I discovered in IE you can dynamically set the src attribute of a <script> block to an asp page on the server, this spawns a GET request to the server.
So I created a string of key/value pairs that could be sent in the query string, once you get server side though you have to use JScript in the ASP page instead of VB, but this turned out to be not too bad. I could then do database stuff and at the end generate more javascript that the cient receives in responce to its GET. This tripped another javascript function that - now knowing DB stuff had been successfull - could use the DOM to re-arrange the tables.
And that's how you do distributed Drag n drop in a conectionless environment ! without jamming the network with reams of HTTP traffic.
PS. and no unsightly activeX control to download and install either.
•
•
Join Date: Mar 2008
Posts: 2
Reputation:
Solved Threads: 0
The hardest program I have ever written is the project I just finished (as a requirement from juniors in my high school) - it was for a research project, called "A Novel Approach to Natural Language Programming". I basically made a program that allows you to write English language solutions to a problem, and the computer converts it to working code in a language that I designed myself.
The code I wrote has 50 Java classes, and 5 python classes, along with 3 libraries that I interface with. This goes along with the programming language I wrote myself (haven;t given it a name, haha). That was quite a lot of work (one year), and since this is the first time I wrote so much code, its sort of disorganized (well, highly so). Maybe better organization next time, but I am pleased with what I have. I have attached a screeshot too, you might have to fidget with it a bit to see it right.
The code I wrote has 50 Java classes, and 5 python classes, along with 3 libraries that I interface with. This goes along with the programming language I wrote myself (haven;t given it a name, haha). That was quite a lot of work (one year), and since this is the first time I wrote so much code, its sort of disorganized (well, highly so). Maybe better organization next time, but I am pleased with what I have. I have attached a screeshot too, you might have to fidget with it a bit to see it right.
my graduate project...
cluster data with GKA(genetic k-means algorithm)
cluster data with GKA(genetic k-means algorithm)
Never tried = Never Know
So, Please do something before post your thread.
* PM Asking will be ignored *
So, Please do something before post your thread.
* PM Asking will be ignored *
•
•
Join Date: Apr 2008
Posts: 14
Reputation:
Solved Threads: 3
University project;
Prolog in Java. Was a set of java classes which acted like a mini-prolog machine (keeping state, backtracking etc.) Took prolog source and compiled into Java source, or java bytecode (even did on the fly generation.) Managed to implement around 80% of the standard ISO prolog functions, and even got the compiler to have dynamic operator's, which was a little tricky.
Prolog in Java. Was a set of java classes which acted like a mini-prolog machine (keeping state, backtracking etc.) Took prolog source and compiled into Java source, or java bytecode (even did on the fly generation.) Managed to implement around 80% of the standard ISO prolog functions, and even got the compiler to have dynamic operator's, which was a little tricky.
![]() |
Other Threads in the Computer Science Forum
- Previous Thread: OpenCV help
- Next Thread: Computer Science Degree
| Thread Tools | Search this Thread |
Tag cloud for Computer Science
ai algorithm algorithms amazon assignment assignmenthelp assignments automata battery bigbrother binary bittorrent bizarre bletchleypark blogging bomb business cern compiler computer computers computerscience conversion csc data dataintepretation development dfa dissertation dissertations dissertationthesis dissertationtopic ebook employment energy floatingpoint foreclosuresoftware fuel gadgets geeks givemetehcodez government graphics hardware history homeowners homeworkassignment homeworkhelp ibm idea ideas internet iphone ipod itcontracts jobs kindle laser laws linkbait mainframes marketing mining mobileapplication msaccess nano netbeans networking news os p2p parser piracy piratebay principles programming rasterizer research sas science security sex simulation software spying stephenfry study supercomputer supercomputing syntactic technology textfield tree turing turingtest two'scompliment uk virus warehouse ww2






