News for hackers. Stuff that matters.
Re:Why Is Object-Oriented Programming Useful? With a Role-Pl... by Kiro on Wednesday December 03, 2014 @06:54AM (#8693197)
> To write the code, one looks at what data will go into the software, and what data will need to come out.

What if your program has no output? The applications I write seldom has. Instead they save down stuff or send it away here and there during the lifespan of the program. When they're done they just exit without any output. FP seems to be focused on one input going through transformations ending up in one output.

(I'm not a good programmer and barely know how to do OOP, much less FP.)

Re:Why Is Object-Oriented Programming Useful? With a Role-Pl... by dragonwriter on Wednesday December 03, 2014 @02:00PM (#8695657)
> What if your program has no output? The applications I write seldom has. Instead they save down stuff or send it away here and there during the lifespan of the program.

What is saved and what is sent are outputs.

> FP seems to be focused on one input going through transformations ending up in one output.

That's not entirely untrue, but that one can be a set of simpler values, a processes can be values, too.

Re:Why Is Object-Oriented Programming Useful? With a Role-Pl... by 4ydx on Thursday December 04, 2014 @09:47AM (#8699417)
Functional programming is nothing more than applying the rigour of math to programming.