News for hackers. Stuff that matters.
Re:Show HN: Faceless – Open-source version of Secret by arasmussen on Tuesday July 15, 2014 @12:18PM (#8037307)
Why PHP? I would argue that in this day and age, that is a bad decision. There are simply better, lighter weight languages to use that will get you going faster and cause less problems down the road. Maybe not you personally if you're a PHP wizard, but certainly the industry in average. I'd recommend you skate to where the puck is going. :)
Re:Show HN: Faceless – Open-source version of Secret by sarciszewski on Tuesday July 15, 2014 @01:18PM (#8037716)
PHP isn't inherently a bad decision. The ecosystem is full of good examples of what not to do, but that's not a failing of the language itself. It can be done right.

Yes, there are design warts. There are also RFCs to iron them out. (I opened one recently to deprecate MCRYPT_RAND so people can stop generating weak random IVs in their crypto libraries one day).

Personally, I spend a lot of my free time opening issues and submitting pull requests to PHP projects on github to increase the likelihood of a budding developer being exposed to better code.

Re:Show HN: Faceless – Open-source version of Secret by marco1 on Tuesday July 15, 2014 @08:25PM (#8039949)
Agree. And for PHP, there are also quite promising things that you can expect, e.g. HHVM, Hack, etc. But also in PHP itself, e.g. https://news.ycombinator.com/item?id=8036707
Re:Show HN: Faceless – Open-source version of Secret by marco1 on Tuesday July 15, 2014 @12:50PM (#8037519)
I don't think this is a bad decision, but I'm sure that it's not the optimal solution, either. I chose PHP just for the sake of rapid prototyping. I actually planned to rewrite the complete server-side code in Node.js or Go, but haven't managed to do so yet.
Re:Show HN: Faceless – Open-source version of Secret by arasmussen on Tuesday July 15, 2014 @12:26PM (#8037354)
If you downvoted, feel free to share your opinion on why this is wrong. I could care less about the votes, I want to hear your discussion! Why would you use PHP?

Here's an excerpt from a Facebook engineer explaining why we still use PHP: "The reason Facebook hasn't migrated away from PHP is because it has incumbent inertia (it's what's there) and Facebook's engineers have managed to work around many of its flaws through a combination of patches at all levels of the stack and excellent internal discipline via code convention and style - the worst attributes of the language are avoided and coding style is rigidly enforced through a fairly tight culture of code review"

Re:Show HN: Faceless – Open-source version of Secret by swalkergibson on Tuesday July 15, 2014 @12:53PM (#8037548)
You answered the question yourself. If someone is a wizard in PHP, then they should use PHP. People that get caught up in the decision of what language to use don't ship code. Shipped code > language decision circle jerks.
Re:Show HN: Faceless – Open-source version of Secret by SuperKlaus on Tuesday July 15, 2014 @04:49PM (#8038909)
Exactly! Done > Perfect
Re:Show HN: Faceless – Open-source version of Secret by eropple on Tuesday July 15, 2014 @12:34PM (#8037416)
I'm not a habitual PHP user, and I have perturbed many electrons on why I wouldn't use it for nontrivial projects, but I could slam out something for which I don't care about security or performance in a very short period of time.

Rails, Play, etc. have some friction; Sinatra makes you reinvent a lot of wheels. You really can just fart something out in PHP very rapidly.

Re:Show HN: Faceless – Open-source version of Secret by marco1 on Tuesday July 15, 2014 @12:48PM (#8037509)
It's important to state that I do care about security here, but I don't care about performance that much.
Re:Show HN: Faceless – Open-source version of Secret by federico3 on Tuesday July 15, 2014 @01:28PM (#8037774)
Vulnerabilities in the vm only, not including libraries and frameworks: http://www.cvedetails.com/vendor/74/PHP.html

Feel free to compare it with other languages.

Re:Show HN: Faceless – Open-source version of Secret by tene on Tuesday July 15, 2014 @03:10PM (#8038364)
I'm curious what happened in 2007; why were there so many more vulnerabilities, especially code execution?
Re:Show HN: Faceless – Open-source version of Secret by opendais on Tuesday July 15, 2014 @03:30PM (#8038476)
I downvoted because you make grandiose claims without any real, non-FUD sources beyond you work at Facebook. You just say there are "BETTER THINGS!!!" without listing at least one and why.

1) From a productivity standpoint PHP is pretty hard to beat in general....if you already know PHP.

2) A poor craftsman blames the tool.

3) PHP's inertia extends to the entire ecosystem really, not just the tool.

Re:Show HN: Faceless – Open-source version of Secret by sarciszewski on Tuesday July 15, 2014 @01:19PM (#8037718)
Funny, I've fixed a flaw in the Facebook SDK already, so they aren't that imprevious to making the same mistake :P
Re:Show HN: Faceless – Open-source version of Secret by domiono on Tuesday July 15, 2014 @06:56PM (#8039623)
This with parse would have been awesome. Super easy, out of the box and pretty much platform agnostic.
Re:Show HN: Faceless – Open-source version of Secret by marco1 on Tuesday July 15, 2014 @08:28PM (#8039961)
You mean that the backend should have been based on parse.com and not be written in PHP? Well, there are several reasons I didn't do this: (a) I wasn't familiar with parse.com (b) PHP code is independent from a single commercial provider (c) you can easily host the PHP code on Heroku etc. (d) I wasn't really sure if parse.com was appropriate for more complex tasks, encryption, etc.