News for hackers. Stuff that matters.
Re:Life After OOP: C++ is not just an object-oriented language by adambyrtek on Sunday November 28, 2010 @04:44PM (#1948415)
> Think about the way Python or Ruby deals with lists and you don’t know what the elements of the list are — and it’s too late to find a bug when you accidentally append a string to a list that was only meant to contain integers — and then you’d wonder why these are “modern” programming languages.

He seems like a C++ expert, but this quote suggests that he doesn't really get dynamic languages. Sure, this is a classic argument against dynamic typing, but the practice shows the sky doesn't fall because of that, and it makes programmers much more productive. Also dynamic languages put more focus on unit testing, which is necessary for C++ code as well. The fact that a program passes through the compiler doesn't necessarily mean that it is correct.

Re:Life After OOP: C++ is not just an object-oriented language by tgflynn on Sunday November 28, 2010 @09:34PM (#1949157)
I think dynamic languages, Python in particular, are great for small scale and/or throw-away code like data analysis projects or algorithm prototyping.

However I'd personally be very wary of using them for large scale software systems that need to be maintained over long periods of time, because of this lack of compile time type safety.

Re:Life After OOP: C++ is not just an object-oriented language by adambyrtek on Monday November 29, 2010 @04:02AM (#1949811)
This is a long-standing debate and I don't thing that it makes sense to dive too deep into that in this thread. I'll just say that I don't agree with that and point you to Bruce Eckel's essay Strong Typing vs. Strong Testing[1]. Not to mention that there are numerous large (not huge) systems written in dynamic languages that prove otherwise.

https://docs.google.com/View?id=dcsvntt2_25wpjvbbhk

Re:Life After OOP: C++ is not just an object-oriented language by iwr on Sunday November 28, 2010 @11:04AM (#1947528)
OK, so generic, policy-based programming is a possible alternative to classic OO. Can you recommend a few free thematic resources?
Re:Life After OOP: C++ is not just an object-oriented language by stingraycharles on Sunday November 28, 2010 @12:28PM (#1947662)
The book "Elements of Programming" is a good read, http://www.elementsofprogramming.com/, although it's a bit theoretical.

While the book isn't free, this blog thoroughly covers the book and the lessons learned from it in a lecture series:

http://cpp-next.com/archive/2009/11/%E2%80%9Celements-of-pro...

Re:Life After OOP: C++ is not just an object-oriented language by darwinGod on Sunday November 28, 2010 @11:38AM (#1947576)
Modern C++ Design by Andrei Alexandrescu, for one.
Re:Life After OOP: C++ is not just an object-oriented language by fbcocq on Sunday November 28, 2010 @01:11PM (#1947769)
How is this free?