Live data from Hacker News

Python on Wheels

pythononwheels.org

11–20 of 44 posts

Re: Python on Wheels

#13
post #4

I haven't found anything much simpler than web.py for putting together a simple python web service, but I'm open to seeing something new. Are there any example projects?

Check out the "Web micro-framework battle" by Richard Jones talk. Video: http://www.youtube.com/watch?v=AYjPIMe0BhA, slides: http://www.slideshare.net/r1chardj0n3s/web-microframework-ba....

Re: Python on Wheels

#14

I'm not sure what the author was thinking when writing this framework but it appears that he/she forgot everything about writing sane code. Below is a list of the things that stand out. 1. There's no sane directory structure, instead most of it is just dropped in a single directory. 2. How am I supposed to install this? There's no package for it so it seems the only way is to manually copy the repository. You'd think…

Also the video was painfully long... I agree a package manager should be used. I stopped looking after those 2 issues and never even got a chance to dive into the, what looks to be bad, code.

Re: Python on Wheels

#15
I commend the author for building something. I don't see this project solving a problem I have, but it looks to be an honest, if somewhat rough, effort.

A few suggestions:

- review PEP8 [1].

- no need to assign None to a variable before assigning another value

- Try to keep things DRY [2].

- use more descriptive variable names

- as others have stated, spell check your site copy

[1] http://www.python.org/dev/peps/pep-0008/

[2] http://c2.com/cgi/wiki?DontRepeatYourself

* edited for formatting

Re: Python on Wheels

#16
post #9

> PythonOnWheels (or short PoW) Argh. Possibly bad name choice somehow: http://pow.cx/

It makes me think of nothing so much as Wikipedia's most legendary troll.

Re: Python on Wheels

#18

I'm not sure what the author was thinking when writing this framework but it appears that he/she forgot everything about writing sane code. Below is a list of the things that stand out. 1. There's no sane directory structure, instead most of it is just dropped in a single directory. 2. How am I supposed to install this? There's no package for it so it seems the only way is to manually copy the repository. You'd think…

And it's not forward compatible at all.

I know Python 2 or 3 is an ongoing debate, but there's no reason to be blatantly incompatible on a new project by using deprecated functionality like print statements instead of functions. Especially not on low hanging fruit like that.

Re: Python on Wheels

#19
I'm pretty sure this is a joke/parody. This has to be a joke...

On the homepage:

  
  (...)
  
  (...)
  
pow_devel/generate_controller.py:1

  #!C:\Python26\python.exe -u
Even though the screencast is on a Mac and pythononwheels.org is running Debian Lenny.

pow_devel/pow_console.py:1

  ## {{{ http://code.activestate.com/recipes/355319/ (r1)
Hilarious webhost: https://www.server4you.de/templates/images/vserver/pic-710-v...

I really want to say that the criticism in these comments is just playing into the author's hands. Please tell me this is a joke?

Re: Python on Wheels

#20
Hi,

I wrote the PoW framework. And want to give some short feedback on the comments here.

Yes, i need to get things cleaned up. Shebangs are old and not used. So can and will be dropped. Good point i really forgot they were still there. Yes, I am rewriting generate_* to encapsulate specific actions in functions... Can be much cleaner.. Typos on page where really bad , sorry. And yes, the videos where really too long. But were online in just for 2 days. I replaced them with versions of 6minutes and (i think) 14 minutes for the weblog.

Some other remarks are just not true:(or outdated) 1. how do i install ? => 1. Watch 6 min screencast (thats exactly why i made them )but its just a simple unzip and pip the needed libs. 2. Directories hardcoded => no, are configurable. 3. Base in just one directory. => no. Structured stubs and generates a very structured mvc dir-tree.

4. Server errors on first 2 days => yes, was due to serving with simple_server (which is really not for prod ) now running apache mod_wsgi. Stable since 2 weeks... ;).

Again: lots to do in code refinement of course. Please keep in mind its pre-beta. The focus of the last weeks was in the generated code, more than the generators. Can you also give some feedback on that ? To my mind much better an OO than the flat generators which where really more form follows function. (which is no excuse for having much potential in there)

Thanks for feedbacks. Working dayly in improving the thing ;).

Post reply on HN