1,299 karma · joined August 12, 2012
And yet some very complex solutions were solved with very simple languages, before Java was conceived.
# Don't expose hidden files to the web
location ~ /\. {
return 404;
}IMHO any sort of interview process is a crappy way to hire people. The best jobs I've had, I got by meeting people informally. Jobs where I've gone through a really formal interview process have always turned out "just okay" at best.
Soylent is the sort of thing that could seriously damage your health. I know that several people have trialled it over the course of a few months, but nutritional deficiencies can take much longer to develop. For example I don't recall ever reading that oral health was being monitored during the trials - when you're not chewing anything, your teeth will fall out.
I'm sorry but I truly do believe that selling Soylent would be dangerous and irresponsible. Please, don't sell Soylent to anybody until you've done some proper clinical trials.
No, the sensible answer to this is "just read the compiled JavaScript". CoffeeScript compiles down to very nice, readable JS. I would even go so far as to say that compiled CoffeeScript is easier to read than 90% of the JavaScript you'd typically find in a open-source project.
If you really need to turn code on/off in different environments, you should be using feature flags: http://code.flickr.net/2009/12/02/flipping-out/ and at the very least you should be detecting the environment:
if (ENV == 'dev')
testStuff();
else
productionStuff();
This is much more meaningful to other developers (and to yourself in the future).I'll turn it around and ask why, for simple tasks, is the CLI any better than a GUI ignoring personal preferences?
For me, the main thing is speed: I can type much faster than I can navigate a cursor (tab completion helps). I recognise that some GUIs have keyboard shortcuts to speed things up, but then at some point you're using the keyboard enough to justify using a CLI. The other thing is that I don't find graphical representations of my changes helpful at all. I commit early, commit often, so the output of `git diff` generally doesn't need to be paginated. My feature branches are small so I can merge them without the need to see a commit/branch graph.
To be honest it's hard to answer that without ignoring personal preferences because really, that's all it boils down to.
I can definitely understand the want to use a GUI when you're doing complex adds or merges. spacemanaki is right in saying that doing this a lot probably indicates a problem with workflow, though.
I'm just curious; you seem to imply that you find basic commands (add, commit, push, pull) easier to perform in a GUI than a CLI. Why is that? What is it about a CLI which isn't simple?
The thing that I don't agree with though, is that you've described a "capable" programmer who uses good programming techniques and obviously knows how to structure an application. If this programmer is doing the "background-in-foreground" thing and hasn't heard of message queues, then I would argue that they aren't a capable programmer - in which case you're just describing bad programming practices; not a fundamental flaw of PHP.
Still, nice idea.
IPC Media is the UK's leading magazine and digital publisher. We're currently hiring DevOps, PHP (preferably Symfony) developers and front-end developers.
Lately we've been doing a bunch of fun stuff: - Reducing page load times across our sites - Implementing a continuous integration system - Switching to Git and embracing a better workflow with GitHub Enterprise - Building a new platform to serve our mobile sites
If you want to know more about the positions or about the day-to-day work, hit me up: "joseph_wynn" at ipcmedia.com.
Btw you can browse the code on GitHub if you don't want to download it: https://github.com/laravel/framework