New Programming Jargon (2012)
codinghorror.com
codinghorror.com
I say fascinating because it's a perspective I genuinely would not have suspected be prevalent. I've always felt that SA was a place to ask technical questions, and that there never really was meant to be a "community" or discussion, only a service.
It's a bit like SA wanted to address one thing (ask technical questions, get technical answers), meanwhile ton of people discovered that SA's format was more useful for some discussions than a forum, and now the community wants something that was never the goal.
I'm curious if there's something like SA, but dedicated to the discussion that SA avoids.
A typical allowed question is how to read the gyro on Android. Well that's well documented and useless to talk about further anyway. A typical question not allowed is the best way to make money in your app. This is very valuable to me since I've tried dozens of different ad networks. It took me a long time to figure out Google and AdMob pay terribly vs. all the others, etc.. Hell, even the question they cite as being frat house and not college is really useful to me since I could pickup new jargon, something not straight out of the docs.
Anyway, the site they made for this is here: programmers.stackexchange.com
Although I still think it is a stupid distinction not to just allow it on the main site. The best content they have for experienced programmers who have passed the point where the main site is useful is shoved off into some ghetto. It is kind of like how you see lots of dead people on Hacker News who actually post interesting and useful stuff. HN bans people who are not outright spammers and trolls just for disagreeing, and it hurts the site.
It's called HN.
I'm not sure what the status of the project is currently.
Assuming SA means Stack Overflow, some of the other Stack Exchange sites are probably better venues for some kinds of question. For example, programmers.stackexchange.com is for more conceptual questions. It's still explicitly not intended to be a discussion forum, though, if that's what you're looking for.
How is this the first time I have noticed that?
Hey, JavaScript developers have feelings too, you know!
It was infuriating because the logic is not forward thinking - if you want to check if a return code is an error (RC > 4) then your check has to be 4 < RC. The worse part was, the COND function was to test if the step was being skipped, so if you wanted to invert the logic to execute the step if the previous steps had no errors, it became 4 >= RC.
Edit: And because it is more of a "function" call, you can't modify the order. You MUST use it that way.
The rationale is that they make it a compiler error if you accidentally perform an assignment operation ("xyz" = $name) instead of a comparison ("xyz" === $name). The thing is, this is only a significant risk if you adopt the bad habit of performing assignment operations within conditional statements, like this:
if (null !== ($charset = $env->getCharset())) {
The above style has been popularised in PHP by the Symfony project. I think it's hideous, and that the idea of adopting one ugly style choice (Yoda Expressions) to mitigate the risk introduced by another ugly style choice (assignment in conditional operations) is reminiscent of the children's song about the old lady who swallowed a fly. if ($var = 1) ...
will always evaluate true.But since you should be using === in this context, there's really no excuse for using a single...
if ($var === 1) ...
Also, can PHP devs please do me the favor of splitting if (null !== ($charset = $env->getCharset())) {
into two lines: $charset = $env->getCharset();
if ($charset !== null) {
...
Isn't that prettier? The line that the first one saves doesn't really make anyone's life easier...I see this a lot in Java code. However, this does not catch all exceptional conditions, specifically not Errors. If you want to do catch everything, then catch Throwable, rather than Exception.