this post was submitted on 04 Jan 2024
113 points (95.9% liked)

Programming

17536 readers
179 users here now

Welcome to the main community in programming.dev! Feel free to post anything relating to programming here!

Cross posting is strongly encouraged in the instance. If you feel your post or another person's post makes sense in another community cross post into it.

Hope you enjoy the instance!

Rules

Rules

  • Follow the programming.dev instance rules
  • Keep content related to programming in some way
  • If you're posting long videos try to add in some form of tldr for those who don't want to watch videos

Wormhole

Follow the wormhole through a path of communities [email protected]



founded 2 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
[–] [email protected] 17 points 10 months ago (15 children)

Finally someone who know how to do things properly.

Modern PHP isn’t half bad, and it has at least two major benefit over some of its competitors: Each request is a totally independent request that rebuilds the world. There’s no shared state (unless you want there to be).

big benefit is that you’re not stuck with having to learn and maintain a huge bells-and-whistles 3rd-party framework in perpetuity. I think people really underestimate the burden of maintaining a 3rd-party framework even after development of the website is complete

Starting on a cloud provider cedes one’s independence because it often leads to vendor lock-in.

The big benefit of running a basic Linux box on our own VPS is that everything is just files on a generic, well-understood platform (...) a VPS is a low-cost, simple, and lock-in-free way to go. Very classic-web.

At the end of the day...

All of this goes to show that you don’t need a whole lot to build a performant, useful website, capable of serving millions of requests a month, on a tiny server that also handles other resource-intensive tasks.

[–] [email protected] 2 points 10 months ago (8 children)

Each request is a totally independent request that rebuilds the world. There’s no shared state (unless you want there to be).

I with there was a language with this model, but without the language itself being completely garbage.

[–] RonSijm 6 points 10 months ago

Isn't that the same as modern languages? For example in ASPCore / C#, you can just register all your services with a lifetime scoped to the request, and then there's no shared state.

If you want there to be a shared state, you'd just have to register your services with a higher lifetime scope, like with a singleton scope

load more comments (7 replies)
load more comments (13 replies)