News for hackers. Stuff that matters.
Re:Some Were Meant for C (2017) [pdf] by atilaneves on Thursday April 25, 2019 @08:03AM (#19747141)
> C++ was always much more into the functional programming paradigm. (See the STL, for example.)

Always? The STL was a last-minute addition to the standard library before C++98. Just a few years before, template implementations in compilers were buggy. There's a reason Qt has its own containers: because it's that old.

> The connection between C++ and OOP is because OOP was the insane hype at the time when C++ was being invented

No, it was because Bjarne wanted features from Simula whilst still generating fast code.

> real C++ programmers always looked down on OOP and considered it a code smell and crutch.

Absolutely not. Again, look at Qt. Look at CERN's ROOT. Java looks a lot like it does because that's how C++ code was written at the time. Even in the early 2000s I was getting funny looks from people when I told them to default to putting variables on the stack.

Re:Some Were Meant for C (2017) [pdf] by otabdeveloper1 on Thursday April 25, 2019 @10:55AM (#19748798)
> The STL was a last-minute addition to the standard library before C++98.

C++ without a standard C++ library is not really C++.

> No, it was because Bjarne wanted features from Simula whilst still generating fast code.

Yeah, but Simula is somewhat its own thing, before the OOP madness.

> Again, look at Qt. Look at CERN's ROOT. Java looks a lot like it does because that's how C++ code was written at the time.

Only because C++ was the only thing available at the time, so people twisted it into 'OOP', despite the fact that C++ was very a poor fit for 'OOP'.

Re:Some Were Meant for C (2017) [pdf] by AnimalMuppet on Thursday April 25, 2019 @03:28PM (#19751655)
>> The STL was a last-minute addition to the standard library before C++98.

> C++ without a standard C++ library is not really C++.

You seem to be missing the point, which is that there was a time (two decades!) when the C++ standard library existed, but didn't include the STL.

> Only because C++ was the only thing available at the time, so people twisted it into 'OOP', despite the fact that C++ was very a poor fit for 'OOP'.

You are completely mistaken on your history here. C++ was intended to be "C with classes" from day one.

Re:Some Were Meant for C (2017) [pdf] by otabdeveloper1 on Tuesday April 30, 2019 @09:48AM (#19787882)
"OOP" is not "X with classes".

"Classes" is a low-level thing that you'd need for implementing many language features. Including things like 'abstract data types' of the ML kind.

Good C++ style has always viewed "OOP" as something highly suspect and hacky.

(This didn't apply to "classes" in the C++ vein, which are mostly about pre/post-conditions and RAII.)