|
Python!
Apr 3, 2005 21:40:56 GMT -5
Post by AnyKey on Apr 3, 2005 21:40:56 GMT -5
Okay, I think this is the most powerful and flexible language out there! Python is so easy to learn, I'll teach it to you right here! Okay! Lets get started! -Download Python from www.python.org-Open python.exe and type: print "hello world" OMFG! You're a Python programmer!;D If anybody has ANY questions regarding learning the language, ask me!
|
|
|
Python!
Apr 3, 2005 21:52:31 GMT -5
Post by bfr on Apr 3, 2005 21:52:31 GMT -5
So you must be pretty good at Python...how long have you been programming in it? Also, could you compare it to another language?
|
|
|
Python!
Apr 4, 2005 18:16:26 GMT -5
Post by AnyKey on Apr 4, 2005 18:16:26 GMT -5
About one year. I can compare it to some languages in the 'high-level scripting language category', and I'd say it wins every time. C is not a scripting langauge, and is only good for things like dll's and stuff. If you're going to write a GUI, it's not worth the time. --------------------------------------------------------------------- Languages: Perl: Okay for web servers, but impossible to read (write-only) Tcl: Good for GUI devealopment, which it was designed for, but still hard to read. Python uses a wrapper for Tcl's Tk (tool kit). Java: Okay, I really don't like java. Too many brackets. Ruby: I don't know anything about it, but I hear it's really similar. ---------------------------------------------------------------------- Python syntax is clear and easy to read. Here is an example from CalcStat: import urllib def get_urls(author_url): url = urllib.urlopen(author_url).read() cursor = 0 links = [] while 1: thing = data.find("<A HREF=\"/archives/files/fileinfo/", cursor) if thing == -1: break thing2 = data.find('\"><IMG BORDER=\"0\" SRC=\"/images/misc/info', cursor) links.append(" www.ticalc.org/archives/files/fileinfo/"+data[thing+34:thing2]) cursor = thing2+42 return links See how there are no brackets? If you couldn't tell, this returns all of the links to an author's files on TiCalc.org. Most other languages take more lines of code to do something simple like that.
|
|
|
Python!
Apr 4, 2005 18:17:00 GMT -5
Post by AnyKey on Apr 4, 2005 18:17:00 GMT -5
NOOOO! Damn board got rid of my tabs!!!!!
|
|
|
Python!
Apr 4, 2005 19:11:46 GMT -5
Post by bcherry on Apr 4, 2005 19:11:46 GMT -5
I've heard a lot of good things about python, but how can you insult C? C is such a good language because it is among the fastest of the "high level" languages, and most powerful. Sure it takes a lot of time to write a decent gui in C, but the results are almost always well worth it.
|
|
|
Python!
Apr 4, 2005 19:22:14 GMT -5
Post by AnyKey on Apr 4, 2005 19:22:14 GMT -5
Okay, so it was wrong of me to diss C, but why spend do much time on a GUI in C when you can write the GUI in Python and use C extentions to do lower-level stuff?*
*the opinions presented in the post above are only AnyKey's, and do not reflect those of the TiCalcs board or it's members.
|
|
|
Python!
Apr 4, 2005 19:26:19 GMT -5
Post by bcherry on Apr 4, 2005 19:26:19 GMT -5
C is more fun, and I like being able to work at a low level in a comprehensible way. That's just what I prefer anyway.
|
|
|
Python!
Apr 4, 2005 19:28:37 GMT -5
Post by AnyKey on Apr 4, 2005 19:28:37 GMT -5
I like high-level stuff, but you read the disclaimer. Hmmm...I should add that to my sig... /me edits 'siglib'
|
|
|
Python!
Apr 4, 2005 19:46:34 GMT -5
Post by bfr on Apr 4, 2005 19:46:34 GMT -5
Python is pretty flexible and all...but I enjoy both.
|
|
|
Python!
Apr 4, 2005 20:14:37 GMT -5
Post by AnyKey on Apr 4, 2005 20:14:37 GMT -5
So, you've taken up Python? If so, I'll finally have a fellow Python user to talk to!!! Nobody in the calc community uses it. BTW, Python and C together will boost your programs to a new level!
|
|
|
Python!
Apr 6, 2005 15:22:14 GMT -5
Post by Pure on Apr 6, 2005 15:22:14 GMT -5
I use Python and C, too!
|
|
|
Python!
Apr 6, 2005 19:02:16 GMT -5
Post by AnyKey on Apr 6, 2005 19:02:16 GMT -5
Email me if you have any questions!
|
|
|
Python!
Apr 7, 2005 14:22:50 GMT -5
Post by Pure on Apr 7, 2005 14:22:50 GMT -5
python code should be submitted to the Vuton Code Index!
|
|
|
Python!
Apr 7, 2005 17:08:26 GMT -5
Post by AnyKey on Apr 7, 2005 17:08:26 GMT -5
That won't work, because of how the boards get rid of indents, which are essential to Python.
|
|
|
Python!
Apr 7, 2005 17:15:22 GMT -5
Post by bfr on Apr 7, 2005 17:15:22 GMT -5
You should still submit code. I could just say that [~indent~]=an indent.
|
|
|
Python!
Apr 7, 2005 17:16:38 GMT -5
Post by AnyKey on Apr 7, 2005 17:16:38 GMT -5
Sorry. Too much work. Besides, nobody will look at it anyways. BTW, you can view all of my code on my site.
|
|
|
Python!
Apr 7, 2005 17:18:07 GMT -5
Post by bfr on Apr 7, 2005 17:18:07 GMT -5
I would and protonpower89 probably would.
|
|
|
Python!
Apr 7, 2005 18:13:58 GMT -5
Post by Pure on Apr 7, 2005 18:13:58 GMT -5
yes I definitely would!!!
|
|
|
Python!
Apr 7, 2005 18:44:10 GMT -5
Post by AnyKey on Apr 7, 2005 18:44:10 GMT -5
Okay! I'll submit some code snipetts from CalcStat sometime in the next week! Remember, no plagerism!!!
|
|
|
Python!
Apr 7, 2005 20:25:08 GMT -5
Post by bfr on Apr 7, 2005 20:25:08 GMT -5
OK. You will be credited.
|
|