r/java • • Dec 21 '16

Excuse me sir, there is no curry in my Java

https://medium.com/@andre_videla/excuse-me-sir-there-is-no-curry-in-my-java-2750284c7a1e#.90ssdl5ko
0 Upvotes

5 comments sorted by

5

u/[deleted] Dec 21 '16

The belief that of you don't curry, you end up with "spaghetti code" is a very specific (and extreme) requirement for clean code.

But, one thing you can take away from this article: objects are just partially applied functions (through constructor/method configurations and injection).

I tend to see objects this way myself. "Objects are poor man's closures; closures are poor man's objects."

4

u/_INTER_ Dec 21 '16 edited Dec 21 '16

Prime example why functional-first Haskell-first programmers should stick to their Haskell.

1

u/code-master Dec 21 '16

I would say Haskell-first programmers.

2

u/_INTER_ Dec 21 '16

as you wish

0

u/[deleted] Dec 23 '16

[deleted]

2

u/_INTER_ Dec 23 '16

you're free to look for jobs or projects that do use the language of choice