Reputation
Top tag
Next privilege 125 Rep.
Vote down
Badges
5
Newest
 Commentator
Impact
~261 people reached

  • 0 posts edited
  • 0 helpful flags
  • 0 votes cast
Apr
26
comment What's the benefit of object-oriented programming over procedural programming?
Just use function prototypes. That's encapsulation.
Apr
26
comment What's the benefit of object-oriented programming over procedural programming?
@supercat name clashing is a language issue not a non-OOP issue. On the other hand namespaces are problematic because the compiler essentially needs to rename the function automatically or mangle it. So why not just do it manually?
Apr
26
comment What's the benefit of object-oriented programming over procedural programming?
There's a way of dealing with this problem of scale you talk about in the procedural paradigm. It's called functions. But good way of explaining the problem.
Mar
2
comment Why is Global State so Evil?
The devil is evil. Global state is neither evil or good. It can very useful or harmful depending on how you use it. Don't listen to others and just learn how to program properly.
Feb
23
awarded  Commentator
Feb
23
comment Is the C programming language still used?
@YoYoYonnY Three reasons I can think of. 1) C compilers are more widespread than C++ compilers, so using strictly C source for drivers is more portable. 2) C++ exception handling and most of the standard library is useless in driver development. 3) Compiled C is very low footprint, extremely fast, and allows access to the hardware. These are all desired features of a driver. Of course C++ also has these traits, but many choose C for reasons 1 and 2.
Sep
24
awarded  Autobiographer
Jul
22
comment Why is OOP difficult?
If one thinks of a "common base object" like a common ancestor then it becomes clear. It's really that simple. It's hard to understand b/c there are so many misleading explanations out there from people trying to look smart.
Jul
22
comment Why is OOP difficult?
No doubt it is an entirely different way of thinking from procedural programming. But contrary to what many say, it is not A) an unnatural way of thinking, and B) complicated. I just think it's not taught well.
Jul
16
answered Dealing with frustration when things don't work
Mar
18
comment Why aren't more desktop apps written with Qt?
@BillyONeal Good descriptive answer Billy but how you managed to get 70+ up-votes is bewildering to say the least. I can only imagine there are some hard core native enthusiast here. But the reality is from what I've seen the QT framework is the closest to the .NET in terms of productivity, plus you can get most of the native performance benefits, AND you get cross-platform benefits. I do agree with #2 though, but this is kind of unavoidable for a large cross-platform native framework.
Nov
1
awarded  Teacher
Nov
1
answered Is the C programming language still used?
Nov
1
awarded  Peer Pressure
Jun
11
comment Is C++ not suitable for OOP?
Object Orientation is probably a subjective term, if we can agree on that. But I see a Kay object as a more natural way to decouple code and introduce concurrent modularity in the sense that each object serves a role like mini-computers interacting through message passing. Under this model there needs to be little to no code 'in between' b/c the entire logic of the program can be expressed as cells and messages. By comparison the use of 'classes' typically requires some procedural glue code in between (lacks true modularity) but the advantage is that classes are far more efficient.
Jun
6
comment Is C++ not suitable for OOP?
Fair enough. You can read this article. I guess what I was saying is that c++ is not "object-oriented programming" in a strict Alan Kay sense. However if you define OOP as being a data structure with behavior then you can regard c++ as OOP. In my mind though it's more accurate to view a c++ class as a higher level procedural programming abstraction. A c++ class is much more efficient than an Kay style object, but worse for concurrency. Personally I think the c++ class is a great design.
Jun
4
answered Is C++ not suitable for OOP?
May
30
answered Is learning how to use C (or C++) a requirement in order to be a good (excellent) programmer?
May
18
comment Are all languages basically the same?
You must be a good programmer. Judging by the length of your response you obviously have a lot of patience.
Apr
3
comment Making money from a custom built interpreter?
Some useful insight here. For #3 the parser is a compiled function, statically linked and called from NASM, written in C, and compiled with the command-line Microsoft compiler (no IDE involved). Would do it strictly in asm but C is much easier for this part.