Hacker News new | ask | show | jobs
by thingsilearned 6676 days ago
If you want to first learn the fundamentals, PHP/MySQL is a good place to start.

If you want to just jump in and make something frameworks such as Django and Rails make a nice level of abstraction above the database and even above the raw HTML.

If you're looking for a recommendation, I love Django.

2 comments

"If you want to first learn the fundamentals, PHP/MySQL is a good place to start."

Why, given the existence of Rails, Django, TurboGears, Ramaze, Merb, etc.?

My brother was a hacker in the late 90s, early 00s. He has a massive online hockey pool that he created somewhere around 98 or 99, all wrote in php.

He wants to revamp the site, which he hasn't fundamentally changed in 5 years or more, and asked me what to suggest. 'python manage.py inspectdb', the built in admin, and clean separation between code and style converted him to Django.

What's he re-vamping and why?

Look and feel? No need to switch from PHP. Performance? A framework might help, but it might not. Maintenance time? Could be looking ground up here.

Again, if this is a redesign for the sake of redesigning, it doesn't really matter what you use. If there is a specific goal though, changing frameworks/languages should only be done if it provides a way to reach the goal.

He is rewriting the site. Why? Because he wants to add a bunch of new features that would take longer to hack into the old system then to rewrite an entire new system. He is open to learning some new things, hence the language switch.

He isn't switching for the sake of redesigning, I don't know how you got that impression.

Maintenance time is a key factor here - he rarely looks at the code, so PHP-spaghetti (we are talking '99 PHP, pre-OO and basically impossible to not create spaghetti) is getting unbearable.