Hacker News new | ask | show | jobs
by antonp 5408 days ago
>I don't know if I write 'best practice' python or django but it's about x6 less code than in PHP.

Just curious... Surely you mean django vs php (not zend or some other framework - which _would_ have been the fair comparison.

2 comments

I think he compared before (plain php) and after (invested time in learning some new technology).
No, the weird thing is I'm comparing Django to Kohana. The app I worked on in PHP was more complex, but one API page was very similar in both apps:

- Kohana: ~200 lines of code. - Django: 15. Seriously.

It's not only a matter of LOCs, it's also that writing code should be enjoyable. Python is, PHP not so.