Readit News logoReadit News
jdbxhdd commented on How we centralized and structured error handling in Golang   olivernguyen.io/w/namespa... · Posted by u/thunderbong
thiht · a year ago
If Go ever adds exceptions[1] as an error handling mechanism, I'm out. Value errors are far superior to exceptions, even in their current state in Go.

[1]: assuming panics are not an error handling mechanism but a recovery mechanism

jdbxhdd · a year ago
Panics can be values and errors don't have to be values in go?

I think you are missing up concepts here

jdbxhdd commented on How we centralized and structured error handling in Golang   olivernguyen.io/w/namespa... · Posted by u/thunderbong
binary132 · a year ago
I have been seeing this pattern repeated over and over since I started using Go in 2014 where people think they should be “building my favorite missing feature” — whether that’s futures, generics, structural processes, OTP, version managers, package managers, or now apparently exceptions. I always get the sense that the authors think they’ve done something cool and helpful when in the first place if they had simply put more effort into comprehending the simple “Go way” it wouldn’t have been necessary at all, and the needed functionality would have fallen out of the design.
jdbxhdd · a year ago
You realize that have of the features you are counting are now in Go while missing in the beginning exactly because people were missing them and Go simply did not offer a sane way to work around the missing features?

I'm also quite sure that Go will provide a more sane way to handle errors in the not so far future, since it's continuously at the top of people's complaints

jdbxhdd commented on AT&T follows Amazon in demanding employees spend 5 days a week in office   fortune.com/2024/12/18/at... · Posted by u/belter
orzig · a year ago
This seems on brand for an old tech company like AT&T. But Amazon is a puzzle to me. it’s been a decade since people started talking about how terrible it is to work there, and how all of the squeeze they put on employees is for short term gain, but they have clearly had immense growth since then, and (while every company has failures) considerable innovation. How are they “getting away with it“? Shouldn’t all of the high performers have left by now?
jdbxhdd · a year ago
They simply can afford to pay more high performers. And since they have sustainable growth, there is no reason to switch course of action.

Compare this to consulting which is known for squeezing their employees to the max. They simply pay enough that there is a steady stream of new highly qualified and highly capable candidates.

jdbxhdd commented on The unbearable slowness of being: Why do we live at 10 bits/s?   cell.com/neuron/abstract/... · Posted by u/sebg
bennettnate5 · a year ago
> Why can we only think about one thing at a time?

Maybe this is just a perception thing. Sure, you can only really keep up one stream of thought, visualization or inner dialogue (whatever you want to call it) at a time, but perhaps that's because we learn all our lives that direct communication is a one-channel, linear thing--speaking and listening focused on one topic at a time. Our brain does plenty of thinking in the background that leads to "a-ha!" moments even when the direct focus of our thoughts isn't on that topic. What if the mind could maintain multiple threads of thoughts at once, but our language coerces our thought patterns into being linear and non-concurrent?

jdbxhdd · a year ago
Also I do not agree with the premise that we can only think about one thing at a time.

We routinely communicate with multiple people at once and also communicate with the same persons in multiple threads of conversations.

Of cause this means that we switch between those tasks and do not really do them in parallel. At most we listen to one person, answer a second via speech, a third via text while thinking about what to respond to a fourth

We just switch our focus of attention quite fast

u/jdbxhdd

KarmaCake day11December 18, 2024View Original