Click here to Skip to main content

Welcome to the Lounge

   

For lazing about and discussing anything in a software developer's life that takes your fancy.
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 and please don't post ads.

Technical discussions are welcome, but if you need specific help please use the programming forums.


 
GeneralAPOD Pinpremiummark merrens4-Apr-14 4:53 
GeneralRe: APOD Pinmemberjeron14-Apr-14 4:58 
GeneralYaay! Pinmember d@nish 4-Apr-14 3:26 
GeneralRe: Yaay! PinmemberMotor Viper4-Apr-14 4:34 
GeneralRe: Yaay! Pinmember d@nish 4-Apr-14 5:15 
GeneralRe: Yaay! Pinpremium_Maxxx_4-Apr-14 12:31 
GeneralRe: Yaay! Pinmember d@nish 4-Apr-14 22:26 
GeneralSoft launch and lessons learned PinmemberEnnis 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, 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 PinprotectorOriginalGriff4-Apr-14 3:55 
GeneralRe: Soft launch and lessons learned PinpremiumPIEBALDconsult4-Apr-14 4:20 
Generalfeeling tired Pinprofessionalravikhoda4-Apr-14 3:09 
GeneralRe: feeling tired PinmvpRyanDev4-Apr-14 3:52 
GeneralRe: feeling tired PinpremiumRavi Bhavnani4-Apr-14 4:39 
GeneralRe: feeling tired PinprotectorMarco Bertschi4-Apr-14 3:58 
JokeRe: feeling tired PinprofessionalBassam Abdul-Baki4-Apr-14 4:08 
GeneralRe: feeling tired PinmemberBergholt Stuttley Johnson4-Apr-14 4:11 
JokeRe: feeling tired PinmemberManfred R. Bihy4-Apr-14 4:19 
GeneralRe: feeling tired PinprotectorMarco Bertschi4-Apr-14 4:20 
JokeRe: feeling tired PinmemberManfred R. Bihy4-Apr-14 4:26 
GeneralRe: feeling tired PinprotectorMarco Bertschi4-Apr-14 4:32 
GeneralRe: feeling tired PinmemberKamen Nik4-Apr-14 5:52 
GeneralRe: feeling tired PinmemberBergholt Stuttley Johnson4-Apr-14 4:22 
JokeRe: feeling tired PinprotectorMarco Bertschi4-Apr-14 4:21 
GeneralRe: feeling tired PinprofessionalBassam Abdul-Baki4-Apr-14 4:23 
GeneralRe: feeling tired Pinprofessionalravikhoda6-Apr-14 18:21 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    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 | Mobile
Web03 | 2.8.140721.1 | Last Updated 31 Jul 2014
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid