Click here to Skip to main content
15,914,943 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: Programmers that think they're smart Pin
Richard MacCutchan11-Feb-19 2:43
mveRichard MacCutchan11-Feb-19 2:43 
GeneralRe: Programmers that think they're smart Pin
#realJSOP9-Feb-19 5:47
professional#realJSOP9-Feb-19 5:47 
GeneralRe: Programmers that think they're smart PinPopular
OriginalGriff9-Feb-19 6:01
mveOriginalGriff9-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
professional#realJSOP9-Feb-19 9:59 
GeneralRe: Programmers that think they're smart Pin
Mike Hankey9-Feb-19 11:21
mveMike Hankey9-Feb-19 11:21 
GeneralRe: Programmers that think they're smart Pin
peterkmx9-Feb-19 9:33
professionalpeterkmx9-Feb-19 9:33 
GeneralRe: Programmers that think they're smart Pin
F-ES Sitecore9-Feb-19 10:48
professionalF-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
Member 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
André Pereira10-Feb-19 23:18 
GeneralRe: Programmers that think they're smart Pin
Martin ISDN11-Feb-19 2:30
Martin ISDN11-Feb-19 2:30 
GeneralRe: Programmers that think they're smart Pin
André Pereira11-Feb-19 3:57
André Pereira11-Feb-19 3:57 
GeneralRe: Programmers that think they're smart Pin
englebart11-Feb-19 2:58
professionalenglebart11-Feb-19 2:58 
GeneralRe: Programmers that think they're smart Pin
ormonds11-Feb-19 12:19
ormonds11-Feb-19 12:19 
GeneralRe: Programmers that think they're smart Pin
James Lonero11-Feb-19 12:38
James Lonero11-Feb-19 12:38 
GeneralUseless IoT item of the weekend Pin
OriginalGriff8-Feb-19 22:25
mveOriginalGriff8-Feb-19 22:25 
GeneralRe: Useless IoT item of the weekend Pin
Mark_Wallace9-Feb-19 0:53
Mark_Wallace9-Feb-19 0:53 
GeneralRe: Useless IoT item of the weekend Pin
lopatir9-Feb-19 1:20
lopatir9-Feb-19 1:20 
GeneralRe: Useless IoT item of the weekend Pin
Mike Hankey9-Feb-19 1:41
mveMike Hankey9-Feb-19 1:41 
GeneralRe: Useless IoT item of the weekend Pin
James Lonero11-Feb-19 12:41
James Lonero11-Feb-19 12:41 
GeneralRe: Useless IoT item of the weekend Pin
Mike Hankey11-Feb-19 12:42
mveMike 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.