Skip to content

Comment on Why Is Object-Oriented Programming Useful? With a Role-Playing Game Exampleparent

Comments

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.)

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.

Functional programming is nothing more than applying the rigour of math to programming.

AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.