Slashdot Mirror


User: mrriver

mrriver's activity in the archive.

Stories
0
Comments
2
First seen
Last seen
Profile
(view on slashdot.org)

Comments · 2

  1. Re:Oh... my... god... on Bjarne Stroustrup Reveals All On C++ · · Score: 1

    Yes. A friend can access any private member and do anything with it. But it is a project choice. It is very useful when you want to give access to a members to a other code but this access rights aren't spread to all classes like public members. It's good because it follows the "need to know principle". A piece of code must to know just whay it need to know. Nothing more. Just the class itself and it's friends has that rights. Ok. You can do something like that with, for instance, packages in Java. But in C++ there is no packages. It's about the language philosophy.

  2. Re:The Truth about C++ on Bjarne Stroustrup Reveals All On C++ · · Score: 1

    A real programmer uses the right language for the problem. Is C++ the best programming language for all the applications? Of course not! It's a very interesting language. But for several applications there is easier languages. For instance, for web applications Java or C# are good languages. And they are very very used for that. C++ could be used in web? Of course yes! C++ is a great programming language. It's my preferred language and beliave me, using it you can do anything. And the best part for me is because I almost allways can say to language/compiler how my program must be. Using other languages the runtime enviriorment make some choices for you. Are that choises the best for any application? Again... Of corse not. But they are good for almost all of them. It's why other languages are easier to learn. The programamenr don't have to thing about a lot of issues during development. But there is some not equal situations. And in this case, for instance, C++ is a good choice. Any programming language can be defined like a set of sintax rules and semantic rules. You must use the right language for the problem.