Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
vips7L
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
9 ms
·
181.
▲
by
vips7L
5mo ago
Result types do have one problem that checked exceptions don’t. Checked exceptions automatically combine into union types in a throws or catch clause. I haven’t seen a language that lets you be generic like that. T fn() throws E, F, G
182.
▲
by
vips7L
5mo ago
You can declare your runtime exceptions too. The compiler won’t enforce you to catch them though. void fn() throws IllegalStateException
183.
▲
by
vips7L
5mo ago
I think the big difference is that in an application that cares about throughput and being non-blocking simply blocking isn’t really possible as it affects the whole performance of the application. Wrapping a checked exception in an uncheck
184.
▲
by
vips7L
5mo ago
I just meant knowing what errors can be happen at compile time vs unchecked errors flying about. I personally am not a fan of the compiler not stopping me when a new error type is introduced. Correctness is probably the better word.
185.
▲
by
vips7L
5mo ago
Wouldn't you lose a little compile time safety a little by returning the interface, like catching Exception? i.e. as types you don't know about get introduced the compiler won't stop bad things from happening: catch (Ex
186.
▲
by
vips7L
5mo ago
???? Do you know how mortgages work?
187.
▲
by
vips7L
5mo ago
Java just makes them hard to use. They're not fully apart of the type system and they're hard to escape when you actually want to panic. Everyone around here praises Rust's result, checked exceptions are the same idea:
188.
▲
by
vips7L
5mo ago
Now extrapolate that over 3 decades (30 year mortgage) and not 4 years.
189.
▲
by
vips7L
5mo ago
Rent only goes up.
190.
▲
by
vips7L
5mo ago
People are skeptical of LLMs because the experiences they’ve had with LLMs. You can’t blog your way out those experiences. I’m skeptical because I’ve seen this exact situation and I’ve seen the result be something that anyone experienced wo
191.
▲
by
vips7L
5mo ago
If you don’t know what library to use in your specific language, do you think you know enough to have an LLM generate most of it?
192.
▲
by
vips7L
5mo ago
Acceleration of the human race is the biggest cope I’ve read all year.
193.
▲
by
vips7L
5mo ago
Personally I prefer T? over Option[T]. Monads just add extra typing and destructuring for no reason. It’s definitely the pragmatic choice.
194.
▲
by
vips7L
5mo ago
Checked exceptions are great. There is no difference between them and results/unions except syntax. The below all express the same thing. Swift in fact uses the checked throws syntax. Result<T,E> fn() T | E fn() T
195.
▲
by
vips7L
5mo ago
Maybe not crazy but the language just has a really broad surface. I find it to be like the Scala of the OO world.
196.
▲
by
vips7L
5mo ago
Union/sum types are generally a good thing. Even Java added them. They tend to be worth “the madness”. Now the rest of all the crazy C# features might be a different question.
197.
▲
by
vips7L
5mo ago
It just doesn’t work though. Anthropic couldn’t even get Claude to build a working C compiler which has a way better specification than any team can write and multiple reference implementations.
198.
▲
by
vips7L
5mo ago
It doesn’t necessarily mean shipping faster either. Speeding up code production doesn’t mean it speeds up qa, compliance, and the litany of other things. Everyone seems to forget Amdahl’s law.
199.
▲
by
vips7L
5mo ago
Code quality directly correlates to everything you describe.
200.
▲
by
vips7L
5mo ago
You have to be naive to believe that any pricing is permanent.
201.
▲
by
vips7L
5mo ago
https://github.com/dtnewman/burn-baby-burn
202.
▲
by
vips7L
5mo ago
Yeah who cares about morals!
203.
▲
by
vips7L
5mo ago
This entire forum is Anthropic or OpenAI shills.
204.
▲
by
vips7L
5mo ago
Yes I agree, the low stake, low evolution code is perfect for LLMs. The project I was handed is not that at all.
205.
▲
by
vips7L
5mo ago
The code is quite terrible, but no one has ever cared about code quality, at least in my experience. All they’ve ever cared about is that “it works”. It’s why an army of juniors always write most of the code. I had this same discussion at w
206.
▲
by
vips7L
5mo ago
It always comes back to Amdahl’s law.
207.
▲
by
vips7L
5mo ago
If the current state of programming has showed anything, IP and copyright law don't exists anymore.
208.
▲
by
vips7L
5mo ago
If I was younger it’s what I would do tbh. Engineering, CS, and anything else white collar has such a foggy future right now. No chance would I risk going into something that might have wages suppressed or mass lay offs within a decade. And
209.
▲
by
vips7L
5mo ago
How the hell is uber or door dash entrepreneurial?
210.
▲
by
vips7L
5mo ago
Healthcare really seems like the only safe direction anymore. They're needed and a human is still required to physically do it.
More ›