|
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. 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
|
|
|
|
|
No, but I was once the younger guy who had to correct/remove the use of a float that an old-timer hacked into some existing code -- because $1.14 != $1.15 .
modified 22-Jun-16 19:53pm.
|
|
|
|
|
Oh sh*t - I had this argument 2 days ago with a quite competent dev, he is advocating the use of float in financial processes.
Never underestimate the power of human stupidity
RAH
|
|
|
|
|
|
I should point out that my anecdote was in the late 90s with ANSI C.
|
|
|
|
|
For eons and eons even back to the steam locomotive and buggies you can bet.
We just keep makin' more too, don't we?
|
|
|
|
|
My take on this:
- doesn't seem like he's the sharpest knife in the drawer (no initiative to do one's research before opening one's cake hole)
- hopefully he learned something
- future off the cuff questions from abovementioned young 'un can probably be ignored
/ravi
|
|
|
|
|
I have no this from my co-workers (we all are old and grumpy), but definitely have from customers IT and 3rd party...a lot...
Skipper: We'll fix it.
Alex: Fix it? How you gonna fix this?
Skipper: Grit, spit and a whole lotta duct tape.
|
|
|
|
|
Here, *I* am the arrogant guy who questions things *that have been done like this for years*. This sometimes lead to the situation you described, because I sometimes question things I have no knowledge about. From my experience, even if it is only useful once out of ten times, it is useful anyway, so I won't give up
|
|
|
|
|
Rage wrote: Here, *I* am the arrogant guy who questions things
Asking questions does not make you arrogant - questions are required to learn and to absorb wisdom from others (isn't that an aim of sites like CP and SO?). It is only arrogant to tell people who have been doing the job for years that their way is wrong before listening to their reasons. Sometimes, even seemingly silly questions make the 'experts' rethink and re-evaluate; they can learn by reappraising their assumptions. So, please keep on asking questions (and when it is your turn in the future for others to ask you questions, treat them with more respect that you are getting from your 'betters' now).
|
|
|
|
|
If we are honest, we must say we used to be the same, right? How can anybody get old in this job without the confidence that you know it all and can do everything?
And now give him a kick, plus one from me as well. After all we have forgotten more about this than he ever knew.
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.
|
|
|
|
|
Marc Clifton wrote: Does anyone else have to deal with arrogant newcomers that think they know everything?
Every parent to a teenage boy...
And 1 in 5 question setters in QA, too...
Bad command or file name. Bad, bad command! Sit! Stay! Staaaay...
|
|
|
|
|
Marc Clifton wrote: Does anyone else have to deal with arrogant newcomers that think they know everything? Regularly. I have a denim jacket that I bought from new, that's older than some of the people I regularly deal with professionally.
The beauty of having reached a certain age is I now know how little I know. It's very liberating.
This space for rent
|
|
|
|
|
Marc Clifton wrote: Does anyone else have to deal with arrogant newcomers that think they know everything? I AM that arrogant youngin' (after almost six years I wouldn't say "newcomer") who thinks he knows everything
There's a difference between me and all those other arrogant youngin's though, I DO actually know everything!
|
|
|
|
|
Sander Rossel wrote: There's a difference between me and all those other arrogant youngin's though, I DO actually know everything!
"There are two ways of constructing a software design: One way is to make it so simple that there are obviously no deficiencies, and the other way is to make it so complicated that there are no obvious deficiencies. The first method is far more difficult." - C.A.R. Hoare
Home | LinkedIn | Google+ | Twitter
|
|
|
|
|
modified 19-Nov-21 21:01pm.
|
|
|
|
|
Yes, just head over to QA.
|
|
|
|
|
I don't think age comes into it. From what you wrote it looked like the chap was genuinely trying to be helpful. Being younger and less experienced doesn't automatically mean they are wrong. Remember, we were all young developers at one time. I learn new stuff all the time from working with younger devs, and they learn from me as I'm older and wiser. Everyone's a winner
"There are two ways of constructing a software design: One way is to make it so simple that there are obviously no deficiencies, and the other way is to make it so complicated that there are no obvious deficiencies. The first method is far more difficult." - C.A.R. Hoare
Home | LinkedIn | Google+ | Twitter
|
|
|
|
|
Dominic Burford wrote: From what you wrote it looked like the chap was genuinely trying to be helpful.
From prior encounters, it's a bit more like he's trying to assert his authority and impress others.
Marc
|
|
|
|
|
...don't forget to vote on Friday 24th June as it's very important.
|
|
|
|
|
I'm voting to leave on Friday... leave office and go home
The world will still keep spinning after Brexit, Grexit, Frexit, Gexit...
Kitty at my foot and I waAAAant to touch it...
|
|
|
|
|
I took a day off tomorrow and if everything goes well some cows may be irritated by a buzzing noise over their heads.
And please, no Gexit. I like visiting my neighbors too much and don't want to eventually revive the old habit of shooting at them.
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.
|
|
|
|
|
Then we will have to ally with you guys and then betray you for the US-UK axis... come on, it gets boring after a while!
GCS d--- s-/++ a- C++++ U+++ P- L- E-- W++ N++ o+ K- w+++ O? M-- V? PS+ PE- Y+ PGP t++ 5? X R++ tv-- b+ DI+++ D++ G e++>+++ h--- ++>+++ y+++* Weapons extension: ma- k++ F+2 X
If you think 'goto' is evil, try writing an Assembly program without JMP. -- TNCaver
When I was six, there were no ones and zeroes - only zeroes. And not all of them worked. -- Ravi Bhavnani
|
|
|
|
|
I've been hanging around Code Project for years, but I have never gotten involved in any discussions nor have I written any articles. My official title at the moment is "Lurker".
I got burned years ago on Planet Source Code submitting articles, so I've been quite sheepish posting anything here; however, I just had to write this post to express my gratitude for all of the hard work the moderators put in to make sure Code Project a quality site. I was "lurking" around all of the forums reading all of the interesting conversations and realized just how much work that has gone into this site.
From a fellow developer, I say thank you for a great site! Even though I don't post, I do feel like a part of the community.
Life is but a dream, so don't wake me!
modified 19-Nov-21 21:01pm.
|
|
|
|
|
Thank YOU. More than the servers, the hamsters, the staff, and the Maunder-machine we fill with coffee and force to work through the night, what makes CodeProject what it is is YOU, the community. You're an integral part of that and we thank you for your dedication.
(and if you ever want to post an article in a burn-free environment, please feel free to send me and email. I'll take a look at your initial idea and drafts, offer you resources, and can even send you to the small group of kindly Mentors to help your article to completion. or you can continue to lurk as long as you like, we're very happy to have you)
Thanks,
Sean Ewington
CodeProject
|
|
|
|