8,634 karma · joined Jun 23, 2011 (15y ago) · 7,679 submissions
comment 2y ago · link · parent
The average woman in Niger will have seven children. Clearly that's a good enough standard of living, else they would have no children by your logic.
You can't provide a better life to one child, let alone seven, than someone in Niger? And if not, how do you explain your parents? That means they had no trouble bringing you into a horrible existence. Something doesn't quite add up here.
> You're talking about industrialization and child labor laws
I agree that industrialization was the catalyst that made everyone richer, allowing them to no longer need children to support them. In the first world, even the poorest people are much, much, much richer today than rich people were in earlier times.
comment 2y ago · link · parent
Those who want to have children. But I agree, people don't want children, they want other things in life. And fair enough. It is their life to live as they see fit.
> many of my relatively middle-ish class friends want children but no one can afford them - the biggest road block is of course housing
So they say. But really, they're just complaining about the housing situation using a device that they hope will pull on the right heart strings (and most likely are just repeating what they heard someone else say). Let's face it: Whatever housing they've already got, even if just a tent, will be fine for the children. Children don't care.
> Back in '91 when I was born, a lowly police officer could support a family on his own, even in a big city like Munich. Nowadays? Completely impossible.
Or, perhaps, children were the contributors that made those things possible? We don't have to go too far back in history to find a time where adults were unable to survive without children. Being able to opt to not have children today is a luxury afforded to those well off (yes, that includes the middle class).
comment 2y ago · link · parent
Sure they can. Early North American settlers lived in tiny, one room log cabins, and raised those 3+ children in them just fine. Homes that small are not even allowed in most jurisdictions these days. The middle class have way more space to work with these days.
Let's face it, the reality is that middle class people just don't want children. It's not 'cool' to have children. Society says you need a career instead, and so that's what most people buy into and turn their attention towards.
comment 2y ago · link · parent
There is no such assumption. The assumption is that if you rely on a fake to service all your testing needs it cannot be tested against the real implementation as, in many cases, you do not want it to work the same way.
I don't know if a network connection failure is the greatest example, but let's run with it. Why bother adding simulated network failure into your fake, which, due to the problems you point out, won't be touched by your double-duty test suite anyway, when you can just create an additional mock that does nothing but simulate network failure? Why add needless complexity to the fake? You haven't gained a testability advantage.
That's not to say that a fake isn't also useful, but you haven't made a case for why it has to be the be all and end all. You can use both.
comment 2y ago · link · parent
Couldn't find your own words? The details don't say much. Sure, you have to bend to C to some degree, but that's true of every language that wants to integrate with C. Go integrates no less well than any other language on that front.
And it's not even really all that accurate. Consider "Performance will always be an issue" – gccgo and tinygo have shown that you don't have to have any call overhead. They can call C functions as fast as C can. That is in no way a limitation of Go.
That is only a limitation of gc, and even then the overhead is only a few nanoseconds these days. You're never going to notice. These may have been concerns in 2016 – indeed, overhead was a lot higher back then – but time marches forward. Things change. The link is fast approaching being a decade old by this point. At least give us something from 2024, about the current release that is 17 versions newer than the one referred to in the link, if you really don't know how to formulate your own thoughts.
But you should be formulating your own thoughts if you want to participate in a discussion. Outsourcing thoughts to other people is nonsensical. If those other people want to participate in the discussion, they can write their own comments, but that is for them to do.
> or Rust
PRQL is written in Rust, so it would be quite strange if it wasn't true of Rust. Interestingly, the Javascript bindings use a WASM target. Go could also use the WASM target if there was some reason to avoid more traditional linking. It is curious that you didn't mention that. Again, reason to use your own brain. If you have to outsource discussion, why bother participating at all?
comment 2y ago · link · parent
comment 2y ago · link · parent
Sounds like Reddit, minus the AI part. Any time someone might be on the verge of an original thought there it gets shot down with something akin to "[citation needed]", followed by strong social pressure for the user to stop participating if they can't manage just rewording "inspiration sites".
What's special about AI here?
comment 2y ago · link · parent
The reality is that unit testing swept the world and has become synonymous with testing. The days of yore when things like capture and replay testing were it are behind us. Today, it is uncommon for anyone to write anything other than unit tests (as originally defined).
And that's why "unit testing" has become confusing. Its original meaning no longer serves a purpose. Today, we just call it "testing", leaving those who wish to continue to use "unit" for the sake of fashion to invent pet definitions; definitions not shared by anyone else.
comment 2y ago · link · parent
If you cannot keep up with compute during regular hours, then perhaps you would find some benefit in seeing some of the load distributed to weekend hours.
comment 2y ago · link · parent
There are no "shoulds" in life – if you want to offer healthcare services under a surge model, go nuts – but it is unlikely that surge pricing would be beneficial in healthcare. Surge pricing meant to incentivize shifting some activity to another time of day.
Routine healthcare needs are generally already scheduled by appointment to ensure appropriate distribution. As such, there are no surges. Unexpected healthcare needs may encounter surges, but as they are not expected, a higher price doesn't alter incentives. Nobody wants to have unexpected healthcare needs in the first place. They aren't thinking "You know, a hospital visit is cheaper at 11AM. That's when I'll choose to break my arm!" Without that, you don't gain anything with surge pricing.
But someone thinking "You know, lunch is cheaper at 11AM. That's when I'm going to start eating lunch!" is quite realistic and beneficial to the restaurant. And, indeed, surge pricing is nothing new for restaurants for exactly that reason. Of course, traditionally, they have called it "happy hour" rather than "surge pricing", but the idea is the same.
comment 2y ago · link · parent
How are you going to "fight back" with price data? If you shift your habits to buy when the price is low – that's what they want you to do! A restaurant is far more efficient (read: profitable) when there is a steady stream of customers all day long, rather than having nobody in the place at 3PM and then a flood of people at 6PM. If a lower price can compel you to eat at 3PM instead of 6PM, that's a win for them.
comment 2y ago · link · parent
No, it does. Each of the 12 principles calls attention to what developers need to be thinking about when there are no managers. Agile is, in effect, a framework to help you operate without managers. If you already have managers, and they aren't willing to let go, agile was never on the table.
comment 2y ago · link · parent
Do you mean Goa? Indeed, it is not a language fit for what we're talking about. It only allows description of services, not the implementation. For that you have to fall back to Go, which completely misses the whole reason for using a DSL.
> "one of your upstream calls might fail and then you return an error to your caller" is not that interesting.
Sure, and which is why you wouldn't use Go here. There is absolutely nothing in Go that is geared towards abstracting those kinds of things away. And you can't tell me that Goa tempts you. It is not a good DSL.
comment 2y ago · link · parent
* If your errors are strings, you are almost certainly doing something horribly wrong. Further, your tests would notice it is horribly wrong as making assertions on those strings would look pretty silly, so if your errors are strings that tells that your testing is horribly, horribly wrong.
* Go is not a DSL, no. It is unabashedly a systems language. Failure is the most interesting problem in systems. Again, if your failures aren’t interesting, you’re not building a system. You should not be using a systems language, you should be using a DSL.
When you have no idea what you are doing, choosing the wrong tool at every turn, an LLM might be able to help, sure.
comment 2y ago · link · parent
Coverage is not a goal of TDD, but in practice you will have 100% coverage by following TDD as you would never have reason to write code that isn't covered by test.
Ultimately, the purpose of coverage tools is to let you know what you might have forgotten to clean up during a refactor, to help you remove what you missed.
comment 2y ago · link · parent
And making those assertions shouldn't be mindless work. Documenting the failure cases should be the most interesting work of all the code you are writing. If you are finding that it isn't, then that tells you that you should be using a DSL that has already properly abstracted the failure cases for your problem space away.
comment 2y ago · link · parent
I'm not sure you would approach any of those with programming. Once you have solved the problem, determined how to optimize the tools, or found a way to make a product work better then you might turn to programming to implement your discovery, sure, but programming alone won't get you there.