bite_victim
Joined 11 years ago
Joined 11 years ago
But I agree, it's crystal clear for anyone with a minor PHP knowledge. For the rest it's just "clear". (It will still work calling $a['1'] with the quotes so what exactly is the issue? If you mean the drawbacks of type coercion not sure if this example is the best one.)
def wsgi_app(environ, start_response):
output = 'Hello World!'
status = '200 OK'
headers = [('Content-type', 'text/plain'),
('Content-Length', str(len(output)))]
start_response(status, headers)
yield output
# mod_wsgi need the *application* variable to serve our small app
application = wsgi_app
Instead of this: <?php
echo 'Hello World!';This is the exact bull* that good hearted Haskell and Lisp guys have to face and fix because of arrogant people like you.
First of all, a good PHP programmer is a good programmer. End of story. You can write crystal clear code in PHP that anyone who started with C (how many I wonder?) or a C inspired language can read. Spreading information and knowledge IS FAR MORE IMPORTANT than debating the language.
Let me ask you a question, did you just happen to read that post that was recently on the front page of HN? The one that showed how much awesome is Lisp comparing to Python? How Python's creator seems to hate Lisp (functional programming)? Did you read it and got to the conclusion that since (perhaps) you are using a functional language then you are entitled to spew crap like that since you are the holder of truth?
Congratulation! PHP is worse than a functional language (you can write functional code in Python and PHP btw) and you are the winning lord of programming languages debates!
Sorry if I am hurting feelings here but it is true. You have to be a special flake if you think this is quality content. So please, go ahead with your reactions, they speak volumes about who exactly is the gross of HN.
And even if kids somehow really grasp what is going on in there, aren't they damaged in some profound way when they will actually have to deal with code? I remember the shock and horror my colleagues had when in college we went from a visual Java builder software to actual coding in the data structures course.
And also, learning JavaScript as a beginning language? With all of the callbacks / asynchronous paradigm traps? Wow, that is really incredible for a kid to understand!
Really cool interesting stuff!
I also wonder if Java has any kind of optimizations to experiment with.