▲ | monooso 6 days ago | |||||||||||||||||||||||||
Laravel uses the active record pattern, same as Rails. If anything, the Laravel implementation is the more pragmatic of the two. It's fine if you don't like that pattern (I have my own misgivings), but it's a perfectly viable approach used by a lot of very experienced developers to build very successful applications. Dismissing everyone who uses a framework or design pattern you dislike as "junior developers who don't care about pesky things like maintainability and scalability" is inaccurate, rude, and ignorant. | ||||||||||||||||||||||||||
▲ | bakugo 6 days ago | parent [-] | |||||||||||||||||||||||||
> it's a perfectly viable approach used by a lot of very experienced developers to build very successful applications. "Lots of people use it" doesn't make it good. Lots of people in the past have written "successful" web applications as loose PHP files with little structure, no classes, using associative arrays everywhere (including me when I was starting out), but today it's generally agreed upon that this is not a good idea and will result in more bugs, maintenance headaches and an all around inferior developer experience, so what makes "active record" different? I'd understand your point if it had at least some advantages over the ORM approach to make up for the clear disadvantages, but I just don't really see any beyond "it seems easier and requires writing less code" (which, as I said, primarily appeals to beginner developers who just want to get things done as fast as possible and don't understand the long-term consequences). Are there any hidden advantages I'm not aware of? | ||||||||||||||||||||||||||
|