News for hackers. Stuff that matters.
Re:How to Hire by qaq on Thursday August 16, 2018 @05:47PM (#17778682)
Well I know fairly small company where people pretty much expected every candidate to be deeply familiar with The Art of Computer Programming Book by Donald Knuth. The even funnier part it was 100% PHP shop.
Re:How to Hire by wglb on Friday August 17, 2018 @09:20PM (#17786406)
I bought the first volume of TAoCP when it came out. The number of people that I know that are "deeply familiar with The Art of Computer Programming" approaches zero. I have read some sections in great detail, but won't claim deep familiarity. I don't know of anyone who has read the whole thing. I am a bit skeptical of this claim.
Re:How to Hire by qaq on Saturday August 18, 2018 @03:46AM (#17787363)
That is exactly why this is funny :). You have to dif. expected and actually were able to find. From my understanding only the CTO would more or less actually fit the description.
Re:How to Hire by Acen on Thursday August 16, 2018 @07:16PM (#17779196)
I'm not sure why people still have problems with modern PHP. Why is that funny?
Re:How to Hire by FLUX-YOU on Friday August 17, 2018 @02:14AM (#17780638)
It's the shitty PHP projects they don't tell you about in the interview that people have a problem with that they then shovel on your plate.

But that really goes for any language.

The true extent of technical debt is almost never realized in an interview, but you can't really do much about it if you accept the job and they tell you to work on it.

Re:How to Hire by IA21 on Friday August 17, 2018 @11:47PM (#17786746)
> But that really goes for any language.

It goes so much more for php than any other language. PHP used to be so popular and even now with JS and other languages on top, there's still so many legacy php apps out there for maintenance. I deal with them regularly and most of them are really bad.

And no, I'm not shitting on the language. It's a decent language nowadays.

Re:How to Hire by qaq on Thursday August 16, 2018 @09:17PM (#17779636)
You know many people who are enough into CS to go through "The Art of Computer Programming" multiple times but yet use PHP a lot? Modern PHP is OK but I doubt it's a good default choice at present given all the alternatives.
Re:How to Hire by ewjordan on Thursday August 16, 2018 @10:25PM (#17779892)
If a company already has a large PHP codebase, then it's probably the right choice to stick with it. And it can scale just fine, easily as well as Python or Ruby if you dig into how to do it right.

But to manage scalable PHP (or any language, for that matter) you still need smart programmers, a lot of whom will have been through most of the serious academic works in the field. They won't love working with PHP (I never did), and it might mean greater flight risk (yup!), but they might join the job anyways (at least half a dozen people that I know with those creds that joined up with the last project I was on where we had no choice but to deal with PHP) because of other reasons, like liking the company, people, or goals.

I've worked with a dozen different languages over the last 20 years. PHP is not one that I'd pick for a new project, but TBH, it's not the worst I've had to deal with. My experiences with the Visual Basic, Perl, and R code that I've had to interact with were actually far worse (typically because the people that code them are not as solid in software engineering), but I wouldn't judge people that use them just based on having done so. Unless we're spinning up new prototypes, very few of us actually get to choose the technologies that we use.

Re:How to Hire by arwhatever on Friday August 17, 2018 @12:51AM (#17780361)
I've learned to avoid vb.net shops not because of the language per se, but because of the culture that allows for sticking with something that has widely considered legacy for some time now.

I know this is painting with a broad brush, and I'm working from a sample size of 2 (or, 2 vb.net shops that I've worked with), and the software engineering culture as a whole was really bad on those teams.

Re:How to Hire by user5994461 on Friday August 17, 2018 @04:05AM (#17781095)
>>> And it can scale just fine, easily as well as Python or Ruby if you dig into how to do it right.

The webserver is scaled by just adding more instances in parallel with a load balancer. It's the database that needs to scale and that's the challenge.

Re:How to Hire by ewjordan on Friday August 17, 2018 @06:08PM (#17785801)
Absolutely, though I'd warn that if you naively use PHP and a default setup (Apache with default settings for PHP or something like that), you're probably not going to serve as much traffic per server as a naive Python or Ruby setup will get you. You have to tune your way there, and it can be a bit of a process, but it's definitely possible, and there's nothing very subtle about it.

One of the biggest problems with PHP, IMO, is that most of the code you'll find online is extremely old, and probably will give you terrible advice, using old deprecated mysql libraries, etc.

Re:How to Hire by dvlsg on Friday August 17, 2018 @01:39PM (#17784487)
And don't you have to reopen database connections for each php request? Even that seems fairly difficult to scale, unless there's a way around it that I'm not aware of (I don't use php very often, definitely not at scale).
Re:How to Hire by user5994461 on Saturday August 18, 2018 @07:03AM (#17787942)
Of course not. Connection pooling is the most basic feature of any database library. It would be really shocking if PHP didn't do that.
Re:How to Hire by ReverseCold on Friday August 17, 2018 @02:26AM (#17780690)
Is there an easier way to make a CRUD-type app?

I started learning PHP/Laravel the other day and was able to make an item/data management system with a corresponding JSON API in about an hour.

It's bootstrap so the UI isn't unique or innovative, but it's definitely passable and it works really well.

Re:How to Hire by paulriddle on Friday August 17, 2018 @03:27AM (#17780943)
Obviously Javascript, Ruby, Golang, Python.

Javascript has become a nice language. You can't avoid it in webdev. Rich ecosystem. Languages like Typescript, Elm, Purescript, etc. are close.

Ruby is very practical, has everything, very consistent and clean. PHP is not consistent and not clean.

Golang is fast and the simplest language that is actually used in the industry. It is dramatically simpler than C. It is the fastest.

Python is like Ruby, but even more practical because it has ML and math, whereas Ruby does not.

PHP has no place in this world.

Re:How to Hire by exceptione on Friday August 17, 2018 @06:33AM (#17781709)
PHP is very much like Java, only being dynamically interpreted. Symfony is a very high quality framework, with which can build serious applications.

Python is surely nice looking, but as it allows redefinition of everything at runtime, it is impossible to optimize at compile time. I think PHP, with the recent type strictness functionality, is better positioned for making way to new developments like meaningfull code analysis, (compile time) optimizations and performant JIT compilers. Python is too dynamic for that, unfortunately. The same holds for JavaScript.

I don't know Ruby well, but I know it is also slow.

The biggest problem with PHP is that it standards library has inconsistent naming. The syntax is very much Java-like. If PHP would shove the standard library into `LegacyPrelude` (and have it automatically loaded like Haskell) it could improve on that as well. This problem is not as fundamental as the other problems in my opinion, although still requiring a major effort to slowly turn to a new `Prelude`.

Re:How to Hire by paulriddle on Friday August 17, 2018 @06:59AM (#17781819)
The biggest problem with PHP is that a lot of smart people don't want to work with it for whatever reason, and you really want these smart people. To succeed you have to have a good team. Difficult to assemble one with PHP as your language.

If you use PHP you are going to lose. The world has moved on. Remember that you are not the only game in town. Good engineers have opportunities in Python, Javascript, Ruby, Rust, Golang, whatever. These languages have better reputation, better communities, they are more exciting. PHP might have become better but it's too late. It wasn't late for Javascript, but it is late for PHP.

Re:How to Hire by batteryhorse on Thursday August 16, 2018 @10:42PM (#17779952)
I have to say, I found his comment that it was a PHP shop funny, but your response asking 'why is that funny' is even more funny
Re:How to Hire by oatmale on Friday August 17, 2018 @12:53AM (#17780371)
Please don't turn this into some language flame war. This isn't the place for that type of mentality.
Re:How to Hire by jarsin on Thursday August 16, 2018 @06:17PM (#17778872)
I find that impossible to believe :)
Re:How to Hire by qaq on Thursday August 16, 2018 @06:36PM (#17778980)
even more funny it was internal payment processor @ large porn conglomerate in Eastern Europe.
Re:How to Hire by golergka on Thursday August 16, 2018 @08:05PM (#17779415)
Why is it funny? That seems like exactly the high load, high availability requirements that would require software quality way higher than in a typical SV app that never gets above 1k DAU.
Re:How to Hire by qaq on Thursday August 16, 2018 @08:30PM (#17779494)
The payment processing side is not really high load
Re:How to Hire by darylfritz on Thursday August 16, 2018 @11:40PM (#17780136)
I feel like there's a pun in here somewhere... ಠ_ಠ
Re:How to Hire by qaq on Thursday August 16, 2018 @06:37PM (#17778987)
They did write a functional framework and used "only" immutable vars though.
Re:How to Hire by colanderman on Thursday August 16, 2018 @07:05PM (#17779146)
Which is ironic, given the largely imperative approach taken by TAoCP.