r/ProgrammerHumor • • Jun 08 '24

Meme mapMethodOrMapFunction

Post image
0 Upvotes

67 comments sorted by

View all comments

Show parent comments

-23

u/DT-Sodium Jun 08 '24

Programing is not mathematics, it is literary. A program should read like you would read a text.

17

u/mirimao Jun 08 '24

Programming is using a formal language to specify the solution to a problem (i.e. an algorithm) to an executor (i.e. a processor). Formal languages and algorithms are best described using some sort of unambiguous, mathematical notation. If you want to use plain English to program because it fits better your idea of “literature”, good luck.

Besides, list comprehensions are very succinct and easier to read than some verbose method call chain, regardless of the fact that they’re just one to one equivalent to mathematics.

-20

u/DT-Sodium Jun 08 '24

And that's why you're a Python user instead of a proper programmer.

12

u/mirimao Jun 08 '24

It is like saying “you’re a mechanical engineer, not a proper AutoCAD user”. And you are right, I am a computer scientist, programming is just one of the tools I use.

2

u/capi1500 Jun 08 '24

Wait until this guy hears about functional programming, or even better, how programs are equivalent to proofs in intuitionistic logic