Re:Ask HN: Best tech for a web site 2018? (PHP, Rails, Djang...
by gremlinsinc on Monday November 13, 2017 @07:45AM
(#15686063)
I don't know about 'back in the day'... php was way ugly and hackety hack... BUT... laravel + composer now is a beautiful thing, super easy to get going. PHP in 2017 has grown up a lot and isn't the same as php in 2007.
I think most important thing is picking something that you can hit the ground running fast, it doesn't matter what you build in (though I'd stay away from nosql personally... never know when you'll need rdbms on scaling, and starting w/ mysql/postgres is safer in many cases)..
Re:Ask HN: Best tech for a web site 2018? (PHP, Rails, Djang...
by jlebrech on Monday November 13, 2017 @07:49AM
(#15686090)
people avoid languages because they don't know if a php job ad means "20 year old codebase" or greenfield.
Re:Ask HN: Best tech for a web site 2018? (PHP, Rails, Djang...
by whamlastxmas on Monday November 13, 2017 @10:47AM
(#15687256)
As someone who uses Laravel the most between all backend frameworks, it still sucks because it's rare to impossible to find jobs that use it and employers still largely care about what you're most proficient with and look down on it because it's PHP. That said, I do really like Laravel
Re:Ask HN: Best tech for a web site 2018? (PHP, Rails, Djang...
by marcofiset on Monday November 13, 2017 @11:32AM
(#15687657)
Re:Ask HN: Best tech for a web site 2018? (PHP, Rails, Djang...
by whamlastxmas on Monday November 13, 2017 @03:43PM
(#15690047)
Literally one job for my city and it's the first time I've ever seen one posted for my city. I do appreciate the resource though.
Re:Ask HN: Best tech for a web site 2018? (PHP, Rails, Djang...
by marcofiset on Wednesday November 15, 2017 @11:21AM
(#15704850)
Many of them hire remotely though.
Re:Ask HN: Best tech for a web site 2018? (PHP, Rails, Djang...
by bearjaws on Monday November 13, 2017 @07:49AM
(#15686093)
OP lists websockets, a feature PHP cannot implement well.
(and no ratchet, php-websocket do not count)
Re:Ask HN: Best tech for a web site 2018? (PHP, Rails, Djang...
by aclsid on Monday November 13, 2017 @08:03AM
(#15686203)
Well, to be honest if you want to use websockets, you better do that part in Node.js, Elixir or Go. The creator of Juggernaut, which was one of the most popular websocket library for Rails, ended up porting to Node.js until he said that people should stop using websockets and rely on Server Sent Events instead.
Re:Ask HN: Best tech for a web site 2018? (PHP, Rails, Djang...
by lastofus on Monday November 13, 2017 @03:02PM
(#15689683)
Considering there is absolutely no IE or Edge support for SSE, it seems like a non-starter for a general website.
https://developer.mozilla.org/en-US/docs/Web/API/Server-sent...
Re:Ask HN: Best tech for a web site 2018? (PHP, Rails, Djang...
by aclsid on Tuesday November 14, 2017 @09:45AM
(#15695390)
There is a polyfill for IE.
https://github.com/remy/polyfills/blob/master/EventSource.js
Re:Ask HN: Best tech for a web site 2018? (PHP, Rails, Djang...
by deweller on Monday November 13, 2017 @08:14AM
(#15686287)
If by "websockets" you mean "notify a web client immediately when a server side event occurs", then PHP + Laravel + Pusher is a mature solution for this.
Re:Ask HN: Best tech for a web site 2018? (PHP, Rails, Djang...
by mamoswined on Monday November 13, 2017 @04:19PM
(#15690352)
Has anyone tried Grav? Some ex-Drupal people use it.
PHP was a great tool back in the day and today!
PHP with a decent framework like Laravel [1] or Zend Framework [2] really works well and addresses all the features that you have listed (except the last 2).
Uniquely among modern languages, * PHP was born in a web server *. Its strengths are tightly coupled to the context of request-oriented, server-side execution.
We've managed to develop several complex apps over the last 10 years on PHP. For Web Socket support, we use Socket.IO or Firebase and it both really well together with PHP.
If you choose PHP now, you are not alone. Many companies still choose PHP for their Web Application. Slack uses PHP for most of its server-side application logic [3]
[1] https://laravel.com/ [2] https://framework.zend.com/ [3] https://slack.engineering/taking-php-seriously-cf7a60065329