Live data from Hacker News

Here’s to the PHP Misfits

melvinmt.com

31–40 of 50 posts

Re: Here’s to the PHP Misfits

#32

"Everything in the box is kind of weird and quirky, but maybe not enough to make it completely worthless. And there’s no clear problem with the set as a whole; it still has all the tools. Now imagine you meet millions of carpenters using this toolbox who tell you “well hey what’s the problem with these tools? They’re all I’ve ever used and they work fine!” And the carpenters show you the houses they’ve built, where e…

Stop blaming the tools for the stupidity and unoriginality of the carpenter. The tools don't make the house stable, look good, or even become something people want. How the carpenter uses those tools and puts his own vision into it does. The same hammer, nails, screwdriver, whatever is used to build mansions... It's also the same tools used to build shitty houses that fall apart... Your point means exactly what the o…

Tools have a lot to do with setting the range of possible creations you can make. If I have better tools I can build much larger buildings than you on similar timescales. It's the difference between using wood and all the standard tools to build a skyscraper and using forklifts, cranes, and welded beams. No amount of skill is going to turn your toolbox into a forklift. Similar sorts of increases are possible with other programming languages and better toolsets, unfortunately you usually have to use them to see these things. You'll probably ask why everyone isn't using these tools if they're so good. The answer is for the same reason people write articles like this. New stuff is scary and weird and the old stuff works well enough, right?

Re: Here’s to the PHP Misfits

#33

Another "Look I can build websites with PHP!" post. The biggest draw of PHP seems to be that there is a large quantity of (often bad) copy paste-able code out there on the internet.

The biggest draws for PHP: - a wide selection of well documented frameworks to choose from - a wide selection of robust CMS's to choose from - a variety of CRM's to choose from - runs on a bog-standard web server (apache, IIS) right out of the box

It doesn't run "out of the box" you still need to install mod_php (although ubuntu/debian makes this pretty easy).

I'd be hesitant to call a CMS or CRM built on something that doesn't understand utf8 "robust".

There's plenty of great , well documented framework available for Java & Python too.

Re: Here’s to the PHP Misfits

#34

Earlier quoted context omitted.

You're doing yourself a massive disservice to know PHP and only PHP. There are literally hundreds of other languages out there, some good, some bad, but all of them have something to teach you. Remember a programmer is not necessarily interested in programming , but often in having programmed , where the end result is paramount. When I see "PHP programmer" it's all too easy to jump to the conclusion of someone who's…

