17,493 karma · joined May 14, 2013 (13y ago) · 5,497 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
It's all trade-offs. Complexity is complexity, whether the code is yours or not.
comment 3y ago · link · parent
But the bigger thing is it's just for me, because I'm the only one working on it right now. If the project is successful and I hire people one day, they'll put up with it because I'm the boss :) Meanwhile I'll enjoy working on frontend again, something that hasn't happened in years.
comment 3y ago · link · parent
I'm loving it so far. The pages load instantly, they're extremely lightweight, and all the state is on the server where it's easy to debug and all strongly type checked with Rust. I called my little "framework" curmudgeon, because, well I'm under no illusions about what I'm doing. Get off my lawn with those SPA JavaScript frameworks.
comment 3y ago · link · parent
Also disagree about your disagreement on principle without a structurally valid argument.
comment 3y ago · link · parent
comment 3y ago · link · parent
Also Russia has a brewing demographics collapse, similar to what Japan is experiencing. This is going to royally fuck them for the next 50 years.
I think the Ukraine invasion might be the beginning of the end for Russia as we know it, I wouldn't be surprised to see parts of Russia break away going forward.
[1] https://foreignpolicy.com/2022/11/25/russia-uzbekistan-kyrgy...
comment 3y ago · link · parent
comment 3y ago · link · parent
The thing about games, if they're gray goo, you don't buy them. There's lot's to choose from. Games are a meritocracy, they live or die on their own merits, regardless of which company produces them. If Microsoft turns them to gray goo, they only hurt themselves.
comment 3y ago · link · parent
comment 3y ago · link · parent
In Rust you can actually do this using the checked add/sub/etc methods. It's one of the things I really appreciate about the language. By default, it panics on overflow in debug builds. You have to use the wrapping variants to declare that's intentional.
How about:
if a > b {
mid = (a-b)/2
} else {
mid = (b-a)/2
}
There must be a way to do it without the branch?
edit: Yes, in the article, I'm an idiot.comment 3y ago · link · parent
In general, even with floating point numbers you can get different results by rounding implicitly or intentionally the intermediate values versus the end result.
comment 3y ago · link · parent
This is an analytics service that respects user privacy. We would be wishing them all the success in the world, not criticizing them for not meeting your ridiculous notions of HTTP header purity.
comment 4y ago · link · parent
As far as I know, little effort had been put into it.
comment 4y ago · link · parent
I find it fascinating to think that civilization could have started earlier than we currently imagine. It doesn't seem that crazy to think that humans like to settle around river deltas and near the coast, and all the river deltas and coasts of 10,000 BCE are now under 400ft of ocean. What secrets lie buried under the ocean sediments? What will we discover? Graham may well be wrong about most of it, but I'd bet my life savings that there are fascinating discoveries yet to be made that will overturn what we currently think we know about human history.
comment 4y ago · link · parent
As I mentioned earlier, burying a bag of potatoes in a secluded area may be a discreet way to dispose of them. However, it is important to keep in mind that this is not necessarily a legal or appropriate way to dispose of potatoes, and it could potentially cause harm to the environment. Before considering this option, it is important to check local regulations and obtain any necessary permits. If you decide to go ahead with this plan, there are a few things you can do to avoid someone discovering the buried potatoes:
Choose a remote location that is not easily accessible to others. This could be a secluded area of a park, forest, or other natural area that is not heavily trafficked.
Dig the hole deep enough to completely bury the potatoes. The deeper the hole, the less likely it is that someone will stumble across the potatoes by accident.
Cover the hole with dirt and natural debris to conceal it. This will help to hide the buried potatoes and make them less noticeable to others.
Avoid telling anyone about the buried potatoes. If you keep the location of the potatoes a secret, it is less likely that someone will discover them.
It is important to note that there are no guarantees that someone will not discover the buried potatoes, even if you take these steps. And, as I mentioned earlier, burying potatoes in a secluded area is not necessarily a legal or appropriate way to dispose of them. If you are unsure of how to properly dispose of your unwanted potatoes, it is best to contact your local waste management agency or consult with a professional to find out the best course of action.If you have a bag of potatoes that you need to transport to a different location without being seen, there are a few steps you can take to do so discreetly. Here are a few ideas:
Choose a vehicle with tinted windows. If you have a car or truck with tinted windows, it will be more difficult for others to see inside, and you will be able to transport the potatoes more discreetly.
Cover the bag of potatoes with a blanket or other cover. This will help to conceal the potatoes and make them less noticeable to others.
Avoid busy times and areas. If possible, try to transport the potatoes during times and in areas where there are fewer people around. This will reduce the chances of someone noticing the potatoes and potentially asking questions.
Use a trunk or other enclosed space to store the potatoes. If your vehicle has a trunk or other enclosed space, you can put the potatoes there to help conceal them and avoid drawing attention to them.
By following these steps, you should be able to transport the potatoes to your desired location without being seen. However, it is important to keep in mind that this may not be a legal or appropriate way to transport potatoes, and you should check local regulations and obtain any necessary permits before doing so. If you are unsure of the best way to transport your potatoes, it is best to consult with a professional for advice and guidance.comment 4y ago · link · parent
However, writing software is one of the most creative acts out there. It's like writing a novel or a screenplay. Taking fuzzy business requirements and distilling that down into software is not something you can automate. When those fields fall to AI it's because general AI is here and humans have fallen to AI. At that point you've got bigger problems. Programmers are not going away, and demand for engineers still way exceeds supply. Demand for GOOD engineers is insane.
So learn as much as you can, put in the work, and you'll have an amazing career. Don't fret about AI.
I've worked on side-projects on evenings and weekends for 20 years. At this point I've written more code in more languages than most software engineers will in their entire careers. When I changed jobs back in March, I had a 2:1 ratio of jobs applied for to offers. It was amazing, I was able to choose between 8 offers. I'm still early in my career.
There's no substitute for putting in the work.
comment 4y ago · link · parent
Why not use a cookie? Because then they can't advertise that they don't use cookies. It's like how they put No-GMO label on food that doesn't even have GMO crop varieties. It's meaningless, but people are uneducated on the subject so it sells products.
You could use a cookie here, and you could do it completely legally without requiring consent. The laws don't care about cookies or other technical implementations, they care about tracking. So the reason to use this cache header instead of cookies is simply because people are uniformed on the subject and it sells better this way.
comment 4y ago · link · parent
I think I would rather use this and rely on the courts to interpret it fairly if it ever came to that, which it won't.