4 ms·
At least this one isn't ripping it to shreds (so far). The other discussion...that was rough to read as a PHP dev.
by toxican 10y ago
At least this one isn't ripping it to shreds (so far). The other discussion...that was rough to read as a PHP dev.
- wyager 10y agoDon't take attacks on your usual tool of choice as an attack on yourself. If you think people are making good arguments against PHP, perhaps consider retooling a bit...
- toxican 10y agoHard to separate yourself from your decisions and your toolset sometimes! I certainly may check out some alternatives at a hobby level and pursue them further if they appeal to me. But for now the money in my rural city is in PHP and to a lesser extend, .NET. Don't think I've ever seen a job asking for Python, Node, etc. that didn't require an hour + commute.
- meritt 10y agoIf you're (or anyone else) interested, my company is hiring senior PHP engineers. Modern tech stack: PHP7, MariaDB (MySQL), Redis, distributed workers, Debian, AWS, Solr, data mining/analysis. Competitive salaries, fully remote, vacation, retirement, etc. Contact me at meritt.hn@gmail.com
- jonaswouters 10y agoIf you jump on a new language early enough and are proficient enough to be productive in it, you have a chance to actually land some jobs with it without having to take a pay cut. Letting people know and engaging in the community is a requirement though. You'll meet other people passionate about it and ultimately network is everything ;) Then again I end up with php jobs anyway because I enjoy sharing my knowledge (coaching, improving way of working, etc) but at the same time surround myself with people who I can learn from. (Be it business, architecture or a different language, all relative knowledge is valuable)
- toxican 10y ago>surround myself with people who I can learn from. This is my biggest struggle. I am the only dev in what is primarily a graphics place. I've come a long way on my own since I started here, but I miss having a mentor or at least someone whose code I can look at and learn from and know I'm looking at GOOD code.
- madeofpalk 10y agoI would assume by this point that PHP devs would be fairly confident and comfortable with their decision to continue with PHP and would be used to others bagging on it unnecessarily. As a JS/Web developer you learn to ignore the hatred of the web that it seems to get from the HN crowd.
- wyager 10y ago>As a JS/Web developer you learn to ignore the hatred of the web that it seems to get from the HN crowd. As an occasional full stack developer (not by choice), I can confidently say that the reason people hate on popular web tech is that it is uniformly terrible compared to non-web tech. I'm no fan of Java, for example, but I'll take it over PHP any day. JavaScript is so bad that I (and many other developers) will put a lot of effort into using any alternative, such as typescript, purescript, Elm, etc.
- vcarl 10y agoThis is the typical "hatred of the web" that I usually ignore. ES2015 brought a ton of huge language improvements that are still filtering out into usage, Babel means you can use them all now without waiting for browsers to implement them, Webpack gives you a ton of flexibility for packaging it, Eslint allows you to lint in a completely pluggable way, NPM (and now Yarn, which fixes many of NPM's problems at scale) allows you to effectively manage dependencies, Typescript or Flow allow you to incrementally add the benefits of static types, and Javascript's "functions as a first class object" allow it to behave as a powerful functional programming language. It's very possible to write--and deploy--very high quality Javascript today.
- wyager 10y ago"My language that I use all the time (definitely no Blub paradox here) isn't bad, look at all these random features it has!" Sorry, but that isn't a reasonable argument. Having used all the stuff you mentioned, and many other languages, JS is relatively not good. > Typescript Is essentially an entirely different language. But I agree, it's a vast improvement. > It's very possible to write--and deploy--very high quality Javascript today. But the language doesn't actively assist in precluding low-quality code, and most production JS that wasn't transpiled is low-quality.
- Aldo_MX 10y agoTake the attacks with a grain of salt, although many of the criticism is true, it is not exclusive to PHP, ex. the unexpected type coercions. OTOH, most of the performance benchmarks done against PHP (ex. PHP vs Python) usually mean "which language is faster at crunching numbers". I/O operations like reading a file from disk or running a query against a database are an order of magnitude slower than number crunching, so any of the gains you can get by switching languages become effectively negligible, unless you really care about nanoseconds. Remember to always pick the right tool for the job, you won't use PHP for number crunching the same way you won't pick C++ to build the minimum-viable-product website of a startup.
- spronkey 10y agoTo be fair, "number crunching" starts to become really important when you need to, oh, work with the large set of data that you pull back from the database. But in saying that, PHP7 is actually pretty fast. Probably faster than CPython for most of the algorithmic tasks you might run with data from a SQL database, for example.