Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
CookieCutter2
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
31 ms
·
1.
▲
by
CookieCutter2
11y ago
Without proper Option deconstruction and map()/flatMap() syntacic sugar Option code beside map() is not very pleasent to read or understand to my eyes :-(
2.
▲
by
CookieCutter2
11y ago
This is hard to explain and I didn't understand it either, after programming Java for 15 years. After 5 years of Scala I can't think of not using Option. If you allow null as a return type you need to check for null if you want to
3.
▲
by
CookieCutter2
11y ago
1. Option solves a long list of programming problems (mostly around things being there or not, but others as well) while non-nullable types only solve NPEs. 2. Sorry, wording is vaque, often deconstruction is val MyValueObject(a,b,c) = myOb
4.
▲
by
CookieCutter2
11y ago
I was not 'arguing with them' but when asked what was missing I offered deconstruction for nicely using Option/Maybe for which I was told there are non-nullable types. Rest see above. I personally would listen instead of atta
5.
▲
by
CookieCutter2
11y ago
To clarify: Option/Maybe solves the problem of things either being there or not (from databases, domain modelling, ...). As a side effect this solves NPEs. Non-Nullable Types is there to solve (accessing non initialized variables) NPEs
6.
▲
by
CookieCutter2
11y ago
Always looking for something more simple than (my current) Scala. - Argued with the developers, they have not clue about Option/Maybe and what it's good for. They offer non-nullable type which solves just one - minor - problem wit
7.
▲
by
CookieCutter2
11y ago
I've laid off several people several times. To me it was much harder than firing people - hard by itself - because mass layed off people ask "why me" where I had no good answer. Keep handkerchiefs around.
8.
▲
by
CookieCutter2
11y ago
I want to know if HL3 is coming.
9.
▲
by
CookieCutter2
11y ago
The Phantom F4 had no main gun because everyone thought there were no dogfighst but only missle fights. Reality was different and they added a vulcan gun. The F35 is not designed for dogfights but long range missle fights and stealth.