Jump to content

  • Log In with Google      Sign In   
  • Create Account


Member Since 13 Oct 2003
Offline Last Active Apr 23 2016 04:13 PM

Posts I've Made

In Topic: Criticism of C++

10 January 2016 - 08:14 AM

No, I'm talking about C++ in general, not unique_ptr. "Modern C++" is all well and good, but there is 15+ years of libraries and tutorials written for "not Modern C++" - and all that stuff still works.

In Topic: Criticism of C++

09 January 2016 - 07:19 PM



One rather bizarre portion of the video is how at one point he criticizes the syntax for std::unique_ptr, when he's actually using it incorrectly.


That, more than anything is the biggest criticism I have against C++. It is exceptionally easy to use it "incorrectly". 

In Topic: Some programmers actually hate OOP languages? WHAT?!

29 January 2015 - 01:00 PM

Something I still haven't got is the difference between OOP and simply using objects.


It's blurry, since different people consider OOP different things. Generally though, Object Oriented Programming isn't programming, it is design.


When you go to break your problem into managable chunks, do you think "what parts make this up?" (OO), "what steps do I need to take?" (procedural), or "what operations make this up?" (functional).

In Topic: Some programmers actually hate OOP languages? WHAT?!

29 January 2015 - 11:14 AM

One other thing that should be mentioned is that OOP has changed quite a bit over its existence. Inheritance for example is generally seen as something to avoid these days. Mutable state in objects is generally seen as something to avoid these days.


Why? Because programmers used them and found out that in many cases they suck. Some programmers said "let's make this better". Some programmers said "screw it, I'm going back to my cave" and haven't seen the practical improvements made in OOP technique over the decades. If all people know of OO is old style inheritance heavy, side-effect heavy code - they are completely right that it is bad.


Likewise, many of the other commenters are correct that C++ is a pretty terrible language to make OO code in. Java is a pretty terrible language to make pragmatic OO code in. Universities were horrible at teaching OO throughout the 90's and early 00's (and are still largely terrible). If all you see is horrible OO code, it's not a terribly improper leap to assume that it is terrible, or it makes it too hard to write not-terrible code.


Another thing to consider is personal experience. Like others have mentioned, OO is a tool and like any tool is good at some things and bad at others. If my experiences tell me that most problems are these sort (that OO happens to solve well) or that these sorts of things cause me pain (which OO prevents) then I'm going to think OO is awesome. Some people's experience simply tells them that the verbosity of most OO languages provides no benefit, or the object focused approach yields inferior solutions for the sort of problems they commonly encounter.

In Topic: Modifying my own code while it's running

03 January 2014 - 09:24 PM

Enh, up I imagine the runtime modification would screw up your profiling more than simply including it always (in beta) and turning on logging when needed. When done judiciously, it won't substantially impact performance but still give you plenty of instrumentation to identify issues.