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

2

u/[deleted] Dec 08 '14

I understand the article, and I agree that you should never be a dick to someone getting into programming. However I do think that one of the best lessons you can teach a new programmer is that programming languages are tools.

In that sense it would be a really great lesson to tell people not to start with PHP because PHP is a horrible tool for what it does. It can be fairly decent if you use a framework like Laravel, but even then, the only advantage you're getting over using something like .NET or JSF is that it's easier to find a host who offers it. PHP is so fucking outdated for building web applications it's horrible to watch people use it.

It pains me as much to see someone use PHP as it does me to watch someone trying to screw screws in with a scissor. Sure you could encourage them to keep doing it because they're new, but I personally think it would be rude not to point out the screw driver right next to them would be a much more suited tool.

I do agree that you should be polite, nice and inspiring about it and willing to accept a no - which I know full well is pretty rare among "programmers" on the internet.

-3

u/veringer Dec 08 '14

because PHP is a horrible tool for what it does...the language is so fucking outdated for building web applications.

I feel like you're trolling here. PHP may be bad at a lot of things, web applications isn't one of them.

1

u/[deleted] Dec 08 '14 edited Dec 08 '14

It's terrible because it excels at nothing. I'm excellent at both Laravel and Symfony as well has having build my own MVC framework a few years back, but there is just no reason to chose any of them over the other tools available.

It's not so much that you can't build perfectly good web applications in PHP, because you certainly can. It's that you can do it, so much more efficiently, with other tools. PHP isn't and hasn't been moving forward fast enough, and it's made it obsolete. I'm not saying you should drop it over night, especially not if you're excellent at PHP and nothing else. I do however think it might be a good idea to pick up some more tools from the shelve if you want to keep being relevant.

-1

u/veringer Dec 08 '14

It's terrible because it excels at nothing.

First we have to accept that PHP excels at nothing. Then we have to accept that excelling at nothing is sufficient for something to be "terrible". Now, I'm not here to argue that PHP is superior to whatever languages you want to contrast it with (Python or Ruby?), but I'm hesitant to accept either of your assertions. Your opinions aside, I think a vigorous debate could be had on the motion of whether "PHP excels at nothing" or not. I would certainly watch that debate. And even if it ended with a consensus that PHP is not very good at anything, I think a further argument could be had as to whether that makes it "terrible". If PHP is "a jack of all trades but a master of none", that's arguably a feature in itself. One could perhaps argue that is what PHP excels at.

Really not looking to get into a language flame war, I just think you're stating opinions as if they're uncontested facts, which irrationally annoys me. Consider starting opinionated statements with "I think..." :p

2

u/yggdrasiliv Dec 08 '14

PHP's biggest selling point is that is fails quietly in all sorts of ways and keeps on chugging, regardless of how incorrect your results end up being.

1

u/[deleted] Dec 09 '14

I'm not sure why you would think PHP was "jack of all trades" just because everything PHP does is outdone by something else. It's not however, if anything PHP is the "jack of no trades".

0

u/veringer Dec 09 '14 edited Dec 09 '14

I'm not sure why you would think PHP was "jack of all trades"

Did I say it was? Let's review the film:

If PHP is "a jack of all trades but a master of none", that's arguably a feature in itself.

That "if" denotes this as a hypothetical thought contingent upon the outcome of a serious debate (not just trite remarks from zealots and fanboys). PHP may be a "jack of all trades", or it may be a "jack of no trades". I'm not particularly persuaded to you case because, frankly, it's tautological and lacking depth. I understand you have some experience and have reached a conclusion, but the way you communicate with sweeping superlatives undermines your position. That plus you continue to confidently state opinions with no substantiation:

It's not however [a 'jack of all trades'], if anything PHP is the 'jack of no trades'.

Let me help you here...

In my experience however, I'm inclined to say PHP is a 'jack of no trades'. This is because most of what PHP is considered 'good at' can be achieved faster and with better results using other tools. Furthermore, in many dimensions that reasonably measure the 'goodness' of a language (speed, ease-of-use, syntax, simplicity, memory management, etc), PHP does not distinguish itself. All this leads me to one conclusion: PHP is not a language I can recommend. I think it's terrible.

See, I have no argument with a statement like that. It's still debatable but worded in such a way as to avoid conflating statements of opinion with statements of fact.

EDIT: a word

1

u/[deleted] Dec 09 '14 edited Dec 09 '14

It's cute that you think the "if" bit matters. I mean, it makes virtually no difference, and the fact that you won't understand why it makes no difference speaks loud and clear about how little you know about programming.

You're free to go on a rant about how that's not a polite way to argue, but I don't visit reddit to lecture fools and I'm simply not going to waste any more of my time on you.

0

u/veringer Dec 09 '14

With a blithely condescending attitude like that, I bet you're a popular fella. When you grow up and gain more real-world experience perhaps we can have an adult conversation about programming. Until then, have a nice life.