Separation of concerns is a fundamental of building quality software. AR is the opposite of this.
there are different approaches for separating concerns and make code readable. In the end just an opinion. Active record is very popular in RoR and node (sequelize) and many other languages and frameworks... so it can't be THAT wrong...
No they don't, but even if they did they also make things unpredictable and impossible to test. Globals have been considered evil for decades ...
i never had any problems in writing tests for a laravel app. Sure it's true that code that uses static methods in a poorly conceived way then said code will be difficult to test. Laravel has implemented static facade methods with due care and attention.
You guys are just proving my original point, laravel developers learn how to do things wrong and then evangelise poor coding practice to other new developers.
just google AR vs data mapper ... again you just reinforce my point that you don't know why one is better and double down on the crap that laravel has taught you.
yeah, I googled and used them myself. They both have pros and cons.
you can't mock statics. laravel has created another horrible hack to get around the fact that facades are a horrible hack in the first place. once again though, you would rather just double down on what laravel taught you than research why it's wrong
laravel went for simplicity first and facades play a major part in that role. And simplicity is always a key to better maintainability... at least for small to mid-sized apps.
are there already some benchmarks with laravel or symfony?
there are different approaches for separating concerns and make code readable. In the end just an opinion. Active record is very popular in RoR and node (sequelize) and many other languages and frameworks... so it can't be THAT wrong...
i never had any problems in writing tests for a laravel app. Sure it's true that code that uses static methods in a poorly conceived way then said code will be difficult to test. Laravel has implemented static facade methods with due care and attention.
well, that's your opinion.
and how do languages like javascript with node make it harder to write shitty code?
per second? per minute? per week?
yeah, I googled and used them myself. They both have pros and cons.
laravel went for simplicity first and facades play a major part in that role. And simplicity is always a key to better maintainability... at least for small to mid-sized apps.