Click here to Skip to main content
15,892,517 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.

 
GeneralAPOD Pin
R. Giskard Reventlov4-Apr-14 4:53
R. Giskard Reventlov4-Apr-14 4:53 
GeneralRe: APOD Pin
jeron14-Apr-14 4:58
jeron14-Apr-14 4:58 
GeneralYaay! Pin
dan!sh 4-Apr-14 3:26
professional dan!sh 4-Apr-14 3:26 
GeneralRe: Yaay! Pin
Motor Viper4-Apr-14 4:34
professionalMotor Viper4-Apr-14 4:34 
GeneralRe: Yaay! Pin
dan!sh 4-Apr-14 5:15
professional dan!sh 4-Apr-14 5:15 
GeneralRe: Yaay! Pin
_Maxxx_4-Apr-14 12:31
professional_Maxxx_4-Apr-14 12:31 
GeneralRe: Yaay! Pin
dan!sh 4-Apr-14 22:26
professional dan!sh 4-Apr-14 22:26 
GeneralSoft launch and lessons learned Pin
Ennis Ray Lynch, Jr.4-Apr-14 3:19
Ennis Ray Lynch, Jr.4-Apr-14 3:19 
A week or two ago I posted a query about which was best, LoadFooById(Int64) or LoadFoo(SomeParentObject). Really it was more just a passing question because I had read it on the Internet as someone ranting against the later suggesting that the former is the better approach. Well, I tend to do both depending on the when's and the where's and well, last night, at a soft product launch, LoadFooById bit me hard.

I needed to convert a three part string into the respective Id values. So I returned Tuple<int, int,="" int="">, what could go wrong with that! Obviously, we all know. Yes, the other solution is a simple version with Just id values
public FooResult{
    OrderId
    CustomerId
    AsteroidId
}

But, the misses the validation which is equally important so I fully hydrated objects.

Its funny, with years of experience, you take short-cuts on personal projects, and they always bite you just like they did when you were just out of college!

BTW, I had to refund three customers for their asteroids so this mistake actually had a financial impact.

And if anyone mentions that I should have a unit test in place, well, um, *&#* you : ) [can a kid sister read gibberish]
Need custom software developed? I do custom programming based primarily on MS tools with an emphasis on C# development and consulting.

"And they, since they Were not the one dead, turned to their affairs" -- Robert Frost

"All users always want Excel" --Ennis Lynch

GeneralRe: Soft launch and lessons learned Pin
OriginalGriff4-Apr-14 3:55
mveOriginalGriff4-Apr-14 3:55 
GeneralRe: Soft launch and lessons learned Pin
PIEBALDconsult4-Apr-14 4:20
mvePIEBALDconsult4-Apr-14 4:20 
Generalfeeling tired Pin
ravikhoda4-Apr-14 3:09
professionalravikhoda4-Apr-14 3:09 
GeneralRe: feeling tired Pin
ZurdoDev4-Apr-14 3:52
professionalZurdoDev4-Apr-14 3:52 
GeneralRe: feeling tired Pin
Ravi Bhavnani4-Apr-14 4:39
professionalRavi Bhavnani4-Apr-14 4:39 
GeneralRe: feeling tired Pin
Marco Bertschi4-Apr-14 3:58
protectorMarco Bertschi4-Apr-14 3:58 
JokeRe: feeling tired Pin
Bassam Abdul-Baki4-Apr-14 4:08
professionalBassam Abdul-Baki4-Apr-14 4:08 
GeneralRe: feeling tired Pin
Bergholt Stuttley Johnson4-Apr-14 4:11
professionalBergholt Stuttley Johnson4-Apr-14 4:11 
JokeRe: feeling tired Pin
Manfred Rudolf Bihy4-Apr-14 4:19
professionalManfred Rudolf Bihy4-Apr-14 4:19 
GeneralRe: feeling tired Pin
Marco Bertschi4-Apr-14 4:20
protectorMarco Bertschi4-Apr-14 4:20 
JokeRe: feeling tired Pin
Manfred Rudolf Bihy4-Apr-14 4:26
professionalManfred Rudolf Bihy4-Apr-14 4:26 
GeneralRe: feeling tired Pin
Marco Bertschi4-Apr-14 4:32
protectorMarco Bertschi4-Apr-14 4:32 
GeneralRe: feeling tired Pin
User 48350474-Apr-14 5:52
User 48350474-Apr-14 5:52 
GeneralRe: feeling tired Pin
Bergholt Stuttley Johnson4-Apr-14 4:22
professionalBergholt Stuttley Johnson4-Apr-14 4:22 
JokeRe: feeling tired Pin
Marco Bertschi4-Apr-14 4:21
protectorMarco Bertschi4-Apr-14 4:21 
GeneralRe: feeling tired Pin
Bassam Abdul-Baki4-Apr-14 4:23
professionalBassam Abdul-Baki4-Apr-14 4:23 
GeneralRe: feeling tired Pin
ravikhoda6-Apr-14 18:21
professionalravikhoda6-Apr-14 18:21 

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.