Click here to Skip to main content
15,891,749 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: The Laziness of LINQ Pin
Super Lloyd11-Aug-15 16:11
Super Lloyd11-Aug-15 16:11 
GeneralRe: The Laziness of LINQ Pin
Camilo Reyes11-Aug-15 16:37
professionalCamilo Reyes11-Aug-15 16:37 
GeneralRe: The Laziness of LINQ Pin
codejager13-Aug-15 23:07
codejager13-Aug-15 23:07 
GeneralRe: The Laziness of LINQ Pin
Steve Wellens11-Aug-15 18:10
Steve Wellens11-Aug-15 18:10 
GeneralRe: The Laziness of LINQ PinPopular
ImHere2Learn11-Aug-15 18:41
professionalImHere2Learn11-Aug-15 18:41 
GeneralRe: The Laziness of LINQ Pin
Dominic Burford11-Aug-15 21:32
professionalDominic Burford11-Aug-15 21:32 
GeneralRe: The Laziness of LINQ Pin
OriginalGriff11-Aug-15 22:09
mveOriginalGriff11-Aug-15 22:09 
GeneralRe: The Laziness of LINQ Pin
Rowdy Raider13-Aug-15 4:54
Rowdy Raider13-Aug-15 4:54 
The entire point of

var order = GetOrder(orderId);


is to be able to change the return type of your method, without having to track back through all the usages of that method and update all of that code as well.

That said this is the one usage of var where I get a little uncomfortable for the same reasons you said.

Generally speaking code using var as opposed to the actual type is easier to work on, less touch points while refactoring.
GeneralRe: The Laziness of LINQ Pin
codejager13-Aug-15 23:05
codejager13-Aug-15 23:05 
GeneralRe: The Laziness of LINQ Pin
PIEBALDconsult13-Aug-15 6:07
mvePIEBALDconsult13-Aug-15 6:07 
GeneralRe: The Laziness of LINQ Pin
Steve Wellens12-Aug-15 2:57
Steve Wellens12-Aug-15 2:57 
GeneralRe: The Laziness of LINQ Pin
Steven Melendez14-Aug-15 2:46
Steven Melendez14-Aug-15 2:46 
JokeRe: The Laziness of LINQ Pin
Agent__00711-Aug-15 18:46
professionalAgent__00711-Aug-15 18:46 
GeneralRe: The Laziness of LINQ Pin
ZurdoDev12-Aug-15 1:18
professionalZurdoDev12-Aug-15 1:18 
GeneralRe: The Laziness of LINQ Pin
V.11-Aug-15 20:06
professionalV.11-Aug-15 20:06 
QuestionRe: The Laziness of LINQ Pin
CPallini11-Aug-15 20:34
mveCPallini11-Aug-15 20:34 
GeneralRe: The Laziness of LINQ Pin
Kornfeld Eliyahu Peter11-Aug-15 21:14
professionalKornfeld Eliyahu Peter11-Aug-15 21:14 
JokeRe: The Laziness of LINQ Pin
Mycroft Holmes11-Aug-15 21:25
professionalMycroft Holmes11-Aug-15 21:25 
GeneralRe: The Laziness of LINQ Pin
Wastedtalent11-Aug-15 21:31
professionalWastedtalent11-Aug-15 21:31 
GeneralRe: The Laziness of LINQ Pin
Dominic Burford11-Aug-15 21:35
professionalDominic Burford11-Aug-15 21:35 
GeneralRe: The Laziness of LINQ Pin
Kornfeld Eliyahu Peter11-Aug-15 21:54
professionalKornfeld Eliyahu Peter11-Aug-15 21:54 
GeneralRe: The Laziness of LINQ Pin
Vark11112-Aug-15 9:10
Vark11112-Aug-15 9:10 
GeneralRe: The Laziness of LINQ Pin
maze312-Aug-15 22:28
professionalmaze312-Aug-15 22:28 
GeneralRe: The Laziness of LINQ Pin
Rob Philpott11-Aug-15 22:54
Rob Philpott11-Aug-15 22:54 
GeneralRe: The Laziness of LINQ Pin
Herbie Mountjoy13-Aug-15 4:53
professionalHerbie Mountjoy13-Aug-15 4:53 

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.