The Lounge is rated PG. If you're about to post something you wouldn't want your
kid sister to read then don't post it. No flame wars, no abusive conduct, no programming
questions and please don't post ads.
Ah, I see you have the machine that goes ping. This is my favorite. You see we lease it back from the company we sold it to and that way it comes under the monthly current budget and not the capital account.
I am a little wary of extension methods on 'Int32 because of compiler error #CS0023
<CS0023 Operator '-' cannot be applied to operand of type 'XXXXXX
caused by an attempt to use/call the method on a negative integer; while this can be worked around by putting the negative value in parens; I find that tedious.
var x = -100.SomeExtension(10); // will not compilevar y = (-100).SomeExtension(10); // will compilevar z = 100.SomeExtension(10); // will compile
I regret to say this same error occurs in VS 2017, using the latest FrameWork version.
I assume this is an operator execution precedence issue ?
I have not evaluated whether this error occurs with other numeric Types; I hypothesize it will.
«There is a spectrum, from "clearly desirable behaviour," to "possibly dodgy behavior that still makes some sense," to "clearly undesirable behavior." We try to make the latter into warnings or, better, errors. But stuff that is in the middle category you don’t want to restrict unless there is a clear way to work around it.» Eric Lippert, May 14, 2008
BTW: I am based in the UK...
I was recently asked by my company why I had not signed up to their "Hack-a-thon" day.
I was really peaved that someone would ask, and got a bit defensive (like us devs do).
They asked why. So I gave them following answer:
"I am a professional software developer, and don't think that stuff given the moniker 'hack' sits well with all I have tried to do in my (many years) of being a software developer."
Yes the romantic idea that a company can feed you pizza and beer, and probably get some tangible "product" that could be marketed strikes me as odd as me (or you) would never see any recognition of the "product" dreamed of (financial or kudos).
Some of the great "hacks"/ideas have happened in peoples "spare time" have resulted in multi-million companies (Facebook, Uber etc). Where would these be if they were given away on a "hack"?
If I was smart/imaginative enough to come up with an "industry changing" product, I would setup my own business and do it there. I would probably do the same if it just made my life easier (think "Hive").
I have a family which i really like more than (unpaid) work, so it's a bit of a no brainer/insult when I am asked (and looked down upon and decline) to spend 24 hours at work and still do my day job!
There is no other industry where the employees do "homework" or their work for pleasure, so why is this encouraged in software?
I had friends that are builders, plumbers, bin-men, train drivers, airplane technicians, shop workers and bankers (yup wide circle) - none of these are asked to perform their day job in their spare time for no reward - so what's the crack?
Are there any other industries that asks this of employees??
There is; but in our industry there is more competition. If you don't do as told, they'll hire someone who will. And there is always someone willing
Strange, but I never had that problem. Bosses always wanted to keep up that illusion, but at the same time they were begging on their knees for applicants to come to an interview. Actually, they were not so smart. They want only the best codemonkeys and at the same time they want them to easily replacable. Even someone with a hamster's brain must see how contradictory that is. But not them.
"I don't know, extraterrestrial?"
"You mean like from space?"
"No, from Canada."
If software development were a circus, we would all be the clowns.