think tank forum

technology » python

 
16 years ago
link
dbrown
i've been working on learning this language recently and i seem to be catching on. that said, i'd be glad for anyone to drop me some resources for me to look into. rock!
andre's avatar
16 years ago
link
andre
check <a href="http://www.diveintopython.org">diveintopython.org</a>, it's a free online book.
 
16 years ago
link
kernelpanicked
I have a few other python books as well as the one andre mentioned. If you want em let me know.
andre's avatar
16 years ago
link
andre
/me is dying to say "learn ruby instead" :P
 
16 years ago
link
RoddieRod
Cool Ruby online guide
http://www.poignantguide.net/ruby/
andre's avatar
16 years ago
link
andre
yeah, why's guide is the best.
 
16 years ago
link
arun
keep smiling !
http://www.byteofpython.info/ Yet another resource. :)
lucas's avatar
16 years ago
link
lucas
i ❤ demo
http://forums.bsdnexus.com/viewtopic.php?pid=4373#p4373
lucas's avatar
14 years ago
link
lucas
i ❤ demo
bumping thread #2 with an xkcd comic!

http://www.xkcd.com/353/
 
14 years ago
link
dbrown
ok, 1.5 yrs later i'm revisiting python. i'm just curious about everyone's thoughts on python as a language.

i feel like perl has spoiled me, the dynamic typing of data is something i envy every time i look into a different language. powerful but potentially confusing...
 
14 years ago
link
dbrown
oh and bump!
DaGr8Gatzby's avatar
14 years ago
link
DaGr8Gatzby
Drunk by Myself
I still Python is garbage. I am so so down on Python because of Gentoo Portage. I know it's not fair :(
lucas's avatar
14 years ago
link
lucas
i ❤ demo
> powerful but potentially confusing...

powerful but potentially unpowerful.
maple's avatar
14 years ago
link
maple
i like large datasets
not sure where you guys are coming from on this... Python is a great language. Its being used everywhere.

also, anyone using gentoo doesnt really get to have an opinion on what is garbage or not. :)

in all seriousness calling it garbage because of portage is a bit ridiculous.
DaGr8Gatzby's avatar
14 years ago
link
DaGr8Gatzby
Drunk by Myself
*think

Also, almost everytime python breaks, it BREAKS. I've fixed so many fuckin python errors on RHEL servers.

*sigh*

You know Ensim has a lot of python scripts.

Ensim == crap.

Eve Online is good though. :)
Carpetsmoker's avatar
14 years ago
link
Carpetsmoker
Martin
> Also, almost everytime python breaks, it BREAKS. I've fixed so many fuckin python errors on RHEL servers.

Did you fix the python scripts or fix python itself?
You can write crappy/buggy applications in any language, this has little or nothing to do with python.
maple's avatar
14 years ago
link
maple
i like large datasets
You might want to take a look at some of the people using it

http://wiki.python.org/moin/OrganizationsUsingPython

They take a little larger approach to evaluation than "it breaks".

Come on Gatz
Carpetsmoker's avatar
14 years ago
link
Carpetsmoker
Martin
Lots of people are using Microsoft Windows, Microsoft Office, and Microsoft Internet Explorer.

So these must be good products to?
DaGr8Gatzby's avatar
14 years ago
link
DaGr8Gatzby
Drunk by Myself
Hey if you want to code in Python, then hey go for it. I just hate it. I have NEVER used a good python application. ... Maybe bittorrent. Make a REALLY good python app and I might come around.
DaGr8Gatzby's avatar
14 years ago
link
DaGr8Gatzby
Drunk by Myself
Perl also sucks.
lucas's avatar
14 years ago
link
lucas
i ❤ demo
oh shit

now you've done it

where's djb
DaGr8Gatzby's avatar
14 years ago
link
DaGr8Gatzby
Drunk by Myself
Haha!

Naw Perl has its place, and so does Python. I just hate both of those langauges, despite their usefulness.
maple's avatar
14 years ago
link
maple
i like large datasets
"Lots of people are using Microsoft Windows, Microsoft Office, and Microsoft Internet Explorer."

that's a terrible analogy. i can see this is going nowhere. :)
 
