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

java beginner question

Name: hank aaron 2009-03-16 22:00

while programming the game mastermind I became stuck when having to figure out how to come up with the correct integers and i will figure the sum for these after i find them
for example

secretCode = 123

input = 222

output is correct integers: 1 and sum: 2

for input = 122

output is correct integers: 2 and sum: 3

Name: Anonymous 2009-03-17 5:25

>>21
Because the Java program actually is and behaves like a fully fledged stand-alone program. The javascript version is just a single function. If I may use an example to show the sparsity of real code when you are making a real world usable peice of software: I have a seven line python script that posts to 4chan when passed appropriate parameters. Compare that to the PHP version which provides a web-form interface, AJAX post queuing and retrieving system; and various options for TOR, proxies, image ordering algorithms (lol image21 comes before image3?) and other miscellaneous features that make it completely usable and intuitive (to the extent possible in a browser-environment) experience. This tops 2000 SLOC, of which the function to actually post to 4chan given parameters is actually SMALLER than the python one (because PHP facilitates multipart by itself). Perhaps the phenomenon you are describing is telling of the real world in this sense? Java is used to actually make programs people will use- and things like javascript and haskell are for making small toy functions only the programmer himself can call from a special command line.

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