Live data from Hacker News

Laravel 5 released

laravel-news.com

11–20 of 114 posts

Re: Laravel 5 released

#11
post #8

Can you really write beautiful code in PHP?

Sure. PHP, especially post 5.4 has matured a lot and offers as many niceties as your favorite blub language. It has its warts, but at this point, nothing worse than what Javascript has for example.

That said, while you can write beautiful code in PHP, IMHO, Laravel is not that.

It full of "string typing", over-applied and mis-applied Design Patterns, and poorly thought abstractions.

It just saddens me that Laravel is considered well designed and advanced codebase, or, worse, a standard of how PHP should be coded.

While it's not as bad as the Wordpress spaghetti, it is mostly Java EE (circa 2004) in PHP, sans the strong typing assurances (and, fortunately, sans the gobs of XML too).

On the other hand, Laravel works and has a strong community going for it, which, as in the case of Wordpress, makes all the difference in the world.

Re: Laravel 5 released

#12
post #11
post #8

Can you really write beautiful code in PHP?

Sure. PHP, especially post 5.4 has matured a lot and offers as many niceties as your favorite blub language. It has its warts, but at this point, nothing worse than what Javascript has for example. That said, while you can write beautiful code in PHP, IMHO, Laravel is not that. It full of "string typing", over-applied and mis-applied Design Patterns, and poorly thought abstractions. It just saddens me that Laravel is…

Can you give an example of a well designed PHP codebase?

Are any of the other frameworks (Symfony2, Zend, etc..) better?

Re: Laravel 5 released

#13
post #11
post #8

Can you really write beautiful code in PHP?

Sure. PHP, especially post 5.4 has matured a lot and offers as many niceties as your favorite blub language. It has its warts, but at this point, nothing worse than what Javascript has for example. That said, while you can write beautiful code in PHP, IMHO, Laravel is not that. It full of "string typing", over-applied and mis-applied Design Patterns, and poorly thought abstractions. It just saddens me that Laravel is…

A lot of the over engineering in Laravel comes from Symphony, which in turn inspires how Laravel is built. And with the Proxy pattern in use everywhere, it inspires high coupling in your code in a way that doesn't quite look like coupling but is nonetheless.

Re: Laravel 5 released

#14
post #12
post #11

Earlier quoted context omitted.

Sure. PHP, especially post 5.4 has matured a lot and offers as many niceties as your favorite blub language. It has its warts, but at this point, nothing worse than what Javascript has for example. That said, while you can write beautiful code in PHP, IMHO, Laravel is not that. It full of "string typing", over-applied and mis-applied Design Patterns, and poorly thought abstractions. It just saddens me that Laravel is…

Can you give an example of a well designed PHP codebase? Are any of the other frameworks (Symfony2, Zend, etc..) better?

Not a framework per se, but several independent packages, http://thephpleague.com/ has some well written and nice code.

Re: Laravel 5 released

#15
post #12
post #11

Earlier quoted context omitted.

Sure. PHP, especially post 5.4 has matured a lot and offers as many niceties as your favorite blub language. It has its warts, but at this point, nothing worse than what Javascript has for example. That said, while you can write beautiful code in PHP, IMHO, Laravel is not that. It full of "string typing", over-applied and mis-applied Design Patterns, and poorly thought abstractions. It just saddens me that Laravel is…

Can you give an example of a well designed PHP codebase? Are any of the other frameworks (Symfony2, Zend, etc..) better?

No, they also suffer from the pattern misuse pattern and are also slow as hell.

Re: Laravel 5 released

#16
post #12
post #11

Earlier quoted context omitted.

Sure. PHP, especially post 5.4 has matured a lot and offers as many niceties as your favorite blub language. It has its warts, but at this point, nothing worse than what Javascript has for example. That said, while you can write beautiful code in PHP, IMHO, Laravel is not that. It full of "string typing", over-applied and mis-applied Design Patterns, and poorly thought abstractions. It just saddens me that Laravel is…

Can you give an example of a well designed PHP codebase? Are any of the other frameworks (Symfony2, Zend, etc..) better?

When I tried SF2 I found it to be a terrible, Java-like, pile of abstractions. This might work for some people, but if you prefer thinking about business logic (as opposed to "where do I extend this IoC dependency container so that it can find my ControllerFactory), it's not for you. It left me bitter.

Yii is supposed to be nicer, I heard from colleagues, but I left PHP programming the moment I saw the opportunity so I can't vouch for that.

Post reply on HN