14 years ago
link
arun
keep smiling !
The good thing about python is that its easy to pick up. You can be productive in like 2 days. And all the whitespace in its syntax makes the code look good. I say give it a try.
lucas's avatar
14 years ago
link
lucas
i ❤ demo
hm. i'll have to try it out sometime.
maple's avatar
14 years ago
link
maple
i like large datasets
you guys should really try django if your into web frameworks at all. i can pretty much say i will never use php again after using it the last couple of months. i did use codeigniter (php framework) for a good while but its nowhere near django. alot less magic than rails, which i like.

you could rewrite thinktank with django in a solid afternoon ( i always rewrite ttf when im playing with something new :))
 
14 years ago
link
larz
is just here for development.
lots of firms don't like using proprietary frameworks, in my experience.
lucas's avatar
14 years ago
link
lucas
i ❤ demo
oops
maple's avatar
14 years ago
link
maple
i like large datasets
proprietary? its bsd licensed.

http://code.djangoproject.com/browser/django/trunk/LICENSE
lucas's avatar
14 years ago
link
lucas
i ❤ demo
that's not what i mean. it's not very standard. once you start using a framework a lot, it's hard to get out of it.

a startup that i worked for last summer was using fusebox. i vomited, then removed it from their website completely. (an arduous process!) it cost them (us) a lot.
Carpetsmoker's avatar
14 years ago
link
Carpetsmoker
Martin
I suppose it depends on what you want to do, if you just want to write a weblog then a framework like Django might be the thing for you, it's more flexible than an application such as Wordpress, and still easy and fast to use.
maple's avatar
14 years ago
link
maple
i like large datasets
@lucas -- thats actually why alot of people use django. its python. straight up. so you dont need to hire django developers. you hire python developers.

but i also understand your point. although its not too standard it is used in some very large sites, deployment is very fast and easy (mod_python or fcgi on apache, lighttpd, etc), its fast and easy to pickup and read.

django is what really got me into pyhton in the first place. i needed a framework and couldnt stand rails after really getting into it and then found django. just what i was looking for. now i work on python stuff without django as well,though.

anyway, if you end up trying it out and have any questions let me know.
lucas's avatar
14 years ago
link
lucas
i ❤ demo
i'll have to look at it.
dannyp's avatar
14 years ago
link
dannyp
dʎuuɐp
I just installed python to get this mail analyzer thing to work:

http://lifehacker.com/379328/analyze-your-ema … ail-trends

kinda neat.
 
13 years ago
link
dbrown
python 3000 dropped... kind of a lame name though
http://python.org/download/releases/3.0/
what's new: http://docs.python.org/dev/3.0/whatsnew/3.0.html
basically lots of details changed but the big thing is that it's not backwards compatible.
bluet's avatar
13 years ago
link
bluet
I'm lovin' web.py!
Carpetsmoker's avatar
13 years ago
r1, link
Carpetsmoker
Martin
I've been making quite a bit of small python scripts at work on Windows, one of the great things is that python scripts are so portable, I can usually run the same script with no or little modifications on my FreeBSD system or vice versa.
nny's avatar
13 years ago
link
nny
M̮͈̣̙̰̝̃̿̎̍ͬa͉̭̥͓ț̘ͯ̈́t̬̻͖̰̞͎ͤ̇ ̈̚J̹͎̿̾ȏ̞̫͈y̭̺ͭc̦̹̟̦̭̫͊̿ͩeͥ̌̾̓ͨ
python, like perl is INCREDIBLY resource consuming. More so than java ( before it explodes and eats all your resources).

Still.... I'd prefer python devs over java devs ANY DAY.
Carpetsmoker's avatar
13 years ago
link
Carpetsmoker
Martin
> python, like perl is INCREDIBLY resource consuming. More so than java ( before it explodes and eats all your resources).

I never measured it, but I never noticed it was slow, with Java I do, especially with the GUI ... Tkinter feels much faster and respond a lot quicker ...
lucas's avatar
13 years ago
link
lucas
i ❤ demo
python is named after monty python.

that's enough reason to avoid it.
Weasley's avatar
13 years ago
link
Weasley
20 x 10 living
*cacacacocough*C#*coughcough*
lucas's avatar
13 years ago
link
lucas
i ❤ demo
apparently C#'s first name was "Cool". totally better than monty python.
Carpetsmoker's avatar
13 years ago
link
Carpetsmoker
Martin
How can you not like monty python ?!
Étrangère's avatar
13 years ago
link
Étrangère
I am not a robot...
> python is named after monty python.

