Click here to Skip to main content
15,914,323 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: I hate "KISS" Pin
JimmyRopes1-Jun-14 16:10
professionalJimmyRopes1-Jun-14 16:10 
GeneralRe: I hate "KISS" Pin
Marc Clifton1-Jun-14 4:21
mvaMarc Clifton1-Jun-14 4:21 
GeneralRe: I hate "KISS" Pin
Super Lloyd1-Jun-14 4:22
Super Lloyd1-Jun-14 4:22 
GeneralRe: I hate "KISS" Pin
JimmyRopes1-Jun-14 4:44
professionalJimmyRopes1-Jun-14 4:44 
GeneralRe: I hate "KISS" Pin
Super Lloyd1-Jun-14 4:54
Super Lloyd1-Jun-14 4:54 
GeneralRe: I hate "KISS" Pin
SoMad1-Jun-14 10:56
professionalSoMad1-Jun-14 10:56 
GeneralRe: I hate "KISS" Pin
JimmyRopes1-Jun-14 16:08
professionalJimmyRopes1-Jun-14 16:08 
GeneralRe: I hate "KISS" PinPopular
newton.saber1-Jun-14 4:56
newton.saber1-Jun-14 4:56 
Allow me to explain, THE PERCEPTION PROBLEM, which has to do with the SIZE OF A PROJECT.

Back around 2000 - 2001 I worked with 3 other programmers who were Visual Basic 4.x,5.x,6.x devs.
VB didn't support true OOP principles.
Well, along came ASP.NET and we had a project which required a navbar which would allow the user to nav back and forth through the numerous forms so a user could enter his/her data in a structured way. This nav bar would also have the ability to put the form into edit mode -- when the user first viewed it the page was in read-only mode.

Roots of the Perception Problem
At first the project was small and the user was only going to have to navigate about 4 pages.
So those VB Devs said, okay, we just generate some HTML which we copy/paste to the top of every page.
No big deal.
I said, "Terrible idea. it'll break and drive you crazy. ASP.Net lets you turn that navbar into a control so you can write the code one time.
"Uh, our way is easier," they said. "I mean, hey, we copy and then we paste."

I went ahead and implemented mhy navbar as a UserCtrl and placed it on the few pages I had to develop. It worked well and when there was a problem I went to the NavBar class files and fixed the code.

Scope Creep: The Monster
Meanwhile, the project grew -- major scope creep -- because the users wanted more forms.
Now those guys were copy/pasting to something like 30 pages.
The navigation had to know which page was next, so they had these hard-coded values which indicated the next page and if there was a next page and all that. So they are typing these values in to these pages.

The Deployment Explosion
They finally deployed the beta to the internal users and it blew up every time they clicked the navbar to set edit mode or go to the next page. It got lost in the form flow. Total failure and the internal users think our group is filled with idiots -- kind of was.

The Big Fix - One OOP Control
The Project Manager came back completely dejected. I said, "Hey, I can put my control on there and those pages will work in a couple of hours."
"Sure, right. Go ahead and try it," they said.
Ripped their confusing copy/paste navbar out, replaced it with the UserCtrl and tweaked a few things and it worked great.

Summary of Problem
They probably could've gotten away with copy/past development if it had only been three pages, but as soon as there were more pages it became expoenentially more difficult to fix their problems because they had to go to every aspx and edit the nav code on their page. Crazy. Insanity.

Mine took a bit more work up front, but then you could go to one place (UserCtrl) and enhance or fix it any time.
That is the power of true OOP. TRUE OOP with TRUE OOD.

The Difference Is In The Disciplines
It is interesting because those VB Devs learned to code by typing. Type, see if it works.
I believe in that method for learning, but for designing, it is a terrible way to create code. These guys were really just advanced scripters -- even though a couple of them had MS certs. Ugh!

I on the other hand, started out learning C++ and OOP. I always questioned what the point of OOP really is. Why OOP?
Why? Why would we do things that way? I can write 2 lines of code that do that thing. Why OOP? Why?
Large Projects
Because for larger projects things need to be organized and OOD/OOP are really a way of organizing things so that when they get so complex that you can still manage them.
GeneralRe: I hate "KISS" Pin
JimmyRopes1-Jun-14 6:02
professionalJimmyRopes1-Jun-14 6:02 
GeneralRe: I hate "KISS" Pin
newton.saber1-Jun-14 6:08
newton.saber1-Jun-14 6:08 
GeneralRe: I hate "KISS" Pin
Casey Sheridan1-Jun-14 7:42
professionalCasey Sheridan1-Jun-14 7:42 
GeneralI like kissing, but I digress. Pin
Maximilien1-Jun-14 5:12
Maximilien1-Jun-14 5:12 
GeneralRe: I hate "KISS" Pin
PIEBALDconsult1-Jun-14 6:31
mvePIEBALDconsult1-Jun-14 6:31 
GeneralRe: I hate "KISS" Pin
phil.o1-Jun-14 8:33
professionalphil.o1-Jun-14 8:33 
GeneralRe: I hate "KISS" Pin
_Maxxx_1-Jun-14 14:40
professional_Maxxx_1-Jun-14 14:40 
GeneralRe: I hate "KISS" Pin
Super Lloyd1-Jun-14 17:11
Super Lloyd1-Jun-14 17:11 
GeneralRe: I hate "KISS" Pin
Andy Brummer1-Jun-14 15:51
sitebuilderAndy Brummer1-Jun-14 15:51 
GeneralRe: I hate "KISS" Pin
Super Lloyd1-Jun-14 17:23
Super Lloyd1-Jun-14 17:23 
GeneralRe: I hate "KISS" Pin
Andy Brummer2-Jun-14 5:30
sitebuilderAndy Brummer2-Jun-14 5:30 
GeneralRe: I hate "KISS" Pin
Mark_Wallace1-Jun-14 18:56
Mark_Wallace1-Jun-14 18:56 
GeneralRe: I hate "KISS" Pin
Super Lloyd1-Jun-14 19:12
Super Lloyd1-Jun-14 19:12 
GeneralRe: I hate "KISS" Pin
Leo Muller Rap1-Jun-14 19:48
Leo Muller Rap1-Jun-14 19:48 
GeneralRe: I hate "KISS" Pin
Marc-Anthony Taylor1-Jun-14 19:49
Marc-Anthony Taylor1-Jun-14 19:49 
JokeRe: I hate "KISS" Pin
Jonas Hammarberg1-Jun-14 20:32
professionalJonas Hammarberg1-Jun-14 20:32 
GeneralRe: I hate "KISS" Pin
Plamen Dragiyski1-Jun-14 21:08
professionalPlamen Dragiyski1-Jun-14 21:08 

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.