Better HN
topnewbestaskshowjobs
Log inSign up

badrequest

1,597 karma · joined Jun 6, 2017 (9y ago) · 423 submissions

prone to hyperbole
Submissions

comment 3y ago · link · parent

It should, obviously, be necessary to do this.

92.

Preventing Problems with Generated Files(blog.verygoodsoftwarenotvirus.ru ↗)

1 points · by badrequest · 3y ago · discuss

comment 3y ago · link · parent

Is it a race between those three when the public can only use two of them?

comment 3y ago · link · parent

I've been watching folks here on HN speculate that Google will kill GCP "any minute now" for at least the last 4 years, so ya'll can keep holding your breath, I will be having fun deploying things for 1/10th the price of AWS.

comment 3y ago · link · parent

If it doesn't scale down to zero, then it doesn't compete with Cloud Run.

comment 3y ago · link · parent

Recently tried writing some async Rust to compare the error handling when nested async calls are made to how errors are handled in Go, and it seemed like the trivial example I was trying to write up simply couldn't be done without involving Tokio. That barrier simply doesn't exist in Go, or C#, or Typescript.

For instance, you apparently cannot `await` in the main function without a decorator you import from, you guessed it: Tokio.

comment 3y ago · link · parent

It also prevents adding relevant context to the errors, meaning you get all the joy of hunting through call stacks to figure out what went wrong in a sufficiently complex program.

comment 3y ago · link · parent

Coincidences can happen. :)

comment 3y ago · link · parent

I genuinely have no idea what you're referring to by "stringly-typing all over stdlib". I've written Go every day for the better part of a decade and used the standard library the whole time. What standard library functions require passing in the string of a type?

comment 3y ago · link · parent

This pattern already works and would work with this change, you'd just need to define `/foo/bar` first.

comment 3y ago · link · parent

> Only if you don't know C# or asp.net (or bootstrap). In which case: why would you be working for an organization which does?

You've never taken a job working in a language you don't know yet? Anecdotally this is a common thing. In fact, my most recent job hired me to write C# with nothing but prior Go/Python experience.

> This kind of structured approach has fallen out of favor because it's become more popular to hire javascript and react developers straight out of boot camp who have only been taught how to code one or two things.

This comes across to me as needlessly bitter to folks with less experience than you.

comment 3y ago · link · parent

It adheres to the Go 1 compatibility promise.

comment 3y ago · link · parent

Go is type safe.

comment 3y ago · link · parent

What common use-cases does it not support?

comment 3y ago · link · parent

The matte-black laptop they shipped out to beta testers for ChromeOS is still the best laptop I've ever owned. Maybe not processing speed-wise, but the size and everything else was perfection.

106.

Encoding/JSON/v2 proposal for Go(github.com ↗)

2 points · by badrequest · 3y ago · discuss

comment 3y ago · link · parent

If those calls can cause errors, then yes, it's necessary to handle them. Maybe you're content to have a contextless stack trace printed whenever things fail, but I like a little order.

comment 3y ago · link · parent

It's absolutely idiomatic to use panic in main. In fact, that's basically the only place it's allowed in "Go programming standards."

comment 3y ago · link · parent

He bamboozled as much money from rich people as he did from poors, they're throwing the book at him.

comment 3y ago · link · parent

Genuine inquiry: are there broad-reaching unions in the music industry involved in creative work? I know they exist for things like stagehands, not sure if they exist for songwriters (who might be covered under the WGA agreement) or other producers.

comment 3y ago · link · parent

Map Men is such an underrated YouTube channel IMHO. Consistently informative and cleverly humorous.

comment 3y ago · link · parent

"I care more about revenue than most people" is a very nice way to phrase "I don't give a rat's ass about the user, I want my money!"

comment 3y ago · link · parent

Anecdotally, we've seen a number of larger "open-source alternative to X" projects posted on HN of late that are technically self-deployable, but require so much up-front knowledge that it's not actually accessible to those who might truly be liberated by such software.

I mean no slander or disrespect to anyone involved, but there was a DataDog alternative posted sometime in the last few weeks that had a docker-compose with like 15 containers in it. Required running a few different Typescript servers, a Clickhouse instance, Redis, MySQL, the lot of it. I'm sure it was a fully-featured service that made adequate use of those resources, but it also reminded me of why people pay out the wazoo for DataDog: nobody wants to manage all that stuff!

EDIT: the repo linked in the GP contains 3 instances of what you could call databases: MariaDB, Mongo, and Redis. There doesn't appear to be any explanation in the deployment docs for why all three are necessary.

comment 3y ago · link · parent

You can enter a DPA (data processing agreement) with OpenAI that forbids subsequent training on submitted content.

comment 3y ago · link · parent

It literally says in the original post that it only works for English videos.

comment 3y ago · link · parent

I use sqlc and it makes this a non-issue.

comment 3y ago · link · parent

Please point to when Go has broken backwards compatibility.

comment 3y ago · link · parent

I write Go every day, and can count the number of times per year I have to involve an `interface{}` literal on one hand. Unless you're doing JSON wrong or working with an API that simply doesn't care about returning consistently structured data, I can't fathom why you'd be using it "all over the place."
12345
15