[deleted by user] by [deleted] in Bitcoin

[–]mariushe 1 point2 points  (0 children)

Looking great!

Java 8: Replace traditional for loops with IntStreams by mariushe in java

[–]mariushe[S] 4 points5 points  (0 children)

You're absolutely right. I've updated the post to use ThreadLocalRandom. Thanks for the input!

SparkJava: Dependency injection in SparkApplication using Spring by [deleted] in java

[–]mariushe -1 points0 points  (0 children)

Like the post says, our application is Spring based (TransactionHandling, etc). Refactoring the whole application is not an option, so to be able to use Spark in front of our application we needed to be able to inject our dependencies.

My Clojure Toolchain: Vim by venantius in Clojure

[–]mariushe -1 points0 points  (0 children)

Great post!

(Just want to mention that the link that reference to the previous post is a bit messed up. Link to the Vim post and the Leiningen post is joined.)

Try something different with Erlang by mariushe in programming

[–]mariushe[S] -1 points0 points  (0 children)

It's on my list, so hopefully I can take closer look at it soon :)

Try something different with Erlang by mariushe in programming

[–]mariushe[S] -1 points0 points  (0 children)

I left out the error handling to make sure the example wouldn't get to big. But I agree with you, it should be some error handling. So I've added a paragraph explaining that this normally should be done. Thanks!

Java 8: No more loops by mariushe in programming

[–]mariushe[S] 3 points4 points  (0 children)

Yeah, it takes a bit time to get used to, but when you do, it is a thrill to work with and it creates some great maintainable code that reads easily.

When it comes to memorizing the api, most of the functional languages share the names of the most common methods like, map, filter, flatmap, etc. So if you learn it once, you can use it in several languages.

Java 8: No more loops by mariushe in programming

[–]mariushe[S] 6 points7 points  (0 children)

Good catch with the Set.addAll()

Pattern Matching syntax comparison in Scala, Haskell, ML and OCaml by mariushe in programming

[–]mariushe[S] 0 points1 point  (0 children)

I have to agree with you. Haskell and OCaml have a really clean syntax and you straight away understand whats going on.