Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
9t3h4r3o5w1a4w2
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
3 ms
·
1.
▲
by
9t3h4r3o5w1a4w2
9y ago
The problem is that Go errors are just a convention, they are not a feature of Go. It's just an interface, it could have been called FOO it wouldn't have made a difference. Go has exceptions, they are called "panic" by t
2.
▲
by
9t3h4r3o5w1a4w2
9y ago
> it infuriates me when third-party stuff in other languages throws exceptions and you end up needing to check everything anyway. exceptions are a curse. Anything can panic in Go. Go gives absolutely no guarantee something cannot panic.
3.
▲
by
9t3h4r3o5w1a4w2
9y ago
> if you have a multiline function it should be named and unit-tested instead of just stuffed anonymously into some pyramid of doom It's like saying all data should be declared as variable, in the functional programming paradigm, fu
4.
▲
by
9t3h4r3o5w1a4w2
9y ago
Python has lambda but they are one liners. There is no way to do write this in Python: someFunc( _ => { // this is // a function // with multiple lines }) Having to define a
5.
▲
by
9t3h4r3o5w1a4w2
9y ago
Canada doesn't pay half as well as US when it comes to research in STEM. Every country has great talent right now, except US has the money.
6.
▲
by
9t3h4r3o5w1a4w2
9y ago
To where? US is basically where most of the capital is when it comes to research in the western world.
7.
▲
by
9t3h4r3o5w1a4w2
9y ago
I have at least 4 Android phones that have either a broken screen (but still usable) or are just too old to run a recent version of Android. Anybody knows how can I use them as computers or even servers? how to connect them to the network w