|
I prefer his approach and would call it DeltaOffset.
|
|
|
|
|
That changes the behaviour of the code.
int x = int.MinValue.MinDelta(-1);
int y = int.MinValue.AddIfNegative(-1);
"These people looked deep within my soul and assigned me a number based on the order in which I joined."
- Homer
|
|
|
|
|
You are off course right.
|
|
|
|
|
Frank. Call it Frank.
The language is JavaScript. that of Mordor, which I will not utter here
This is Javascript. If you put big wheels and a racing stripe on a golf cart, it's still a f***ing golf cart.
"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.
|
|
|
|
|
I'm Frank!
No, wait -- I'm Tiger Woods, aren't I?
Oh, no, I've got it: I'm Spartacus!
...
Brian?
I wanna be a eunuchs developer! Pass me a bread knife!
|
|
|
|
|
-D***Size
-Asians
-AlphaBetaGamma
-DeltaDelta
-MyFunction1
-Method
-AGreaterB
-Minimi
-IHaveNoIdeaHowToNameThisThing
just to hand you a couple ideas
Rules for the FOSW ![ ^]
if(this.signature != "")
{
MessageBox.Show("This is my signature: " + Environment.NewLine + signature);
}
else
{
MessageBox.Show("404-Signature not found");
}
|
|
|
|
|
HobbyProggy wrote: MyFunction1 That's gotta be the winner!
I wanna be a eunuchs developer! Pass me a bread knife!
|
|
|
|
|
HobbyProggy wrote: MyFunction1
This. Exactly this.
|
|
|
|
|
How could you not call it JustinBeiber?
Sin tack ear lol
Pressing the any key may be continuate
|
|
|
|
|
MinDelta->Fall / MaxDelta->Climb?
|
|
|
|
|
Mladen Janković wrote: MinDelta->Fall / MaxDelta->Climb?
Ooh, I like that!
Marc
|
|
|
|
|
Marc Clifton wrote: Suggestions? ..on a programming question in the lounge?
Bastard Programmer from Hell
If you can't read my code, try converting it here[^]
|
|
|
|
|
Has nobody suggested Shirley yet?
"These people looked deep within my soul and assigned me a number based on the order in which I joined."
- Homer
|
|
|
|
|
My
Bryian Tan
|
|
|
|
|
Without any Humor: Minimize
modified 19-Jan-21 21:04pm.
|
|
|
|
|
0x01AA wrote: Minimize
Ah, I think we have a winner!
Marc
|
|
|
|
|
Bruno
modified 19-Jan-21 21:04pm.
|
|
|
|
|
MinnieBannister
But then you'll have to find a place for a HenryCrun , and maybe an Eccles and a Bluebottle .
I wanna be a eunuchs developer! Pass me a bread knife!
|
|
|
|
|
Max - just to confuse everyone
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.
modified 31-Aug-21 21:01pm.
|
|
|
|
|
minifyoufeellikeit
Rules for playing Javascript frameworks.
1. You can't win.
2. You can't break even.
3. You can't get out of the game.
|
|
|
|
|
Keep it simple and traditional: DeltayMcDeltaface
|
|
|
|
|
Marc Clifton wrote: I know there's Math.Min, but I want a fluent implementation, so just go with it FMI, what's not fluent about Math.Min? Or is that a fancy way of saying you wan to be able to chain it?
Jeremy Falcon
|
|
|
|
|
Hi, Marc,
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);
var y = (-100).SomeExtension(10);
var z = 100.SomeExtension(10); 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.
cheers, Bill
«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
modified 15-Feb-17 11:56am.
|
|
|
|
|
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??
|
|
|
|
|
richp669 wrote: There is no other industry where the employees do "homework" or their work for pleasure, so why is this encouraged in software? 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
richp669 wrote: Are there any other industries that asks this of employees?? It is not the fault of the industry; what kind of idiot employee would agree to work for nothing? Anyone who accepts the deal has earned it, and deserves it completely.
Bastard Programmer from Hell
If you can't read my code, try converting it here[^]
|
|
|
|