8,634 karma · joined Jun 23, 2011 (15y ago) · 7,679 submissions
comment 2y ago · link · parent
GFO continued to run an optional pool until the 2020 crop year, but that has now also come to an end. I can't imagine anyone was still using it. It was a product of a bygone era.
comment 2y ago · link · parent
It sounds to me like what is missing is community.
Around here, if you go outside you're soon going to learn who the like-minded nerds are. Even if you don't chance-encounter them directly, the people you do encounter are apt to know them and let you know about them. From there, you can reach out. Connection made.
In fact, I was just having a conversation with an old friend who recently moved to my area and he noted how everyone is out there talking to each other and finding out about each other, which felt foreign to him. He says where he moved from he was effectively anonymous. I suspect your living arrangement is more like his previously was.
Perhaps the solution isn't tech-based, but simply for us to be more neighbourly the old fashioned way?
comment 2y ago · link · parent
When would it ever be useful? You'd soon start to hate life if you actually tried using the above function in anything beyond a toy application.
> 99% of the time shouldn't be used
1. 99% of the time it is fine to use without further consideration. Even if there are errors, they don't matter. The example from the parent comment is a perfect case in point. Who cares if Close fails? It doesn't affect you in any way.
2. 0.999% of the time if you have a function that combines an operation that might fail in a manner you need to deal with along with cleanup it will be designed to allow being called more than once, allowing you, the caller, to separate the operation and cleanup phases in your code.
3. 0.001% you might have to be careful about its use if a package has an ill-conceived API. If you can, fix the API. The chances of you encountering this is slim, though, especially if you don't randomly import packages written by a high school student writing code for the first time ever.
comment 2y ago · link · parent
If you focus on errors, you’re going to never get it. The whole idea here is that the problem is bigger than errors.
comment 2y ago · link · parent
You wha...? The question was about goroutines, not coroutines.
Besides, you'll notice that exception handlers cross coroutine boundaries in Go just fine. Your random tangent isn't even correct. Where did you dream up this idea to the contrary? I know coroutines are still new to Go, only officially landing in the latest release (experimentally in 1.22), but you'd think that would also mean their behaviour is fresh in your memory.
I'll take your avoidance of the original question to mean that no other language does it either.
comment 2y ago · link · parent
Think more carefully about what we're actually trying to solve. It is not just about errors.
comment 2y ago · link · parent
Probably for the same reason Rust does, and why it suffers much the same problem:
1. It is what was in vogue in the 2010s.
2. More importantly, the problem isn't limited to errors. What have you gained treating errors as some hyper special case when they aren't any different than any other value?
I think we agree that we can do better, but seeing errors as special doesn't get you there. We need something that understands the all-encompassing problem.
So, failing that understanding, if you're going to do something that sucks, you may as well choose the least-sucky option, surely? Exception handling brings a horrible developer experience. To the point that in languages where errors over exception handling semantics are the norm, you will find that most developers simply give up on error handling entirely because it is so painful.
> Some library that behaves completely differently from the rest of the language and breaks all interop with the rest of the ecosystem will have a hard time gaining traction
I'm not sure history agrees. Ruby was also of the return values over exception handling mind before Rails came along. Rails pushed exception handlers for errors and developers went for it. Provide an API people actually want to use, and they'll use it. What was common before is inconsequential.
I expect what you are really saying is that exception handling wouldn't actually improve this example case even in the best case, and in the worst case developers would end up giving up on error handling leaving such a package to be a net negative to a codebase.
comment 2y ago · link · parent
Of course, adults could maintain hope! But in practice I expect you will find that the typical adult reaches a certain pinnacle of their life expectations and growing older still only seeks to, at best, maintain that state or more likely see it start to erode as the body starts to decline. Which means that the typical adult would rather time stand still or even reverse. And so it does, in some kind of twisted way, and all of a sudden you're elderly before you know it.
comment 2y ago · link · parent
defer func() {
if r := recover(); r != nil {
fmt.Println("Failed to write file", r)
}
}()
f := os.Create("file")
defer f.Close()
io.WriteString(f, "Hello, World!")
Cool. You've solved one problem layer, perhaps. But if you look closely you'll notice that code still has a bug!So clearly exception handlers aren't enough. There might be some good ideas in using exception handling, but if you strictly limit its use to errors you end up half-assing it. Why not go all the way and find a solution that works in all cases?
comment 2y ago · link · parent
Of course, nothing stops you from building your own file handing package that overloads exception handlers to deal with errors. If it gains traction then it would prove the stdlib should consider a v2 API.
But that you already haven’t done so is telling…
comment 2y ago · link · parent
comment 2y ago · link · parent
Why, then, are you trying to design the 'data shapes' before the UX is old enough to drive? It seems you don't live by what you preach.
For what it is worth, I happen to share in your belief. gRPC couldn't possibly get in the way as you're not going anywhere near that layer of abstraction while the UX is being developed. By the time you're at the point of making network calls the data model is fully solidified. There is no need for continued iteration once you've gone that far.
The biggest reason to disregard gRPC on the frontend, though, is that frontends are often found on slow, high latency networks where call overhead starts to bite you. Moving beyond simple applications, you really need some kind batching system rather than the RPC model in order to diminish the overhead cost. Of course, you can bend gRPC into some kind of batching system if you try hard enough – it is all just 1s and 0s at the end of the day, but there are other solutions more in tune to that particular problem.
comment 2y ago · link · parent
1. gRPC brings its own HTTP implementation. There was no other implementation to lean on when the project started. It may be optimized in ways that the standard library's implementation is not.
2. gRPC's implementation has features not available in the standard library's implementation. These features can improve performance under certain conditions.
Keep in mind that "significant" often gets overstated in computing. Many will tell you that cgo call overhead is significant, and relatively speaking it is, but we're only talking mere nanoseconds. With extremely precise measuring tools you can, indeed, observe it, but it's so small that it is impossible for a human to notice and thus doesn't actually matter in practice. It is not like your gRPC endpoint is suddenly going to start taking minutes to respond if you switch to using ServeHTTP.
> that seems like it would imply a flaw in go's standard http library, not grpc
If a pickup truck not being able to drive as fast as a race car implies a flaw with pickup trucks, sure. Most would simply consider them different tools for different jobs, though. The standard library's HTTP implementation tries to be reasonably suitable for a wide range of tasks, while gRPC's implementation only has to serve gRPC. As such gRPC can carefully tune its package to the needs of gRPC without concern for how it might affect someone serving, say, HTML. The standard library doesn't have the same luxury.
comment 2y ago · link · parent
As a farmer, if you think programming, CI/CD pipeline management, and database administration being consolidated into one job is a line too far... Brace yourself!
comment 2y ago · link · parent
comment 2y ago · link · parent
What you mean? It's right there:
The worker performs work that is outside the usual course of the hiring entity’s business
> where Fedex drivers were ruled to be employees, not contractors, regardless of schedules.You're confused. As has been said multiple times now, an employee's schedule may not be dictated, but a contractor's cannot be.
> Again, Uber and Lyft can legally continue doing what they already doing -- not enforcing any schedules.
Of course. In fact, I have said exactly that several times now. Did you somehow forget to read the thread?
But why would Uber and Lyft want to do that? It would be quite advantageous for them to demand workers to show up at certain times, especially peak times that currently struggle with service availability.
They can't do that right now as it would prove that the workers are employees, without question (see your link). But if the workers were already established as employees, there would be no reason to stick with the status quo.
> Uber et al can incentivize more drivers with more money, just as they do today.
Nah. Incentivizing workers with the threat of termination if they don't show up is a much better business model. At least in a vacuum. Maintaining that workers are independent is more beneficial for other reasons, but, again, if that ends up lost, why on earth would these companies continue to needlessly offer more money to the workers? That would be just plain dumb.
comment 2y ago · link · parent
The cachet was being an exclusive club that kept exclusive information and connections away from non-exclusive people, but those days are long behind us. When college became common, what college offered became common, and thus no longer valuable. Basic supply and demand.
Where college has managed to retain some value into modern times is in the dating pool it offers. Providing a sizeable group of young people living in close proximity and ready to mingle is quite valuable. That is what has recently started to erode, thanks to service like Tinder encroaching on that space.
comment 2y ago · link · parent
Wouldn't you say that already fully crumbled as soon as we thought it was a good idea to make college available to all? Those attributes can only hold under an exclusive club. Which, indeed, describes the early origins of college, but not what it has been for quite a long time.
comment 2y ago · link · parent
Said hysteria was built on the same idea. After all, LLMs themselves are just compilers for a programming language that is incredibly similar to spoken language. But as the programming language is incredibly similar to the spoken language that nearly everyone already knows, the idea was that everyone would become the metaphorical elevator operator, "wiping out" programming as a job just as elevator operators were "wiped out" of a job when operating an elevator became accessible to all.
The key difference, and where the hysteria is likely to fall flat, is that when riding in an elevator there isn't much else to do but be the elevator operator. You may as well do it. Your situation would not be meaningfully improved if another person was there to press the button for you. When it comes to programming, though, there is more effort involved. Even when a new programming language makes programming accessible, there remains a significant time commitment to carry out the work. The business people are still best to leave that work to the peons so they can continue to focus on the important things.
comment 2y ago · link · parent
The trouble is that they seem to be getting worse. Some time ago I was able to write an entire small application by simply providing some guidance around function names and data structures, with an LLM filling in all of the rest of the code. It worked fantastically and really showed how these tools can be a boon.
I want to taste that same thrill again, but these days I'm lucky if I can get something out of it that will even compile, never mind the logical correctness. Maybe I'm just getting worse at using the tools.
comment 2y ago · link · parent
Presumably. It quite visibly takes place, so unless you are prone to "flat earth" conspiracies it is hard to deny.
It seems that you are really asking if anyone believes in the economic value of college education anymore? Did anyone ever? It was always apparent that the supposed value hinged on a misinterpretation of the data sold in a "a diamond is forever"-esq marketing scheme.
comment 2y ago · link · parent
Must have seen AI write the implementation as well?
If you're still cognizant of what you're writing on the implementation side, it's pretty hard to see a test go from failing to passing if the test is buggy. It requires you to independently introduce the same bug the LLM did, which, while not completely impossible, is unlikely.
Of course, humans are prone to not understanding the requirements, and introducing what isn't really a bug in the strictest sense but rather a misfeature.
comment 2y ago · link · parent
The candidate you actually want to hire will respond with something to effect of "That's dumb. Let's instead talk about X, which will be a far more appealing topic to both of us."
comment 2y ago · link · parent
And, indeed, what Microsoft really needed in the 80s was people who truly understood memory management in C, not gamblers left to hack their way into something that kind of worked sometimes. Microsoft's need to correct that hiring mistake later set them back significantly. Had they asked about the intricacies of C as it directly pertained to the job instead of unrelated trivia, they would be in a much stronger position now.