God you are stuck on that
Weasley's avatar
13 years ago
link
Weasley
20 x 10 living
C# is the future of development.
maple's avatar
13 years ago
link
maple
i like large datasets
> C# is the future of development.

development of what? local apps, web apps, mobile apps, games, which platforms?

pretty bold claim there
Weasley's avatar
13 years ago
link
Weasley
20 x 10 living
Games, Windows applications

It's easy to learn and very quick to build applications with.
bluet's avatar
13 years ago
link
bluet
So in the future, people will only use Windows?
Weasley's avatar
13 years ago
link
Weasley
20 x 10 living
Well tbh it can be used for pretty much anything you said there, it's intergratable with AJAX and ASPX so it can also be used for web applications.
Weasley's avatar
13 years ago
link
Weasley
20 x 10 living
> So in the future, people will only use Windows?

Hopefully but it's most likely portable to other OS's.
bluet's avatar
13 years ago
link
bluet
:(
Carpetsmoker's avatar
13 years ago
link
Carpetsmoker
Martin
Did lucas implement the ban feature yet? :p
lucas's avatar
13 years ago
link
lucas
i ❤ demo
yeah. :)
Weasley's avatar
13 years ago
link
Weasley
20 x 10 living
olol ban for liking windows?

is called an opinion.
 
13 years ago
link
Mathew
Zombie Flesh Eaters
Sliverlight is pretty sweet because it can allow you run straight up C# applications. Also, managed code is by FAR the way to do it. It's so wasteful to write your own libraries these days.
nny's avatar
13 years ago
link
nny
M̮͈̣̙̰̝̃̿̎̍ͬa͉̭̥͓ț̘ͯ̈́t̬̻͖̰̞͎ͤ̇ ̈̚J̹͎̿̾ȏ̞̫͈y̭̺ͭc̦̹̟̦̭̫͊̿ͩeͥ̌̾̓ͨ
HTTP is not the correct method by which to communicate between random fucking applications over the internet. People who abuse HTTP should be publicly executed and their families banished for all time.
lucas's avatar
13 years ago
link
lucas
i ❤ demo
yeah, irc would be a better choice
nny's avatar
13 years ago
link
nny
M̮͈̣̙̰̝̃̿̎̍ͬa͉̭̥͓ț̘ͯ̈́t̬̻͖̰̞͎ͤ̇ ̈̚J̹͎̿̾ȏ̞̫͈y̭̺ͭc̦̹̟̦̭̫͊̿ͩeͥ̌̾̓ͨ
I AM CRUSHING YOUR HEAD!!!
DaGr8Gatzby's avatar
12 years ago
link
DaGr8Gatzby
Drunk by Myself
Ok Maple. I've come around. I want to code a webapp in Python because ... well ... PHP released version 5.3.1. Nuff' said. Are there any good links on Python web programming? I am really confused by the WSGI method. Also, I don't want to use a Framework, but would rather use something like a lightweight gateway through FastCGI. I still can't get most of this stuff to work, so anything would be appreciated.
nny's avatar
12 years ago
link
nny
M̮͈̣̙̰̝̃̿̎̍ͬa͉̭̥͓ț̘ͯ̈́t̬̻͖̰̞͎ͤ̇ ̈̚J̹͎̿̾ȏ̞̫͈y̭̺ͭc̦̹̟̦̭̫͊̿ͩeͥ̌̾̓ͨ
There's a python CGI module that will pre-populate http vars into standard locations... just like php env vars.

From there... stdout is web response via cgi. Pretty easy.
DaGr8Gatzby's avatar
12 years ago
link
DaGr8Gatzby
Drunk by Myself
I don't want to use CGI though. FastCGI is entirely different.
lucas's avatar
12 years ago
link
lucas
i ❤ demo
> I want to code a webapp in Python because ... well ... PHP released version 5.3.1. Nuff' said.

expound!
Carpetsmoker's avatar
12 years ago
r1, link
Carpetsmoker
Martin
The cgi module just gets the POST/GET vars for you, AFAIK you can use it with FastCGI.

I like to use Cheetah, it's a template engine. If you're thinking of Smarty then stop: Cheetah is much better.

Lucas, here is a bugreport which sums up many things that are wrong with PHP IMHO: http://bugs.php.net/bug.php?id=48669