Live data from Hacker News

PHP is worth learning and using

bulletproofphp.dev

101–110 of 468 posts

Re: PHP is worth learning and using

#101
post #83
post #77

Earlier quoted context omitted.

How so? Ruby just released a new version with a JIT and new concurrency model. Rails is releasing a new major version later this year with a bunch of great improvements. Shopify, Stripe and others are putting a ton of improvements into the Ruby interpreter. Many large tech companies still use it. Many startups still use it. If nothing else, it's still a popular scripting language. It's not as 'trendy' as it once was,…

> How so? Ruby just released a new version with a JIT and new concurrency model. Rails is releasing a new major version later this year with a bunch of great improvements. Shopify, Stripe and others are putting a ton of improvements into the Ruby interpreter. Do all of these make it faster than PHP?

Is speed the only measure of a programming language?

Honestly, I have no idea how it compares to PHP. If I wanted truly fast I'd use a compiled language. The point is more that Ruby is still being used and improved upon all the time; far from 'dead'.

Re: PHP is worth learning and using

#102

I have used PHP for years. Like it. Have accomplished some nice things with it. Think it's evolved nicely in recent years. Feel it's a great tool for particular problems. Will continue to use it. Will always be open to alternatives. Will never understand why some people find that so offensive and will tell you that you mustn't use it or imply that you are ignorant or stupid for using it.

You’re writing style is unique and grabbed my attention. Any tips to write like that? You didn’t use “I” at all, but it seems likely there are some other rules going on here.

> Any tips to write like that?

You notice the pattern. Mimic it. Struglle with it. Persevere.Endure. Will you reach perfection? Maybe not. No problem. Satisfaction is few layers below.

Re: PHP is worth learning and using

#103
post #94
post #86

Earlier quoted context omitted.

There is probably a set of "good languages to learn" for every individual. There are two good reasons to learn a programming language: 1. You're using it for actual work 2. Learning it will teach you something fundamental I feel like the only way 2. might happen with PHP is if it's the first language you're learning.

PHP was my gateway to understanding C. It wasn't my first, but it definitely helped me learn more computer fundamentals than other languages.

I felt like PHP set me back as a first language (many moons ago). It just works so differently to other languages.

Re: PHP is worth learning and using

#104
post #77
post #67

Earlier quoted context omitted.

Purely from the outside (I don't really use either), ruby looks more dead than PHP nowadays.

How so? Ruby just released a new version with a JIT and new concurrency model. Rails is releasing a new major version later this year with a bunch of great improvements. Shopify, Stripe and others are putting a ton of improvements into the Ruby interpreter. Many large tech companies still use it. Many startups still use it. If nothing else, it's still a popular scripting language. It's not as 'trendy' as it once was,…

Ok, so similarly "dead" (or not) as PHP.

Re: PHP is worth learning and using

#105
post #28
post #10

Earlier quoted context omitted.

if people are out here voluntarily writing server-side javascript code, I see no reason to call PHP dead

what are your feelings about server side typescript? it's quite a nice language, and for many many cases is certainly fast enough these days.

It think there is a reasonable argument that in PHP and JS there are an equal amount of issues. Inconsistent API, inconsistent language, bad data types, same speed .. just to name a few.

Not that I would not also prefer node over PHP ... But that is mainly because of C/C#/Java familiarity and frontend code reuse/familiarity than anything else.

Re: PHP is worth learning and using

#108
post #66
post #63

Earlier quoted context omitted.

Compare what the PHP jobs pay or the career path they put you on compared to elixir or ruby. Not even the same ball park. Not even the same sport.

> Compare what the PHP jobs pay Where? At Facebook? Or somewhere else?

Hack isn't PHP anymore...

Re: PHP is worth learning and using

#109

I have used PHP for years. I like it too. Its tight integration with http is nice. The PHP language can be used as a templating language itself: Hello

I think* with ASP.NET Razor Pages. You can do the same thing as: @page @{ var user = "root"; } Hello @user

Razor is awesome... It has this productivity of PHP while being consistent and have the benefit of being conceived later.

Only thing which hurts there: not everywhere deployed like PHP is :)

And technically you need a 2 files boilerplate. But that will vanish within the next year when I understand the .NET team right.

Re: PHP is worth learning and using

#110
post #31

It is, but not as "worth it" as python

I really like Python. It's what I reach for when I need something working quickly. I have a whole folder of one-off python scripts I wrote over years that I occasionally still use.

For very large projects, however, I advise against it. The dynamic type system bites you a lot in my experience. I prefer static typing.

Post reply on HN