4 ms·
You don't even use a backend rendering framework? MVC PHP frameworks are very nice and they don't move as fast as those javascript frontend rendering. Also th
by anthony_doan 7y ago
You don't even use a backend rendering framework?
MVC PHP frameworks are very nice and they don't move as fast as those javascript frontend rendering.
Also the ORM deals with any security problems and most framework deals with other security deals too including session handling.
- avgDev 7y agoThis seems odd to me. I have been working in .Net MVC/Core and while I could write an application that is simply HTML/CSS/C#, I would think it would be insane to do so. It takes a massive amount of resources to develop your own security, your own data access without any ORM tools, not cause memory leaks, properly disposing of resource. I'm all about creating reliable applications, but a good framework is a great tool.
- TomMarius 7y agoPHP is way more "batteries included" than C# without ASP.NET
- crumpets 7y agoYeah, unless you have workers, the whole "request is the lifecycle of the app" model of PHP makes it pretty damn hard to get a memory leak.
- anthony_doan 7y agoThat's true, I've done PHP for a long time and there are like 1000 functions polluting the global namespace.
- nfgu 7y agoIt is entirely possible to import things like EntityFramework, Razor and Identity Framework without using ASP.NET MVC itself. Just because the framework uses them by default it doesn't mean they can't be used separately. You can use Razor Pages or a router like Nancy[1] without having to roll your own ORM or View Library. [1] https://github.com/NancyFx/Nancy https://github.com/NancyFx/Nancy
- arkh 7y ago> properly disposing of resource It's php. Everything is trashed once the http request has been served.
- nfgu 7y agoYou can use rendering libraries, ORMs and session management libraries without a framework. I think it's way nicer. I much prefer environments like Sinatra, Express or Flask than full-blown MVC frameworks.
- anthony_doan 7y agoI did Flask and I thought it was so much work to do a login system and other stuff. There were so many ways of structuring your codes. I find myself constantly rewriting the code to adapt to a new way of organizing codes. I personally prefer a somewhat opinionated framework. But I understand that there is a pro and con and a need for a barebone/slim framework versus a featureful framework. I actually moved from flask & vuejs 2 from last year to phoenix & jquery.