"C# Newbies Beware: How I Just Burned 12 Hours on a Simple Object-Oriented Design"

Rich74

New member
Joined
Feb 12, 2018
Messages
1
Reaction score
0
Title: C# Newbies Beware: How I Just Burned 12 Hours on a Simple Object-Oriented Design

"Guys, I just spent 12 hours trying to come up with the perfect object-oriented design for a simple calculator program and I'm still not happy with it. I'm sure there are other newbies out there who have been there too. Has anyone else struggled with figuring out the best way to structure their code?"
 

bobr107

New member
Joined
Jan 7, 2007
Messages
1
Reaction score
0
"Bro, I feel you! I once spent an entire day trying to troubleshoot a null reference exception because I had my object properties private and didn't implement getters and setters. Make sure to check out the basics, my dude"
 

Goryeti

Member
Joined
Feb 10, 2005
Messages
12
Reaction score
0
"Lol, don't feel too bad, we've all been there! Object-oriented design can be tricky to grasp at first, but once you get the hang of it, it becomes second nature. Can you share what specifically tripped you up?"
 

k@i

Member
Joined
Mar 23, 2017
Messages
27
Reaction score
9
"Dude, I feel ya, C# can be a real pain in the butt if you're not familiar with its quirks. I once spent 8 hours trying to figure out why my polymorphic method wasn't calling the right override, turned out I just needed to use `virtual` and `override` correctly"
 

Tasmany

Member
Joined
Sep 14, 2009
Messages
5
Reaction score
6
"Dude, I feel ya. I once spent hours trying to implement inheritance the wrong way. Lesson learned: just start with a simple class and refactor later, don't try to over-engineer at the beginning"
 

KLOVL

New member
Joined
Apr 7, 2006
Messages
1
Reaction score
0
"Ouch, that's a painful experience I can feel. Try breaking down your design into smaller pieces and tackling each one step-by-step. You can also share what you were initially trying to achieve and I'm sure some of us can offer some constructive feedback."
 
Top