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

 
GeneralWhat the elephant happened to OO design? Pin
charlieg3-Jun-18 9:28
charlieg3-Jun-18 9:28 
GeneralRe: What the elephant happened to OO design? Pin
Daniel Pfeffer3-Jun-18 9:53
professionalDaniel Pfeffer3-Jun-18 9:53 
GeneralRe: What the elephant happened to OO design? Pin
charlieg3-Jun-18 9:59
charlieg3-Jun-18 9:59 
GeneralRe: What the elephant happened to OO design? Pin
Marc Clifton4-Jun-18 3:09
mvaMarc Clifton4-Jun-18 3:09 
GeneralRe: What the elephant happened to OO design? Pin
Daniel Pfeffer4-Jun-18 8:37
professionalDaniel Pfeffer4-Jun-18 8:37 
GeneralRe: What the elephant happened to OO design? Pin
abmv3-Jun-18 10:07
professionalabmv3-Jun-18 10:07 
GeneralRe: What the elephant happened to OO design? Pin
charlieg3-Jun-18 11:31
charlieg3-Jun-18 11:31 
GeneralRe: What the elephant happened to OO design? Pin
Sander Rossel3-Jun-18 10:47
professionalSander Rossel3-Jun-18 10:47 
charlieg wrote:
control c / control v must be banned
Couldn't agree more.
I once worked with a guy who copy/pasted everything and had no idea what it actually was he did.
He used someCollection.Where(x => x.MeetsCriteria()); every day for over a year.
Then I noticed he used bool any = c.Where(...).Count() > 0;
I told him to use someCollection.Any(...) instead because it's a lot cheaper and more readable.
However, he did not understand the types of the input parameters to Any(Expression<Func<T, bool>> predicate) or the even simpler Any(Func<T, bool> predicate).

Spoiler: Where and Any have the exact same input parameter.

He literally told me "I know I type 'Where' and then some letter, whatever that is, and then '=>' and then I can magically use properties on the objects of a collection. I didn't know it was the same for Any, I never knew the parameter type." OMG | :OMG: WTF | :WTF: Unsure | :~ Dead | X|

Since then I've told that guy NEVER to copy/paste again, it's a right that needs to be deserved and he clearly didn't deserve it Dead | X|
Of course he kept on copy/pasting because that was all he could...
A useful code monkey, he had his place, but he needed a lot of guidance.

GeneralRe: What the elephant happened to OO design? Pin
charlieg3-Jun-18 11:32
charlieg3-Jun-18 11:32 
GeneralRe: What the elephant happened to OO design? Pin
dan!sh 3-Jun-18 17:50
professional dan!sh 3-Jun-18 17:50 
GeneralRe: What the elephant happened to OO design? Pin
Sander Rossel3-Jun-18 20:18
professionalSander Rossel3-Jun-18 20:18 
GeneralRe: What the elephant happened to OO design? Pin
Eytukan3-Jun-18 19:03
Eytukan3-Jun-18 19:03 
GeneralRe: What the elephant happened to OO design? Pin
Sander Rossel3-Jun-18 20:22
professionalSander Rossel3-Jun-18 20:22 
GeneralRe: What the elephant happened to OO design? Pin
Eytukan6-Jun-18 20:14
Eytukan6-Jun-18 20:14 
GeneralRe: What the elephant happened to OO design? Pin
theokr4-Jun-18 21:13
theokr4-Jun-18 21:13 
GeneralRe: What the elephant happened to OO design? Pin
Sander Rossel6-Jun-18 8:42
professionalSander Rossel6-Jun-18 8:42 
GeneralRe: What the elephant happened to OO design? Pin
dan!sh 3-Jun-18 17:54
professional dan!sh 3-Jun-18 17:54 
GeneralRe: What the elephant happened to OO design? Pin
charlieg3-Jun-18 23:36
charlieg3-Jun-18 23:36 
GeneralRe: What the elephant happened to OO design? Pin
V.3-Jun-18 18:48
professionalV.3-Jun-18 18:48 
GeneralRe: What the elephant happened to OO design? Pin
den2k883-Jun-18 20:57
professionalden2k883-Jun-18 20:57 
GeneralRe: What the elephant happened to OO design? Pin
Rage3-Jun-18 21:22
professionalRage3-Jun-18 21:22 
GeneralRe: What the elephant happened to OO design? Pin
Nathan Minier4-Jun-18 1:18
professionalNathan Minier4-Jun-18 1:18 
GeneralRe: What the elephant happened to OO design? Pin
Munchies_Matt3-Jun-18 23:28
Munchies_Matt3-Jun-18 23:28 
GeneralRe: What the elephant happened to OO design? Pin
Chris C-B3-Jun-18 23:59
Chris C-B3-Jun-18 23:59 
GeneralRe: What the elephant happened to OO design? Pin
#realJSOP4-Jun-18 1:40
professional#realJSOP4-Jun-18 1:40 

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.