Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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.



This 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.


PHP is way more "batteries included" than C# without ASP.NET


Yeah, 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.


That's true, I've done PHP for a long time and there are like 1000 functions polluting the global namespace.


It 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


> properly disposing of resource

It's php. Everything is trashed once the http request has been served.


You 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.


I 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.




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

Search: