Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
ragnese
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
110 ms
·
901.
▲
by
ragnese
7y ago
In the article he posts a snippet of F# code: type Customer = { Id : string; Credit : decimal option } let average (customers : Customer list) = match customers with | [] -> Error "list was empty"
902.
▲
by
ragnese
7y ago
Yes and no. In Swift you have to mark if a function throws, but not WHAT the function throws. The Java-style checked exception haters might see that as the best of all worlds. I generally agree that Swift is a little nicer than Kotlin. I li
903.
▲
by
ragnese
7y ago
I'm a little confused by something. I wouldn't have expected his/her example code to compile: fun divide(dividend: Int, divisor: Int): Try<Int, String> = when (divisor) { 0 -> Try.Err("Cannot
904.
▲
by
ragnese
7y ago
Definitely fair points. I do feel like I'm swimming upstream even when I'm using the built in Result class in Kotlin. Truth is, I rather be writing Rust, but I need the JVM sometimes. ;)
905.
▲
by
ragnese
7y ago
I feel like I'm the only crazy person who thinks checked exceptions are better than unchecked exceptions. I've read all the arguments against them and they just don't resonate with me. "Oh. So you think it's okay th
906.
▲
by
ragnese
7y ago
So choosing Kotlin over Java boils down to some syntactical differences? Nah. The syntax differences between Kotlin and Java are not even that huge. It's not like choosing between Elixir and Erlang, or between JavaScript and ReasonML.
907.
▲
by
ragnese
7y ago
'val' does not make something immutable. It makes it read only. That's very different. You can still call a mutating method of the val entity.
908.
▲
by
ragnese
7y ago
The other things that "beginner" tutorials such as this do is they say "lisp" when they really mean "something resembling Scheme". I started a project some time ago to write an elisp interpreter, mostly for fun
909.
▲
by
ragnese
7y ago
I've been saying for a while that the best PHP code you can write today is basically Java that you were writing 10 years ago. The trade-off between Java 7 and PHP 7.x is that Java has generics, but PHP's treatment of nullable vari
910.
▲
by
ragnese
9y ago
Well, my location is definitely a limiting factor. I live in Florida- and not even Miami. That's why I've been mostly trying to find remote postings. I'm a great remote worker- my PhD work was as part of an international coll
911.
▲
by
ragnese
9y ago
As someone who is currently applying to jobs, this is a very important question and the answers are, unfortunately, exactly what I expected: everyone's experience and suggestions are totally different. Which sucks, because I really wan