Click here to Skip to main content
14,210,100 members

Welcome to the Lounge

   

For discussing anything related to a software developer's life. Technical discussions are encouraged, but click here to ask your programming questions.

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.
 
GeneralRe: Programmers that think they're smart Pin
Richard MacCutchan11-Feb-19 2:43
protectorRichard MacCutchan11-Feb-19 2:43 
GeneralRe: Programmers that think they're smart Pin
#realJSOP9-Feb-19 5:47
mve#realJSOP9-Feb-19 5:47 
GeneralRe: Programmers that think they're smart Pin
OriginalGriff9-Feb-19 6:01
protectorOriginalGriff9-Feb-19 6:01 
GeneralRe: Programmers that think they're smart Pin
GuyThiebaut9-Feb-19 6:45
professionalGuyThiebaut9-Feb-19 6:45 
GeneralRe: Programmers that think they're smart Pin
#realJSOP9-Feb-19 9:59
mve#realJSOP9-Feb-19 9:59 
GeneralRe: Programmers that think they're smart Pin
Mike Hankey9-Feb-19 11:21
professionalMike Hankey9-Feb-19 11:21 
GeneralRe: Programmers that think they're smart Pin
Tachyonx9-Feb-19 9:33
memberTachyonx9-Feb-19 9:33 
GeneralRe: Programmers that think they're smart Pin
F-ES Sitecore9-Feb-19 10:48
mveF-ES Sitecore9-Feb-19 10:48 
I hate code like that. I hate it more when I submit code for a code review and I'm told to do things like that. I quite like code like;

Product p = GetProduct(params);
return p;


I know that GetProduct returns a Product class and the code lets me debug to see what "p" is. Invariably someone who "knows better" will tell me to use "var" or more likely just "return GetProduct". The reason it annoys me so is that when it comes down to compiled code it makes no difference. Optimisers render the output the same.

I remember in one job the tech lead had a hard-on for defining constants in their own classes (nothing wrong with that) but declaring them as static strings. I said we should use constants instead, I then began to explain "Because the compiler...." and he cut me off there saying "I don't care what the compiler does, we shouldn't change our code due to the compiler." Ok....strings it is then.
GeneralRe: Programmers that think they're smart Pin
Member 916705710-Feb-19 21:05
memberMember 916705710-Feb-19 21:05 
GeneralRe: Programmers that think they're smart Pin
maze310-Feb-19 22:13
professionalmaze310-Feb-19 22:13 
GeneralRe: Programmers that think they're smart Pin
André Pereira10-Feb-19 23:18
memberAndré Pereira10-Feb-19 23:18 
GeneralRe: Programmers that think they're smart Pin
sickfile11-Feb-19 2:30
membersickfile11-Feb-19 2:30 
GeneralRe: Programmers that think they're smart Pin
André Pereira11-Feb-19 3:57
memberAndré Pereira11-Feb-19 3:57 
GeneralRe: Programmers that think they're smart Pin
englebart11-Feb-19 2:58
memberenglebart11-Feb-19 2:58 
GeneralRe: Programmers that think they're smart Pin
ormonds11-Feb-19 12:19
memberormonds11-Feb-19 12:19 
GeneralRe: Programmers that think they're smart Pin
James Lonero11-Feb-19 12:38
memberJames Lonero11-Feb-19 12:38 
GeneralUseless IoT item of the weekend Pin
OriginalGriff8-Feb-19 22:25
protectorOriginalGriff8-Feb-19 22:25 
GeneralRe: Useless IoT item of the weekend Pin
Mark_Wallace9-Feb-19 0:53
memberMark_Wallace9-Feb-19 0:53 
GeneralRe: Useless IoT item of the weekend Pin
Lopatir9-Feb-19 1:20
memberLopatir9-Feb-19 1:20 
GeneralRe: Useless IoT item of the weekend Pin
Mike Hankey9-Feb-19 1:41
professionalMike Hankey9-Feb-19 1:41 
GeneralRe: Useless IoT item of the weekend Pin
James Lonero11-Feb-19 12:41
memberJames Lonero11-Feb-19 12:41 
GeneralRe: Useless IoT item of the weekend Pin
Mike Hankey11-Feb-19 12:42
professionalMike Hankey11-Feb-19 12:42 
GeneralRe: Useless IoT item of the weekend Pin
Slacker0079-Feb-19 3:09
professionalSlacker0079-Feb-19 3:09 
GeneralRe: Useless IoT item of the weekend Pin
Sander Rossel9-Feb-19 3:10
professionalSander Rossel9-Feb-19 3:10 
GeneralRe: Useless IoT item of the weekend Pin
Richard Deeming11-Feb-19 2:19
mveRichard Deeming11-Feb-19 2:19 

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.


Advertise | Privacy | Cookies | Terms of Service
Web06 | 2.8.190617.3 | Last Updated 18 Jun 2019
Copyright © CodeProject, 1999-2019
All Rights Reserved.
Layout: fixed | fluid