Live data from Hacker News

$PHP = ;

medium.com

31–40 of 43 posts

Re: $PHP = ;

#31
post #7
post #4

Is node really single threaded?!? What do people use it for? Interactive Prodigy games, or trawling AOL forums?

They use it to spend hours of their day hiding the fact that it’s single threaded by doing EVERYTHING asynchronously. It’s a great time sink.

After spending quite a lot of time trying to track down a memory leak in asynchronous JavaScript, opening up a PHP project felt really comfy.

Re: $PHP = ;

#33
Brilliant caption to the jobs graph.

After 15 years of PHP I went to .net last year. Their are many things PHP gets right and IMO are still better than ASP. For example, configuration is silly weird and complicated in ASP net core, php.ini still handles all the main settings just fine even after all these years.

Re: $PHP = ;

#34
Written as a sarcasm but reveals indeed the narcissistic deficit faced when developping in php. For some good or bad reasons the stigma related to php means that as a php dev, you can’t be a cool dev.

Re: $PHP = ;

#35
post #4

Is node really single threaded?!? What do people use it for? Interactive Prodigy games, or trawling AOL forums?

I don't use Node, but my understanding is as follows:

Rather than blocking the thread on IO, you instead arrange for a callback to be executed once your IO operation is completed. The thread is then free to work on other tasks (e.g. other requests) while that operation is in progress. As a result, the thread is always busy.

The main disadvantages of this are that you are switching from straightforward top-down code to a continuation-passing style (mitigated somewhat by promises and async functions), and the fact that CPU-bound code will prevent other tasks from being serviced during execution.

There are similar facilities available in most languages now (including syntax sugar to help with things, such as C# through the async feature, and F# through the async computational expression), except that you also have the benefit of multiple threads.

Re: $PHP = ;

#36
post #29
post #28

"It’s well known that PHP is a dead programming language" https://medium.com/fuzz/php-a0d0b1d365d8 "29% of the web uses WordPress" https://wordpress.org/ Are these statements mutually exclusive?

The article is satire.

Oh, woosh. I didn't read much further than that first sentence.

Re: $PHP = ;

#37
Disclosure: Till today I program in PHP. Yesterday to get a CORS proxy to a brain-dead API without Access-Control-Allow-Origin header. But I use PHP only for quick throw-away solutions.

Re: $PHP = ;

#38
post #17

While being sarcastic and not really giving any meaningful technical information (which is fine!), this quick read made me remember that I definitely became more productive when I stopped seeing myself as a '[php/node/ruby/c/whatever] programmer' and started describing me as a 'problem solver using the best tools for a given context'.

Same here, I always sell myself as polyglot developer.

And in spite of my opinions here, I will use languages and tools that I dislike, if that is what the customer needs as a means to solve their problem.

Re: $PHP = ;

#40
One serious thing one can get from the article is "By writing their own framework, a developer can truly separate themselves from their competition (...) I wonder how many people/companies actually just use this a business strategy.
Post reply on HN