Click here to Skip to main content
15,915,603 members

Welcome to the Lounge

   

For discussing anything related to a software developer's life but is not for programming questions. Got a programming question?

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.

 
GeneralRe: Brexit Pin
Richard MacCutchan23-Jun-16 0:18
mveRichard MacCutchan23-Jun-16 0:18 
GeneralRe: Brexit Pin
PeejayAdams23-Jun-16 0:45
PeejayAdams23-Jun-16 0:45 
GeneralRe: Brexit Pin
908236523-Jun-16 1:37
908236523-Jun-16 1:37 
GeneralRe: Brexit Pin
PeejayAdams23-Jun-16 1:58
PeejayAdams23-Jun-16 1:58 
GeneralRe: Brexit Pin
Power Puff Boy22-Jun-16 20:53
Power Puff Boy22-Jun-16 20:53 
GeneralRe: Brexit Pin
HobbyProggy22-Jun-16 20:56
professionalHobbyProggy22-Jun-16 20:56 
GeneralRe: Brexit Pin
908236523-Jun-16 1:40
908236523-Jun-16 1:40 
RantArrogant youngin's Pin
Marc Clifton22-Jun-16 13:23
mvaMarc Clifton22-Jun-16 13:23 
So, at this company, I posted an example of some code on Slack:

string amt = (val.to_d() / 100.0m).ToString();

Because the question was, does the raw data need to be divided by 100 (it's a $ value). I poked around in some old code and sure enough, there's the above, and even a comment indicating so.

So, I get this response from the new kid:


Marc, Just saying, but dividing by decimals in javascript is not guaranteed to give us the correct amount, so I'd suggest converting the value into pennies and dealing with those on our end.


WTF? Does that look like Javashyte?

So then I point out it's C# code, and decimal is a high precision type designed for currency. I get this:


oh my bad. not sure about C#. but I know it's not too uncommon to do what I suggested


You're "not sure about C#" ??? I just TOLD YOU, you arrogant little prick.

So I post a link to the MSDN page on decimal along with the precision specs, and I get back:


I was under the impression inaccuracy could theoretically happen in any x86 environment


Yeah, I suppose, theoretically. Roll eyes | :rolleyes: Maybe he's referring to that CPU bug years ago, but he's too young for that.

Does anyone else have to deal with arrogant newcomers that think they know everything?

Marc
Imperative to Functional Programming Succinctly

Contributors Wanted for Higher Order Programming Project!

Learning to code with python is like learning to swim with those little arm floaties. It gives you undeserved confidence and will eventually drown you. - DangerBunny

GeneralRe: Arrogant youngin's Pin
PIEBALDconsult22-Jun-16 13:32
mvePIEBALDconsult22-Jun-16 13:32 
GeneralRe: Arrogant youngin's Pin
Mycroft Holmes22-Jun-16 14:32
professionalMycroft Holmes22-Jun-16 14:32 
GeneralRe: Arrogant youngin's Pin
Super Lloyd22-Jun-16 17:09
Super Lloyd22-Jun-16 17:09 
GeneralRe: Arrogant youngin's Pin
PIEBALDconsult22-Jun-16 18:47
mvePIEBALDconsult22-Jun-16 18:47 
GeneralRe: Arrogant youngin's Pin
Ron Anders22-Jun-16 13:56
Ron Anders22-Jun-16 13:56 
GeneralRe: Arrogant youngin's Pin
Ravi Bhavnani22-Jun-16 14:22
professionalRavi Bhavnani22-Jun-16 14:22 
GeneralRe: Arrogant youngin's Pin
Kornfeld Eliyahu Peter22-Jun-16 18:50
professionalKornfeld Eliyahu Peter22-Jun-16 18:50 
GeneralRe: Arrogant youngin's Pin
Rage22-Jun-16 20:25
professionalRage22-Jun-16 20:25 
GeneralRe: Arrogant youngin's Pin
jsc4222-Jun-16 21:27
professionaljsc4222-Jun-16 21:27 
GeneralRe: Arrogant youngin's Pin
CDP180222-Jun-16 20:56
CDP180222-Jun-16 20:56 
GeneralRe: Arrogant youngin's Pin
OriginalGriff22-Jun-16 21:05
mveOriginalGriff22-Jun-16 21:05 
GeneralRe: Arrogant youngin's Pin
Pete O'Hanlon22-Jun-16 21:21
mvePete O'Hanlon22-Jun-16 21:21 
GeneralRe: Arrogant youngin's Pin
Sander Rossel22-Jun-16 21:31
professionalSander Rossel22-Jun-16 21:31 
GeneralRe: Arrogant youngin's Pin
Dominic Burford23-Jun-16 8:29
professionalDominic Burford23-Jun-16 8:29 
GeneralRe: Arrogant youngin's Pin
User 991608023-Jun-16 10:00
professionalUser 991608023-Jun-16 10:00 
GeneralRe: Arrogant youngin's Pin
Richard MacCutchan22-Jun-16 22:23
mveRichard MacCutchan22-Jun-16 22:23 
GeneralRe: Arrogant youngin's Pin
Dominic Burford23-Jun-16 2:44
professionalDominic Burford23-Jun-16 2:44 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.