17,491 karma · joined May 14, 2013 (13y ago) · 5,495 submissions
Revenue focused web analytics to help you quickly identify where to focus your effort to best increase revenue.
And embersofvictory.com
Retro turn-based strategy game.
comment 3y ago · link · parent
comment 3y ago · link · parent
comment 3y ago · link · parent
comment 3y ago · link · parent
I left a 1/8 tsp permanently in the bottle so there can be no mistake about what does to use.
comment 3y ago · link · parent
I gave up and left to seek my fortune elsewhere.
comment 3y ago · link · parent
The load balancer could keep track of how long requests for a specific path tend to take, and what servers are currently handling and use that information to be smarter about routing requests. I wouldn’t be surprised if that already exists in things like haproxy or nginx.
There’s issues where people stuff data into the URL, like ids or keywords for SEO. But that’s possible to workaround.
comment 3y ago · link · parent
I joke, but a lot of people just want to show up and do the bare minimal until quitting time. Disturbingly, many seem employed in customer facing positions.
To be fair, if they’re paying minimum wage, the employer has the same attitude towards the employees.
comment 3y ago · link · parent
All you have is requests and responses. They don’t come in a predictable order.
Whether you use async/await or not it’s irrelevant.
Loading and restoring the state is trivial. If you just want one state object per user, you can load and save it in your framework middleware. In real life you typically need more state than just per user state, which is why it’s uncommon to see that.
In the end you’ll find yourself back at the typical application server plus database architecture.
comment 3y ago · link · parent
I've been programming for over 20 years, and this is the biggest single productivity jump I've experienced in my career.
comment 3y ago · link · parent
You could emulate this in your language and framework of choice by loading user state at the start of the request, manipulating it in memory, and save it at the end. Like with durable objects, you’d also need to gate requests and process them one at a time to keep things consistent. A simple queue could be used to do that.
It’s really not connected to async/await, you could write it synchronously or with goroutines or actors or whatever.
comment 3y ago · link · parent
It sounds like you're talking about having in-memory per-user state that persists between requests on the server side. Each time a request comes in, it's handled in the context of the state from previous requests?
That's a lot like Cloudflare's Durable Objects.
But it's also not much different from storing state for a user in the database and/or cache and fetching it on demand.
I seems like you're thinking of having like the ability to yield a response from code and then have a request come back in and resume at that point again. I'm not sure that makes much sense over just looking up some state from somewhere on a request.
comment 3y ago · link · parent
1. Prisoners owe a debt to society, that’s certainly one way to repay it, provided it’s voluntary. Same reason I’d support voluntary prison labor.
4. You could argue being a sex worker is far more exploitive of women. I think it’s not our place to say they can’t do that, as long as it’s voluntary.
comment 3y ago · link · parent
I think the reality is usually more complex and nuanced. Does it help your average retail investor more than it hurts? Maybe.
comment 3y ago · link · parent
Buy some kids just won’t work if you’re not right behind them every day making sure they work. Others would struggle with direction in that kind of environment.
My brother tried to homeschool his kids, but it didn’t work out.