Tagged Questions
5
votes
5answers
518 views
Spoiled by Python convenience- and productivity-wise, spoiled by C++ speed-wise. Now unhappy with both [closed]
I'm currenetly struggling with choosing how to proceed as a programmer. I mainly programmed games and would like to continue. And for about 5 years or so I just used C++ and OpenGL, so I spent a lot ...
4
votes
3answers
317 views
Is there a way to use a higher level language in a competition that only has C, C++ and Java by default?
On that competition, you gain access to a system with gcc, vim, emacs and Java. You can't take any file with you and there's no internet access, but you can do whatever you want inside that system. ...
-1
votes
0answers
112 views
'delete' operator in dynamic memory allocation [closed]
In c++, I know that when a memory space is deallocated with a 'delete' operator and then one try to fetch what the pointer points to after the deletion, it always gives an unpredictable output. ...
3
votes
2answers
516 views
Why is C so high in TIOBE index of popularity, while C++ is just under here too, but not as popular? [closed]
I can't get my head around this. If C is so much used, but C is not C++, can someone explain to me the most important reasons that makes C more used than C++ ? Where is all this C code written for ?
...
0
votes
1answer
277 views
How can I brush up my C++ knowledge?
It passed 10 years since I last used C++. Back in those days in University but also at laboratories I used to be one of the best in the class with highest grades.
But know if I look at some C++ code ...
5
votes
4answers
614 views
Is it possible to create a 2d game for both linux and windows with next to no changes?
I'm starting a project with friends which would preferably reach both audiences of windows and linux. The only problem is that none of us have any experience of linux porting or linux coding any way. ...
0
votes
3answers
214 views
C/C++ in applications that do not concern performance [closed]
C is the best language (or maybe the single language) suitable for operating systems, drivers, embedded systems etc. For more complex domains like computer graphics C++ is a better choice. But these ...
28
votes
2answers
1k views
Why is a Boolean value stored as a byte inside of a computer when it only requires one bit
I recently started learning to write code, and in my book I came across this question. "Why is a Boolean value stored as a byte inside of a computer when it only requires one bit?" can someone shed ...
0
votes
3answers
506 views
How to become an expert in C++ [closed]
I have some experience in Java programming and enterprise application development. I have done OOP, data structures in C++ for my undergraduate studies. But I couldn't touch C++ for years. Now I am ...
1
vote
2answers
360 views
How can you become a real programming polyglot? [closed]
I work as a Java programmer, but C and C++ were always my favourite languages during studies. Unfortunatelly I don't have an opportunity to work with them as often as I would like to. As a result I ...
3
votes
1answer
299 views
What are the differences between Special Edition and the Third Edition of Stroustrup's The C++ Programming Language?
I'm buying a few C++ books after moving from Java. I obviously want to read the reference manual from the man himself, though I cannot tell the difference between these two editions. The special ...
8
votes
7answers
205 views
How does a “Variables introduce state”?
I was reading the "C++ Coding Standards" and this line was there:
Variables introduce state, and you should have to deal with as little state as possible, with lifetimes as short as possible.
...
11
votes
7answers
1k views
Does C# give you “less rope to hang yourself” than C++? [closed]
Joel Spolsky characterized C++ as "enough rope to hang yourself". Actually, he was summarizing "Effective C++" by Scott Meyers:
It's a book that basically says, C++ is enough rope to hang ...
1
vote
1answer
84 views
How to represent association in programs [closed]
Could someone help me in implementing association in cpp. I am trying to implement a dice game where I have two classes a diegame and a dice.
1
vote
2answers
499 views
Is C++ really going out of fashion? [closed]
The TIOBE index claims that the popularity of C++ is waning, and is currently way below C and Java. Echoing this claim, a blogger suggested today, that because C++ is going out of fashion, C++ ...
2
votes
4answers
447 views
The benefits of using RAII in C++
Suppose I'm a teacher and I want to explain to my students what are the benefits of using RAII in C++: I need a very good example, full of details, but that is easy to understand.
Which approach ...
5
votes
8answers
818 views
Is there a point to writing in C or C++ instead of C# without knowing specifically what would make a program faster?
I wrote a small library in Python for handling the xbox 360's STFS files to be used on my web applications. I would like to rewrite it for use in the many desktop programs people are writing for 360 ...
1
vote
6answers
796 views
Java or c++ for math intensive graphics application? [closed]
Lets say my friend needs to write an incredibly math heavy application. He has thought about using C++, but he wants to write it in Java. Just how slow is Java compared to C++? His application will ...
0
votes
1answer
375 views
going from C,C++ to php [closed]
I need some good professional advice from some of you.
Till now I had worked in c and C++ with having a good exposure to telecom background.This is around 8 years since I am working on these ...
3
votes
3answers
305 views
Basis of definitions
Let us suppose we have a set of functions which characterise something: in the OO world methods characterising a type. In mathematics these are propositions and we have two kinds: axioms and lemmas. ...
17
votes
8answers
3k views
Is Learning C++ Through The Qt Framework Really Learning C++
The problem I have, is that most of the C++ books I read spend almost forever on syntax and the basics of the language, e.g. for and loops while, arrays, lists, pointers, etc.
But they never seem to ...
32
votes
12answers
17k views
For what reasons should I choose C# over Java and C++?
C# seems to be popular these days. I heard that syntactically it is almost the same as Java. Java and C++ have existed for a longer time. For what reasons should I choose C# over Java and C++?
2
votes
1answer
800 views
How is C++ in QT different from the standard C++ libraries?
I want my app to be able to manipulate images and create watermarks and also needs to run on both windows and mac. Hence I've been investigating QT.
Does QT ship with all the libraries I will need to ...
5
votes
5answers
531 views
increasing productivity - mastering a language vs. selecting efficient tools
I'm looking for advice from experienced developers on this question.
In my work there's a need for a lot of one-off code. It's tempting to just dip into the right python/perl library calls to do ...
9
votes
5answers
597 views
Does Java promote a separation between class definitions and implementations, as is C++?
I have a homework assignment and I need to evaluate which approach is better according to GRASP "Protected Variation". I found a question on Stack Overflow about the separation of header and code ...
5
votes
8answers
856 views
Why has the rate of programming language popularization slowed down in recent decades? [closed]
If I understand correctly, there was a huge birth of programming languages during the early decades of computing, but then things have stabilized.
Basically, why are many universities and industries ...
15
votes
3answers
4k views
How could the first C++ compiler be written in C++?
Stroustrup claims that Cfront, the first C++ compiler, was written in C++ (Stroustrup FAQ).
However, how is it even possible that the first C++ compiler be written in C++?
The code that makes up the ...
16
votes
5answers
731 views
Advantages of a left to right language syntax
I've been watching an interview with Herb Sutter on Channel9 and he mentioned at the end of the video that left to right language syntax would be on the top on his whishlist for a future C++ ...
50
votes
11answers
5k views
A modern review of Java
I've been programming for a few years and I began in Java, and in my time I've found many different sources claiming Java to be an inferior language in some way or another. I'm well aware that each ...
121
votes
8answers
32k views
What does C++ do better than D?
I have recently been learning D and am starting to get some sort of familiarity with the language. I know what it offers, I don't yet know how to use everything, and I don't know much about D idioms ...
5
votes
5answers
369 views
Which language should I use for a computationaly intensive program?
This is a multi-part question. I am writing a computational intensive program that will preform computations on very large numbers, on the scale of factorial(100) . I'm considering using Java or c++ ...
18
votes
13answers
7k views
Why is C++ still preferred to build heavy GUI apps over the latest dynamic languages?
I see that most of the apps that include heavy GUI content are usually developed in C++. Most of the games/browsers are coded in C++.
Can't we just develop better GUI apps with the latest dynamic ...
5
votes
3answers
203 views
Is it acceptable practice to give an object a pointer to “the world”?
I often find myself in situations where objects need to communicate between each other. For example, a button might need to talk to various textboxes. Would it be proper to simply construct each ...
5
votes
2answers
408 views
How can a Java programmer make the most of a new project in C or C++?
As a Java programmer, I'm looking to learn either C or C++ by writing a database manager. Obviously, Java shares many idioms with C and C++, but yet both bring vastly different program design ...
24
votes
8answers
957 views
The “blub paradox” and c++
I was reading the article here: http://www.paulgraham.com/avg.html and the part about the "blub paradox" was particularly interesting. As someone who mainly codes in c++ but has exposure to other ...
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 ...
7
votes
1answer
1k views
Is C a regular language?
Are C or C++ regular languages? If not, under which category do we place the programming languages like C/C++, perl, Python?
13
votes
15answers
27k views
Game programming : C# or C++? [closed]
I've decided what I really want is to do game programming. So the question is, as a 18 years old who wants to learn self taught programming, what is the most suited programming language between C# and ...
3
votes
3answers
899 views
Best general computer science memory data structures book?
What are the best books for understanding how languages work 'under the hood'? If there is anon-language-specific book that discusses more of the general principles, that is preferable. If it is ...
70
votes
15answers
4k views
Why do memory-managed languages retain the `new` keyword? [closed]
The new keyword in languages like Java, Javascript, and C# creates a new instance of a class.
This syntax seems to have been inherited from C++, where new is used specifically to allocate a new ...
5
votes
2answers
377 views
If I were to claim I knew C++, what libraries would you expect me to know?
I'm unsure as to the definition of knowing a programming language, so I'm picking C++ as an example. How much does it take to someone to be qualified as knowing C++?
Should they just know the basic ...
7
votes
4answers
939 views
Learning Python is good? [duplicate]
Possible Duplicate:
Is Python worth learning? Is it a useful tool?
Recently I have seen some videos from MIT on computer programming topics. I found it's really worth watching. Especially ...
45
votes
12answers
4k views
Why are most browsers developed in C++
It seems like most of common web browsers (Firefox, Chrome, Safari) are developed using C++. My question is straightforward. Why they use mainly C++ rather than any other language?
Edit:
What ...
9
votes
8answers
3k views
How is C different from C++?
Many people have said that C++ is a completely different language than C, but Bjarne himself has said that C++ is a language that is extended from C hence that is where the ++ comes from. So why does ...
16
votes
6answers
3k views
Programming language usage at Google
I have heard Google uses Python, Java and C++. But what I don't know is how is each of those programming language is used. I mean what is Python, Java and C++ is used for at Google. Why would they ...
84
votes
22answers
39k views
Is there any reason to use C++ instead of C, Perl, Python, etc.?
As a Linux (server side) developer, I don't know where and why should I use C++.
When I'm going to performance, the first and last choice is C.
When "performance" isn't the main issue, programming ...
23
votes
19answers
2k views
Most hated C++ feature [closed]
Which is the most hated C++ feature that C++ programmers can't avoid using?
8
votes
2answers
2k views
Most Active Open Source C# Projects?
I am looking for open source projects being done in C# that are actively looking for developers and does not mind the person coming in from a C++ background. Any pointers appreciated.
4
votes
2answers
284 views
Why do people confuse C-type strings and STL strings
The last week I saw at least three questions where people were confused about the differences between char * and std::string or made some related mistakes.
Don't get me wrong, I don't have a problem ...
8
votes
3answers
1k views
How long and what type of complexity would have been involved in Chris Sawyer writing most of rollercoaster tycoon in assembler?
From this question, I have another question about...
How long and what type of complexity would have been involved in Chris Sawyer writing most of rollercoaster tycoon in assembler?
In order to ...
