Tagged Questions
-4
votes
2answers
327 views
Why is C++ preferred over C for commercial applications? [closed]
I program in C mostly. However, it is pretty obvious that many more commercial applications are done in C++.
As far as I can tell, C++ is a very complex language, with seemingly convoluted syntax and ...
-2
votes
1answer
212 views
Object-Oriented Programming With ANSI-C [closed]
I am trying to expand my understanding the history and involvement of OOP.
Recently I have been looking into OOP in ANSI-C, which is described in Object-Oriented Programming With ANSI-C by Axel ...
1
vote
3answers
486 views
good literature for teaching object oriented thinking in C [closed]
Quite often C is the primary platform for the development. And when things are large scale, I have seen partitioning of the system as different objects is quite a natural thing. Some or many of the ...
5
votes
8answers
522 views
Learning OO for a C Programmer [closed]
I've been programming professionally in C, and only C, for around 10 years in a variety of roles.
As would be normal to expect, I understand the idioms of the language fairly well and beyond that ...
7
votes
3answers
791 views
Make use of design patterns in C?
Design patterns are useful for object oriented languages.
But how can a non-object-oriented language such as C make of use them?
1
vote
3answers
338 views
Objects in non-OOP languages
Can we use the word "object" for data / functions in e.g. C (or Pascal) which doesn't really have objects? In C, what is an object? A data structure? A named memory area? I spoke to my collegue about ...
43
votes
14answers
6k views
What makes C so popular in the age of OOP?
I code a lot in both C and C++, but did not expect C to be the second most popular language, slightly behind Java.
TIOBE Programming Community Index
I'm curious as to why, in this age of OOP, C is ...
0
votes
3answers
139 views
Roadblock-confused about structure of program
I'm new to programming, and I'm working in C. I know that this is structured programming but if I use blocks, say for local variables:
{
int i;
for(i=0; i<25; i++){
printf("testing...\n");
...
0
votes
1answer
1k views
What are C's advantages over OOP languages, other than performance? [duplicate]
Possible Duplicate:
When to use C over C++, and C++ over C?
C still has its own importance in the programming world! And one reason for it is its performance. But, I have some questions.
...
28
votes
11answers
6k views
What's the benefit of object-oriented programming over procedural programming?
I'm trying to understand the difference between procedural languages like C and object-oriented languages like C++. I've never used C++, but I've been discussing with my friends on how to ...
8
votes
3answers
776 views
What are the typical naming conventions for OO C public and private functions?
Short Question
Is there a typical way to name 'public' and 'private' members of an OO C project?
Background
I fully understand that public and private members do not really exist in the C language. ...
4
votes
3answers
269 views
Do simple accessors and mutators benefit from commented block headers?
Short Question
Is it necessary to add the function header comments for simple accessors and mutators?
Example
u8 OBJ_get_state_x(void) {return obj.state_x;}
void OBJ_set_state_x(u8 x) ...
23
votes
17answers
3k views
How can I feel more confident about my programming skills? [closed]
Programming isn't alien to me. I first starting doing markup (HTML, now please don't laugh at me) when I was 12 and a little bit of BASIC when I was 13 (I knew much about Flowcharts, Pseudocodes at ...
10
votes
5answers
441 views
Where, in an object oriented system should you, if at all, choose (C-style) structs over classes?
C and most likely many other languages provide a struct keyword for creating structures (or something in a similar fashion). These are (at least in C), from a simplified point of view like classes, ...
4
votes
7answers
4k views
When is C a better choice than C++? [closed]
I can't imagine that there's any reason not to use the OOP features of C++. It's is just as fast as C, and - what's more important to me - it's transparent, just as C. (I mean "transparent" that I ...
5
votes
5answers
1k views
When C handles pop in your C++ code and break your pretty OO-design
I'm posting this question to externalize my utmost recent dismay with programming, but it is still a question nevertheless.
Today I can't picture myself doing things without thinking about ...
