Hacker News new | past | comments | ask | show | jobs | submit login

The simple architecture is actually what PHP got right. For comparison, if you were using mod_python with the default settings, you needed to restart apache whenever you changed a file.

The insane part of PHP is the actual language. It's an overgrown template language. Half the functions are based on C, half the functions are based on Perl. There's no regularity or consistency.




Half the functions are based on C, half the functions are based on Perl. There's no regularity or consistency.

Recently, a third half of it was based on Java. :-)


I don't know. Other languages have become successful following that same path. See objective-c as a perfect example, though in obj-c's case, it only became popular because of the platform it was used on.

The benefit there is understanding. With PHP, knowing the C functions mean I understand how the PHP function works. The same with obj-c, I can drop down into C and work there. And the change in syntax, the way things works, helps me understand what is going on. Again, knowing C, I can do things in obj-c without needing to learn the obj-c part.

Maybe I'm one of the few, but context matters more than consistency. Maybe that's why I like vim.


Yeah, the standard libs lack consistency but that is annoying for about the first 1-2 months and then you get used to it.

However, a lot of modern PHP frameworks(Doctrine, Symfony2) are quite nice to work with.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: