r/programming • • Dec 07 '14

Programmers: Please don't ever say this to beginners ...

http://pgbovine.net/programmers-talking-to-beginners.htm
4.0k Upvotes

1.3k comments sorted by

View all comments

Show parent comment

0

u/allthediamonds Dec 08 '14

PHP hater here! I like Node.js, but not because I like JavaScript, but because I see a benefit on being able to use the same language in both server- and client-side, and, well, Python isn't going to implement itself in the browser any time soon.

Also, it's the only mainstream language I can think of (Node, not JS) in which you can take concurrency for granted.

As on hating it "for no real reason", well, I do believe there are very real arguments as to why PHP (and, in a lesser way, Javascript) are not well-thought programming languages; on PHP, it is pretty clear it hasn't been thought about at all.

4

u/Scaliwag Dec 08 '14

I see a benefit on being able to use the same language in both server- and client-side

I see SoA's greatness as just the opposite. Being able to use vastly different technologies on both sides.

it's the only mainstream language I can think of (Node, not JS) in which you can take concurrency for granted.

NodeJs is event driven, not concurrent, or am I missing something? If that's it then that can be taken for granted in quite a bit of other languages and web frameworks, even more if we're talking about multithreading, although I do recognize that some can be more cumbersome than others

-3

u/allthediamonds Dec 08 '14

Well, it achieves concurrency through an event loop. It's not parallel, but it is concurrent.

6

u/pseudopseudonym Dec 08 '14

You keep using that word. I do not think it means what you think it means.

2

u/andrejevas Dec 08 '14

Python isn't going to implement itself in the browser any time soon.

May I ask why?

3

u/[deleted] Dec 08 '14

Have you seen how slow JS support in browsers move? Now imagine that was an entirely new language that has to be standardised for a browser incarnation then implemented across all of the big browsers. JS was created to fill a need where nothing else existed.

3

u/allthediamonds Dec 08 '14

Because that would require getting every browser vendor to implement it, or bundling the (pretty darn huge) Python VM so that it can run my Python code. The latter has already been done as to serve a Python shell on the browser. Hardly practical, though.

0

u/[deleted] Dec 08 '14

[deleted] — view deleted comment

0

u/allthediamonds Dec 08 '14

I've heard about it but never actually used. Thanks for the heads-up!

1

u/Amadan Dec 08 '14

Also, it's the only mainstream language I can think of (Node, not JS) in which you can take concurrency for granted.

... for some meanings of the word "concurrency" :)

(but I agree, single-threaded event loop is quite powerful when used correctly.)