E-Scribe : a programmer’s blog

About Me

PBX I'm Paul Bissex. I build web applications using open source software, especially Django. Started my career doing graphic design for newspapers and magazines in the '90s. Then wrote tech commentary and reviews for Wired, Salon, Chicago Tribune, and others you never heard of. Then I built operations software at a photography school. Then I helped big media serve 40 million pages a day. Then I worked on a translation services API doing millions of dollars of business. Now I'm building the core platform of a global startup accelerator. Feel free to email me.

Book

I co-wrote "Python Web Development with Django". It was the first book to cover the long-awaited Django 1.0. Published by Addison-Wesley and still in print!

Colophon

Built using Django, served with gunicorn and nginx. The database is SQLite. Hosted on a FreeBSD VPS at Johncompanies.com. Comment-spam protection by Akismet.

Elsewhere

Pile o'Tags

Stuff I Use

Bitbucket, Debian Linux, Django, Emacs, FreeBSD, Git, jQuery, LaunchBar, macOS, Markdown, Mercurial, Python, S3, SQLite, Sublime Text, xmonad

Spam Report

At least 236561 pieces of comment spam killed since 2008, mostly via Akismet.

PHP and view/controller separation

Ironic that I find myself defending PHP at a point when I'm making a huge effort to move most of my web coding to Python, but I keep running across mini-rants along the lines of "PHP sucks because it mixes business logic into your HTML."

No, it doesn't.

It makes it possible, sure. But it's completely avoidable. As The Daily WTF can show you, it's possible to do screwy things in any language.

So remember:

PHP doesn't mix business logic and presentation -- people do.

Saturday, March 4th, 2006
+ +
2 comments

Comment from miguev , 5 weeks later

Maybe you wouldn't like to answer me, but... how can I have view/controller separation with PHP a la Django?

Comment from Paul , 5 weeks later

For PHP frameworks, there are a lot of choices. I haven't used any of them enough to make recommendations, but in this post I link to several of them and in this post I link to a directory with even more.

Comments are closed for this post. But I welcome questions/comments via email or Twitter.