The Lounge is rated Safe For Work. If you're about to post something inappropriate for a shared office environment, then don't post it. No ads, no abuse, and no programming questions. Trolling, (political, climate, religious or whatever) will result in your account being removed.
that one obv is simple and can be changed to a switch but once you start adding || and && in there and breaking each subcomparison out on it's own line the difference is clear. yodaized looks better in the source in terms of figuring out what you're doing. The target being on the right makes it less distracting
When I was growin' up, I was the smartest kid I knew. Maybe that was just because I didn't know that many kids. All I know is now I feel the opposite.
The simple answer to avoiding these things is to keep your code simple. The code you show there is complex, you are doing a lot on a single line. I know that grade-schools promote this, but it is not really that ideal when it comes to debugging.
True, I have heard it used by some French and Belgians & French speaking Canadian, but not by a native (UK, USA, New-Zeland, Oz etc.) Interestingly the 'Jack Of All Trades' the quote Jack of All Trades master of none. I always understood it as 'Jack Of All Trades, master of none, more use than master of one'...
I've actually seen that one
And I could care less is very common as well, come on people, how hard is it!?
That said, I didn't recognize about 90% of them, but the ones I did recognize I recognized correctly (except the thing/think)
Emperor leaves behind rotten pelt found by Spanish river dog (9)
HINT: Not every culture would consider this food.
PEKINGESE = Dog*KING = Emperor
ahead of = leaves behindPE = Pelt - lt (rotten = deletion indicator)
ES = Spanish (i.e. language)
E = River E (in Scotland)
*Dog meat is considered a food[^] in some countries, thus still follows the theme of food named after a location. The Pekingese dog breed[^] is named after Peking(Beijing) which is the capital of China (which also happens to consume the most dog meat of all the countries).