I'm definitely interested in other languages but as long as I feel I can do the same with PHP it's just wasting opportunity costs to spend much time on it (I could've build a whole new startup in that time). The day PHP doesn't cut it for me anymore is the day when I need to use another language. And by then, I definitely will.

Would you go to a hospital where all the equipment was at least thirty years old, where the newer medications weren't available because the old ones were good enough in the opinion of the head doctor? Learning about the new equipment, techniques and medication is just wasting time that could be spent on treating patients, right?

Whenever I patrol the PHP section of Stack Overflow it's like teleporting back in time a hundred thousand years and watching people bang rocks together in the hopes of making fire.

People are trying to do things that should be simple but are needlessly hard because of PHP's language design and the poisonously bad ecosystem. It's because most programmers in the PHP universe always build directly on top of the primitive library functions. For some reason this is the standard way of doing things.

The things you can get done in a framework like Django or Rails with a few off-the-shelf add-ons and some duct tape is so impressive it's somewhat terrifying. To do the same in PHP would take weeks, and even then, only if you know what you're doing.

Re: Here’s to the PHP Misfits

#35

Earlier quoted context omitted.

You're doing yourself a massive disservice to know PHP and only PHP. There are literally hundreds of other languages out there, some good, some bad, but all of them have something to teach you. Remember a programmer is not necessarily interested in programming , but often in having programmed , where the end result is paramount. When I see "PHP programmer" it's all too easy to jump to the conclusion of someone who's…

I'm definitely interested in other languages but as long as I feel I can do the same with PHP it's just wasting opportunity costs to spend much time on it (I could've build a whole new startup in that time). The day PHP doesn't cut it for me anymore is the day when I need to use another language. And by then, I definitely will.

Whilst there is definitely an advantage to using tools that you already understand, you might be surprised how much of your current skills are transferable to a different language.

If nothing else , learning another language will help you write PHP because PHP uses a number of paradigms , all of which are done better by other languages. So learning another language that is more tightly coupled to (say) Object Orientation (Ruby/Java) will help you understand program design better.

Depending on the size of your codebase , I think it's possible to overestimate the cost of changing tools. For example, I have a ~100Kloc PHP codebase. When it was around ~20Kloc we had considered re-writing it in a different language. We decided it wouldn't be worth the time spent, I now kick myself for making that decision :)

Re: Here’s to the PHP Misfits

#36

Another "Look I can build websites with PHP!" post. The biggest draw of PHP seems to be that there is a large quantity of (often bad) copy paste-able code out there on the internet.

Agree. PHP is the only language where one looks for "snippets" instead of libraries. It's gross.

It wouldn't be so bad if standard practise was to put them in a separate files/folders with the original authors header left on with a link back to where it was downloaded.

Instead I tend to find the same POS code repeated 20 times in the codebase.

Re: Here’s to the PHP Misfits

#37

Seems like the article vanished: This is the standard TransIP page for reserved domain names. No website has been published for this domain. Are you still seeing this after publishing your website? Please make sure you upload your website to the /www directory and clear your browser cache before reloading this page.

No it's still up, guess Cloudflare decided to stop serving pages at one point :/.

Re: Here’s to the PHP Misfits

#38

Earlier quoted context omitted.

Stop blaming the tools for the stupidity and unoriginality of the carpenter. The tools don't make the house stable, look good, or even become something people want. How the carpenter uses those tools and puts his own vision into it does. The same hammer, nails, screwdriver, whatever is used to build mansions... It's also the same tools used to build shitty houses that fall apart... Your point means exactly what the o…

Tools have a lot to do with setting the range of possible creations you can make. If I have better tools I can build much larger buildings than you on similar timescales. It's the difference between using wood and all the standard tools to build a skyscraper and using forklifts, cranes, and welded beams. No amount of skill is going to turn your toolbox into a forklift. Similar sorts of increases are possible with oth…

Wrong. Just because you can build faster with a supposedly "better" tool, doesn't mean everyone else can. I know Python, I know Node.js, I know a bunch of other languages, but I don't know them better than PHP, and to be honest, my job doesn't pay me to learn a new language at the same scale as I know my current language, all because a group of people THINK that my language is crap, when in reality, to the end user, my language looks no different than theirs.

My mentality is to use whatever tool you feel comfortable with, and don't let someone else tell you to use something different because THEY can build faster.

Sure a nail gun is faster than a hammer, but if I have problems with an nail gun and can bang in nails faster with a hammer than a nail gun. I'm gonna use the hammer.

Re: Here’s to the PHP Misfits

#39
post #27

Earlier quoted context omitted.

Easier on eyes, more powerful? Surely. But can you just drop .erb files into a directory and turn on mod_ruby? That's the allure of PHP for so many.

No, but you can just run `rails new` and `git push heroku`, which is about as easy as using shared hosting.

Shared hosting is all over the world, most of them provide PHP+20GB for 1/10 the cost of heroku+5MB.

Re: Here’s to the PHP Misfits

#40

Earlier quoted context omitted.

The biggest draws for PHP: - a wide selection of well documented frameworks to choose from - a wide selection of robust CMS's to choose from - a variety of CRM's to choose from - runs on a bog-standard web server (apache, IIS) right out of the box

It doesn't run "out of the box" you still need to install mod_php (although ubuntu/debian makes this pretty easy). I'd be hesitant to call a CMS or CRM built on something that doesn't understand utf8 "robust". There's plenty of great , well documented framework available for Java & Python too.

[deleted]
Post reply on HN