News for hackers. Stuff that matters.
Re:Why is modern web development so complicated? by anthony_doan on Wednesday August 07, 2019 @04:12PM (#20638425)
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.

Re:Why is modern web development so complicated? by avgDev on Wednesday August 07, 2019 @04:21PM (#20638523)
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.

Re:Why is modern web development so complicated? by TomMarius on Wednesday August 07, 2019 @04:28PM (#20638617)
PHP is way more "batteries included" than C# without ASP.NET
Re:Why is modern web development so complicated? by crumpets on Wednesday August 07, 2019 @04:49PM (#20638881)
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.
Re:Why is modern web development so complicated? by anthony_doan on Thursday August 08, 2019 @04:05AM (#20642689)
That's true, I've done PHP for a long time and there are like 1000 functions polluting the global namespace.
Re:Why is modern web development so complicated? by nfgu on Wednesday August 07, 2019 @04:50PM (#20638892)
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

Re:Why is modern web development so complicated? by arkh on Wednesday August 07, 2019 @07:37PM (#20640369)
> properly disposing of resource

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

Re:Why is modern web development so complicated? by nfgu on Wednesday August 07, 2019 @04:32PM (#20638656)
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.

Re:Why is modern web development so complicated? by anthony_doan on Thursday August 08, 2019 @04:17AM (#20642732)
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.