Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
dgunay
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
12 ms
·
151.
▲
by
dgunay
2y ago
Yeah, but you should try to shop for a deal where 100 - x is as big a number as you can negotiate.
152.
▲
by
dgunay
2y ago
There are companies that will finance your options exercise in exchange for a cut of the earnings in the event of an exit. I haven't personally used one, but they do exist.
153.
▲
by
dgunay
2y ago
I see this a lot with municipal government or utilities websites. I rent and I'm not about to leave my state any time soon - it's not like I can "churn" and _not_ pay my power bill or go to a competitor.
154.
▲
by
dgunay
2y ago
Rebuy equities/reinvest dividends at reduced prices, pay taxes now, enjoy tax-free growth. If the current admin is serious about trying to get rid of income tax, then that would eliminate a major advantage of trad vs roth.
155.
▲
by
dgunay
2y ago
I think the point is that for a lot of them there are endless possible alternatives to the character design, but it still generates one with the exact same design. Why can't, for example, the image of Tomb Raider have a different color
156.
▲
by
dgunay
2y ago
I dislike Google's (mis)management of Assistant as much as the next guy, but this just has not been my experience. I can tell Gemini on my phone to set timers and it works just fine.
157.
▲
by
dgunay
2y ago
It's incredibly ugly but you could sort of hack in a smaller-scoped defer using anonymous functions: https://go.dev/play/p/VgnprcObPHz
158.
▲
by
dgunay
2y ago
Absolutely not. I find it more unpatriotic when people say things like "we can't have that/do that here" as if the Japanese are an advanced alien race. It especially peeves me when they take this attitude with anything t
159.
▲
by
dgunay
2y ago
A lot of Go libraries are ports of famous libraries from other languages, with "go" shoehorned somewhere into the name.
160.
▲
by
dgunay
2y ago
Where I am (LA) most coffee shops are packed throughout the day with people in every seat working on laptops.
161.
▲
by
dgunay
2y ago
I am at the same time both amazed and utterly unsurprised that this was possible, given all the hullaballoo about TypeScript's type system being Turing complete. Having the grit to actually go through with it though? Bravo.
162.
▲
by
dgunay
2y ago
I find it funny how much people obsess over Clean Code. In my opinion Robert Martin's Clean Architecture is a much more valuable and realistic idea than all this madness about 3 line functions, no comments, do one thing, etc. I would t
163.
▲
by
dgunay
2y ago
Don't just reach for lines like these if you don't have an evidence-based reason to back it up. The moment you do that, your coworkers will realize that you are just trying to shut them down and don't care about having an int
164.
▲
by
dgunay
2y ago
> Your ideal laptop would run Linux flawlessly with perfect hardware compatibility, have MacBook build quality, and Windows game support. Meanwhile, the rest of us live in reality. Damn, got me there haha
165.
▲
by
dgunay
2y ago
Lots of reasons I've seen. Some have injuries that aren't obvious. Some have no fun or satisfying outlet for physical activity. Some grew up socialized by their family and friends to eat poorly. Some are already in a deep rut ment
166.
▲
by
dgunay
2y ago
I've been using LLMs for tab autocomplete for a while and just recently started trying out agentic coding AI (Copilot Edits and Cline). I think the disappointing shortfall of agentic AIs (at least for me) comes from the feedback loop b
167.
▲
by
dgunay
2y ago
Yeah it basically is just an if-else or switch block. type BlobStore interface { /* methods */ } // later, when initializing stuff var foo BlobStore switch { case isAzure: foo = Azu
168.
▲
by
dgunay
2y ago
DI in its most fundamental form is common in Go via interfaces. People just declare that arguments to their functions must implement some interface, and the caller provides something that satisfies it. "DI" in the sense of having
169.
▲
by
dgunay
2y ago
I haven't ever had a real eating disorder, but a lot of my childhood food aversions were finally broken during times of extreme hunger.
170.
▲
by
dgunay
2y ago
This is good practice, but I don't think it's the kind of inconsistency the author is talking about. There are forms of inconsistency that an auto formatter can't fix. An example: old code deciding that an unhandled error is
171.
▲
by
dgunay
2y ago
In addition to what I've read here in the comments (that mocks are inaccurate, etc) I'll say that mocks also tend to just be plain overly verbose, at least in my stack. We do a lot of our heaviest testing on our usecase logic, whi
172.
▲
by
dgunay
2y ago
> Breakfast tapas I wish you could comment on some of these or vote them "already implemented," because whoever wrote that needs to try Turkish breakfast.
173.
▲
by
dgunay
2y ago
If you want errors to behave more like value types, you can also implement `Is`. For example, you could have your `ErrType`'s `Is` implementation return true if the other error `As` an `ErrType` also has the same code.
174.
▲
by
dgunay
2y ago
I use Gmail. Actually unsubscribe from stuff. If they show up again, I hit report spam. No, I don't care if they were actually gonna stop after 14 days or whatever. Have strict rules about how I use the inbox. If I read an email, and i
175.
▲
by
dgunay
2y ago
Doing a programming language/compiler was very educational and did a lot to demystify computers for me. I would also second the recommendations to write a game. If for no other reason than the fact that it is some of the most fun progr
176.
▲
by
dgunay
2y ago
I use the debugger fairly regularly, though for me I'm on a stack where friction is minimal. In Go w/ VS Code, you can just write a test, set your breakpoints, hit "debug test", and you're in there in probably less
177.
▲
by
dgunay
2y ago
If self-treatment doesn't work out for you (I've suffered a few particularly stubborn cases over the years), I highly recommend going to an urgent care clinic. They have always been able to clear my ears out in less than 20 minute
178.
▲
by
dgunay
2y ago
I use it for learning vocabulary, but I haven't really applied it to other kinds of learning. I've thought about using it for physical skills like learning to tie important knots for climbing, but the extra bit of friction with in
179.
▲
by
dgunay
2y ago
This is what real Extreme Programming looks like. Still haven't been anywhere that truly embraces the less popular aspects (pair programming, very short feedback cycles, direct customer involvement).
180.
▲
by
dgunay
2y ago
I don't have too much of a problem with it but there are some obstacles depending on your home life. My wife is hybrid, and on the days she's working from home I have to be firm about boundaries or I'll get significantly less
More ›