Out of sheer curiosity, I've been trying to learn different programming languages. I thought, "This might be fun," and it was. I first wrote a simple program in javascript with help from a short tutorial. I managed to write this little turd:
You may notice that it looks a lot like a sample from a tutorial. That's because it is, just slightly modified. I've yet to write an original program.HTML Code:<html> <head> <title>My_Functions_Script</title> <script type="text/javascript"> perfectNumber = 12 function checkPencils(numPencils) { if (numPencils == perfectNumber) { alert ("Way to go! That's just the right number of pencils one could have up one's nose."); } else if (numPencils > perfectNumber) { alert ("Okay, that might be a bit too many. You'd better yank some out before you suffocate."); } else if (numPencils < perfectNumber) { alert ("What! That's pathetic. You'd best start shoving some more up in there."); } else { alert ("What da heck ya talkin' bout, sister? I dudn't understands."); } } </script> </head> <body> <h3>How many pencils are in your nose?</h3> <form method="POST" name="pencilsForm" onSubmit="checkPencils(document.pencilsForm.numPencils.value);"> <input type="text" name="numPencils" id="numPencils" /> <input type="Submit" name="Submit" /> </form> </body> </html>
After I wrote that, I went five days without programming and forgot most of it. I've now tried writing code in Python, which is so much easier than javascript and seems way easier than most other programming languages.
Right now, I'm still learning Python. Any tips for Python or suggestions for other programming languages? In retrospect, I probably shouldn't have learned Python so early since it is a lot simpler than Java or C++ so I kind of spoiled myself. Plus, Java is pretty much the industry standard from what I've heard.
Does anyone else here do much in programming? Since my brother gave me a college textbook for learning Java, I think I'll dump Python and learn that instead. I might give some updates as to how much I've learned, but that may turn out to be too bloggy, so I probably won't.
Anyway, if anyone one here has written programs or has a job writing programs, please do tell about it.

Reply With Quote


