Live data from Hacker News

Ask HN: I'm starting a new job as a PHP developer tomorrow

news.ycombinator.com

81–90 of 96 posts

Re: Ask HN: I'm starting a new job as a PHP developer tomorrow

#82
I'm working at a PHP shop that also uses Windows and we've had a python developer with a strong linux background come in and make the same transition.

I'd strongly just using windows for the first month or two. Which would you rather spend time on? PHP (the code you're being paid to build/support) or getting Arch Linux set up and working seamlessly on your machine. Besides you'll probably be running your PHP in a vm anyway. Also I'd suggest checking out fiddler, which is windows freeware.

PHP is a fairly sane language especially if you're using something like Laravel which is very similar to Rails. That said be prepared to run into some PHP oddities. One of them is that PHP will die with uncatchable fatal errors if there is a syntax error. PHP -l is a linter that should catch that. Also it's worth knowing that PHP is a wrapper over C, and really moved to OO in 5.3 so some build in functions will return an error code or true /false instead of throwing an exception

Re: Ask HN: I'm starting a new job as a PHP developer tomorrow

#83
post #82

I'm working at a PHP shop that also uses Windows and we've had a python developer with a strong linux background come in and make the same transition. I'd strongly just using windows for the first month or two. Which would you rather spend time on? PHP (the code you're being paid to build/support) or getting Arch Linux set up and working seamlessly on your machine. Besides you'll probably be running your PHP in a vm…

They are using raw PHP, no Laravel or any other frameworks are involved.

Re: Ask HN: I'm starting a new job as a PHP developer tomorrow

#85

Earlier quoted context omitted.

Why the attitude? If it's a simple definition problem there's no need to get snippy, just address the issue and move on.

Given the op's claimed experience if they don't understand that your pc on your desk top is not the same as your dev/test/live systems - it's about time some one pointed this out to them before they get in real trouble at work.

What?

Re: Ask HN: I'm starting a new job as a PHP developer tomorrow

#86

Earlier quoted context omitted.

Why the attitude? If it's a simple definition problem there's no need to get snippy, just address the issue and move on.

Given the op's claimed experience if they don't understand that your pc on your desk top is not the same as your dev/test/live systems - it's about time some one pointed this out to them before they get in real trouble at work.

What, in anything the OP said, makes you think they don't understand the difference between their workstation and the dev/test/live systems?

Re: Ask HN: I'm starting a new job as a PHP developer tomorrow

#87

Earlier quoted context omitted.

Why the attitude? If it's a simple definition problem there's no need to get snippy, just address the issue and move on.

Given the op's claimed experience if they don't understand that your pc on your desk top is not the same as your dev/test/live systems - it's about time some one pointed this out to them before they get in real trouble at work.

I understand the difference between those, what makes you think I don't?

Re: Ask HN: I'm starting a new job as a PHP developer tomorrow

#88

PHP isn't as bad as it used to be. Yes fundamental operator order is erratic and I'm forever googling basic functions, but the ecosystem has produced some good stuff over the past couple years. Read up on Composer and Packagist. It's basically NPM, Gems, or PyPi for PHP. There are now solid interoperable libraries for most common tasks. - https://getcomposer.org - https://packagist.org Laravel is a great framework, b…

I've been called a few times to troubleshoot slow PHP websites only to discover they were using Symfony and could not sustain 5req/sec on fairly beefy hardware. All kinds of PHP optimizations couldn't make it run much faster (which complicated the infrastructure a lot later on). The last time was 1 year ago so unless something impressive happened since then, I would suggest against it.

Did you actually diagnose what was causing it to be slow? Something like NewRelic might help break down where the actual slowdown is versus saying it was the framework.

Re: Ask HN: I'm starting a new job as a PHP developer tomorrow

#89
post #48

Earlier quoted context omitted.

Do you use Resharper at all?

Some in VS. I didn't use emacs exclusively.

What sort of stuff did you prefer using emacs for? Like when you're writing code for familiar libraries/frameworks?

Re: Ask HN: I'm starting a new job as a PHP developer tomorrow

#90

Earlier quoted context omitted.

Yes, they use Windows and Sublime Text to write PHP code.

where does it run? on windows or linux?

Their servers are Linux.

They develop on Windows with Sublime Text.

Post reply on HN