Click here to Skip to main content
15,894,646 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 15:21
professionalAmarnath S31-Aug-19 15:21 
GeneralRe: A Programming Philosophy Question Pin
KateAshman1-Sep-19 22:21
KateAshman1-Sep-19 22:21 
GeneralRe: A Programming Philosophy Question Pin
obermd2-Sep-19 5:42
obermd2-Sep-19 5:42 
GeneralRe: A Programming Philosophy Question Pin
Gary Wheeler3-Sep-19 1:17
Gary Wheeler3-Sep-19 1:17 
GeneralRe: A Programming Philosophy Question Pin
honey the codewitch31-Aug-19 17:45
mvahoney the codewitch31-Aug-19 17:45 
GeneralRe: A Programming Philosophy Question Pin
User 26235231-Aug-19 23:02
User 26235231-Aug-19 23:02 
GeneralRe: A Programming Philosophy Question Pin
Chris Losinger1-Sep-19 3:34
professionalChris Losinger1-Sep-19 3:34 
GeneralRe: A Programming Philosophy Question Pin
KateAshman1-Sep-19 21:39
KateAshman1-Sep-19 21: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 4:07
professionalRichard Andrew x642-Sep-19 4:07 
GeneralRe: A Programming Philosophy Question Pin
User 5838522-Sep-19 19:18
User 5838522-Sep-19 19:18 
GeneralHappy coding. Pin
honey the codewitch31-Aug-19 12:28
mvahoney the codewitch31-Aug-19 12:28 
GeneralSeems about right Pin
Jörgen Andersson31-Aug-19 9:54
professionalJörgen Andersson31-Aug-19 9:54 
GeneralRe: Seems about right Pin
OriginalGriff31-Aug-19 19:49
mveOriginalGriff31-Aug-19 19:49 
GeneralRe: Seems about right Pin
Jörgen Andersson31-Aug-19 21:42
professionalJörgen Andersson31-Aug-19 21:42 
GeneralRe: Seems about right Pin
OriginalGriff31-Aug-19 21:57
mveOriginalGriff31-Aug-19 21:57 
GeneralRe: Seems about right Pin
Jörgen Andersson31-Aug-19 22:13
professionalJörgen Andersson31-Aug-19 22:13 
GeneralRe: Seems about right Pin
OriginalGriff31-Aug-19 22:42
mveOriginalGriff31-Aug-19 22:42 
GeneralRe: Seems about right Pin
Sander Rossel31-Aug-19 23:01
professionalSander Rossel31-Aug-19 23:01 
GeneralRe: Seems about right Pin
Gary Wheeler3-Sep-19 1:20
Gary Wheeler3-Sep-19 1:20 
GeneralPhoto's - Remembering the battle of the Scheldt Pin
RickZeeland31-Aug-19 2:11
mveRickZeeland31-Aug-19 2:11 
GeneralRe: Photo's - Remembering the battle of the Scheldt Pin
Richard MacCutchan31-Aug-19 4:57
mveRichard MacCutchan31-Aug-19 4:57 
GeneralAdobe got it right... PinPopular
Sander Rossel31-Aug-19 0:50
professionalSander Rossel31-Aug-19 0:50 
GeneralRe: Adobe got it right... Pin
Ron Anders31-Aug-19 2:31
Ron Anders31-Aug-19 2:31 
GeneralRe: Adobe got it right... Pin
Mike Hankey31-Aug-19 4:50
mveMike Hankey31-Aug-19 4:50 
GeneralRe: Adobe got it right... Pin
dandy7231-Aug-19 7:26
dandy7231-Aug-19 7: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.