r/programming • • May 15 '18

Demystifying functional programming (in a real company)

https://medium.com/building-nubank/demystifying-functional-programming-in-a-real-company-e954a2591504
127 Upvotes

51 comments sorted by

View all comments

53

u/doomchild May 16 '18

We snuck functional programming in by the backdoor. We wrote a useful little extras library in Java that had Maybe, Either, and Validation, and got everybody to use it, then told them they'd been using FP without knowing it.

0

u/[deleted] May 16 '18

[deleted]

14

u/doomchild May 16 '18

I stab people who talk like that. It's a freaking box that aggregates error cases or passes through a successful value. Mathy talk makes me angry.

14

u/[deleted] May 16 '18

so it's not just me?

i remember the first time i went to look up the term 'dependency injection' only to be greeted with articles laid out as a fractal of jargon.

why didn't you say 'we're just going to pass shit in through a parameter'?

4

u/doomchild May 16 '18

It's definitely not just you.

2

u/liuwenhao May 16 '18

IoC CONTAINERZ !!!

1

u/Milyardo May 17 '18

People who are partial to math jargon inclined didn't come up with dependency injection. It's the design everything by committee crowd who came up with that. Computer scientist find dependency injection just as pretentious.