r/Python • • Nov 11 '08

Why the hatred for functional programming?

0 Upvotes

86 comments sorted by

View all comments

Show parent comments

-7

u/neoform3 Nov 11 '08 edited Nov 11 '08

You would like to know why people hate functional programming..

I would like to know what the hell is wrong with python programmers that they feel the need to constantly attack PHP. It truly makes no sense whatsoever. No other group of programmers (other than python coders) attack any other language, they way they do to PHP.

The only conclusion I can come to is it's because of jealously. Python coders wish more people used python instead of PHP..

The best part is, despite my having asked/commented in logical way.. I already know this reply will be modded -20 within an hour, which does nothing but proving my point.

3

u/[deleted] Nov 11 '08

I think it's largely in part that no one is going to defend PHP. If you bash perl in a python group, you're going to get replies claiming perl has it's place. You have to be stupid to defend PHP.

3

u/Singletoned Nov 11 '08

You need a single page with a form on it that a user fills out and it returns a thank you message. It might need to scale to a million users in a few days.

What would you build it in? You would need a very, very good reason not to say php. (And I say that as someone who hates php).

1

u/[deleted] Nov 12 '08 edited Nov 12 '08
import cgi
form = cgi.FieldStorage()

name = form.getvalue('name')
msg  = form.getvalue('msg')

if None in (name, msg):
   displayform()
else:
   processcomment(name,msg)