I prefer the first format as you can see exactly what's going on, regardless of the names of the parameters being passed. Please don't make me delete and retype the opening parenthesis to see the intellisense for some abstruse funtion, etc. Also, it is immune to the problem of somebody changing the order of parameters (we all know that should never happen but, well, you know...).
Tom Chantler
Posts
-
PSOTWIFLI -
The dangers of an office job...This is a brilliant observation.
-
About Azure...If you have an MSDN account you probably also get free Office365 credits too. I have the Microsoft Action Pack Subscription (poor man's MSDN) and I get £65/month of free Azure credits (for dev use only, but that's cool) and five free Office365 licenses. Outlook365 is great; I ditched GMail to use Office365 instead.
-
var tomorrow = ?When I see stuff like this I genuinely don't know whether to laugh or cry! :sigh:
-
Nice dealWhilst we're on the subject, what kind of a moron would sell all of Britain's gold at rock bottom?!
-
Nice dealI think you will get bombarded with spam emails from them for a very long time. It took me months to get off their list!
-
Simply not Normalisation Cricket.Sounds like a massive pain in the arse. Good luck with it! I love this: self-obstifucating.
-
Beginning to lose interest to code for funThat's definitely true!
-
Is this a coding horror?It looks perfectly simple to me. I'd be very disappointed if a programmer couldn't understand it!
-
How do I generate a number divisable by 5, and check it?Is this a joke question? Generate a four digit number and add an extra number to the end, being either 5 or 0. Then don't check it because it will be correct!!! e.g. 4678; add 5 on the end to give 46785.
-
The Perfect LoopDon't mention that there's an error, just show him the code and ask him why he shouldn't be fired for being a total moron! If he is actually any good, he'll laugh about it and say, "Oh yeah, you're right, maybe you'll have to let me go!"
-
Advice for interviewing a technical managerJohn Simmons / outlaw programmer wrote:
I didn't expect the bloody Spanish Inquisition!
I'm a big MP fan. :)I've never met a programmer who wasn't, outlaw or otherwise.
-
c# Casting v As operatorI guess this wasn't a serious question, but just in case somebody who doesn't know looks in, I prefer b as it won't throw an exception if the conversion is not possible, but rather will return a null. According to MSDN[^] it's equivalent to this:
expression is type ? (type)expression : (type)null
butexpression
is only evaluated once. -
Visual studio 2011 in browser ;)It doesn't seem to work properly in Chrome. And there's NO WAY I'd develop code over the web on somebody else's server. Would you let all and sundry copy your projects off your dev machine? I wouldn't!
-
OuchAgreed. The fact that there's a video of thrusters on YouTube means it's not what I was thinking...
-
Reliable and affordable hosting companyHi John, I'm using Arvixe. I have a business ASP.NET account with them (similar to the one you're talking about, but with lower contention I guess and licensed for hosting client stuff). They are very good indeed. And you get SQL Express 2008. So you can have 4GB per database (or 10GB if it's the R2 version, which I think it is but I'm sorry, I can't remember and I can't check from work due to some corporate firewall stuff). I would absolutely recommend them and I don't even have an affiliate link to earn me anything by referring you.
-
why i cound't access apple's server with php curlI just tried that link and it doesn't go anywhere...
-
I hate technical books that try to sound young...This is a good answer.
-
Napping At Work [modified]Good luck if you ever have kids! I am in an awesome mood today because I actually got eight hours sleep last night. That's my longest ever sleep since my daughter was born last March!
-
Government IT HiringSuperb! Either the guys had a sense of humour, or they were hopelessly incompetent. If it was the former, then maybe you missed out on a cool gig; the latter and you had a lucky escape!