dementiapatien
dementiapatien on Hacker News
I open my Windows 10 start menu, type in 'timer', and no results are found. Same for 'stopwatch'.
The google timer just worked.
Your wisdom and compassion shines through.
What, you mean like, wiped it with a cloth? throws head back and cackles
Does that mean Twilio sends an alert every time some random webscraper tries to GET some favicon or /admin path that doesn't exist on the server? Doesn't that happen hundreds of times each day?
>I'm very worried of the trend that everyone demands speech control to fix something they see as an issue(be it legitimate issue or not).
>Netflix makes gay, Google make Woke, Youtube kills people with high voltage currents ,Facebook makes Nazi, TikTok kills the environment - depending on who you ask. I'm really getting very tired of this cancel culture. Destroy something, remove something
Small and independent websites have been taken offline for less. Why should these conglomerates who extinguished the original web be given a free pass? Ban them all, I say.
I'll ask the opposite, how could you NOT see this being abused?
As YouTube shows, there are plenty of police officers who hate when bystanders film, and retaliate at every chance.
Now all they have to do is run up on you and arrest you for being within a 8 foot proximity? They are going to love it.
Since when do you get sued for breaching TOS?
But this technique lets you serve malicious code to a small number of people using curl|bash, rather than hosting obviously-bad binaries that anyone can inspect and call you out on. It also lets you target the attack to specific users or IP blocks.
The previous HN discussion said it better than I can: https://news.ycombinator.com/item?id=17636032
>The primal drive is only of sex.
What about people who turn down sex when they know the other party can't have kids?
This website appears to be based in Europe, is that where all the imageboard trolls live?
I argue that errors.Wrap and errors.Is from the Go stdlib solves this problem.
Libraries can export their own error types and you can check if they threw that error type. I use this pattern all the time to handle special errors differently. Used it to implement optimistic locking which does ~not~ simply propagate all errors upwards!
https://gosamples.dev/check-error-type/
cond, err := foo()
if errors.Is(err, ErrFooHadTemporaryFailure) {
// retry
} else if errors.Is(err, ErrFooHostOffline) {
// switchFooHost()
} else if err != nil {
// propagate unhandled error upwards
return nil, fmt.Errorf("foo unhandled err: %w", err)
}
Of course it is up to the package author (or yourself) to write functions that return specific wrapped error types. Otherwise we're stuck in the situation your comment describes.
What do you mean by creating an error interface? It's a one liner to make a new error case:
var ErrFooHadTemporaryFailure = errors.New("temporarily failure, retry later")
I agree with making sure the work is split so one team can work while the other team sleeps. It's nice waking up in the morning and seeing that someone else committed changes that set you up for fast progress today, or that they verified the code you committed before going to bed.
>Turn some part of your regular scheduled meeting to cover some fun parts. We do this regularly within our department. We do virtual team-building activities like a virtual tour of What is in your fridge using a Miro board.
I'm disheartened by this suggestion. I think at least half of my top performers would be looking for new jobs within 30 minutes of me asking them to install the "Miro app" on their phone so they can livestream their refrigerator to the corporation. Or whatever this thing is supposed to be.
Because I can visualize Go errors completely. They're simple links from one place to another. They are straight fibers connecting my modules and functions to each other. They always work exactly like I expect them to.
With python and other exception based languages? I have made hundreds of commits in my lifetime after being surprised that some random 3rd party library throws a nonstandard exception and breaks all sensible control flow that everybody assumed was happening.