Click here to Skip to main content
14,361,180 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: A Programming Philosophy Question Pin
Amarnath S31-Aug-19 16:21
professionalAmarnath S31-Aug-19 16:21 
GeneralRe: A Programming Philosophy Question Pin
KateAshman1-Sep-19 23:21
memberKateAshman1-Sep-19 23:21 
GeneralRe: A Programming Philosophy Question Pin
obermd2-Sep-19 6:42
memberobermd2-Sep-19 6:42 
GeneralRe: A Programming Philosophy Question Pin
Gary Wheeler3-Sep-19 2:17
memberGary Wheeler3-Sep-19 2:17 
GeneralRe: A Programming Philosophy Question Pin
honey the codewitch31-Aug-19 18:45
memberhoney the codewitch31-Aug-19 18:45 
GeneralRe: A Programming Philosophy Question Pin
Grober_1-Sep-19 0:02
memberGrober_1-Sep-19 0:02 
GeneralRe: A Programming Philosophy Question Pin
Chris Losinger1-Sep-19 4:34
professionalChris Losinger1-Sep-19 4:34 
GeneralRe: A Programming Philosophy Question Pin
KateAshman1-Sep-19 22:39
memberKateAshman1-Sep-19 22:39 
Because even though OO design was considered the norm for C++, it still had clearly defined use cases, and STL algorithms were never considered one of them.

I could get theoretical about it, but just stating the practical difference is easier:
- OO design is for helping humans to deal with abstract concepts.
- Functional design is for writing fast algorithms with low coupling.

Basically, STL containers are OO because it makes sense to modify, expand and build on top of them.
STL algorithms are functional, because they perform time-critical individual tasks and you're not encouraged to mess with them.

All in all, it's proper design, because you shouldn't use OO design for algorithms.
GeneralRe: A Programming Philosophy Question Pin
Richard Andrew x642-Sep-19 5:07
professionalRichard Andrew x642-Sep-19 5:07 
GeneralRe: A Programming Philosophy Question Pin
NotJosh2-Sep-19 20:18
memberNotJosh2-Sep-19 20:18 
GeneralHappy coding. Pin
honey the codewitch31-Aug-19 13:28
memberhoney the codewitch31-Aug-19 13:28 
GeneralSeems about right Pin
Jörgen Andersson31-Aug-19 10:54
protectorJörgen Andersson31-Aug-19 10:54 
GeneralRe: Seems about right Pin
OriginalGriff31-Aug-19 20:49
protectorOriginalGriff31-Aug-19 20:49 
GeneralRe: Seems about right Pin
Jörgen Andersson31-Aug-19 22:42
protectorJörgen Andersson31-Aug-19 22:42 
GeneralRe: Seems about right Pin
OriginalGriff31-Aug-19 22:57
protectorOriginalGriff31-Aug-19 22:57 
GeneralRe: Seems about right Pin
Jörgen Andersson31-Aug-19 23:13
protectorJörgen Andersson31-Aug-19 23:13 
GeneralRe: Seems about right Pin
OriginalGriff31-Aug-19 23:42
protectorOriginalGriff31-Aug-19 23:42 
GeneralRe: Seems about right Pin
Sander Rossel1-Sep-19 0:01
professionalSander Rossel1-Sep-19 0:01 
GeneralRe: Seems about right Pin
Gary Wheeler3-Sep-19 2:20
memberGary Wheeler3-Sep-19 2:20 
GeneralPhoto's - Remembering the battle of the Scheldt Pin
RickZeeland31-Aug-19 3:11
mveRickZeeland31-Aug-19 3:11 
GeneralRe: Photo's - Remembering the battle of the Scheldt Pin
Richard MacCutchan31-Aug-19 5:57
protectorRichard MacCutchan31-Aug-19 5:57 
GeneralAdobe got it right... Pin
Sander Rossel31-Aug-19 1:50
professionalSander Rossel31-Aug-19 1:50 
GeneralRe: Adobe got it right... Pin
Ron Anders31-Aug-19 3:31
memberRon Anders31-Aug-19 3:31 
GeneralRe: Adobe got it right... Pin
Mike Hankey31-Aug-19 5:50
professionalMike Hankey31-Aug-19 5:50 
GeneralRe: Adobe got it right... Pin
dandy7231-Aug-19 8:26
memberdandy7231-Aug-19 8:26 

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.