Thread: Why nothing but beginner questions?

  1. #61
    Registered User
    Join Date
    Dec 2013
    Posts
    241
    Going back to the original answer - you will find these behaviour in every programing language forum.
    Stack overflow downvote trivial qustion so Stack overflow stays "Professional-oriented" Q/A site. other forums don't filter out beginners questions so it seems like they are "Beginners oriented".

    the truth it that in every programing language most of the people start learn programing for some reason (own interest,school,university) but they quit somewhere very soon after their course ends/they fulffiled their inner curiosity.
    you will always find more beginners than intermediate developers than advanced developers, and this is the precentage of questions you will usually find.

    the truth is that I prefer ask a question here than stack overflow because here I can develop a serious discussion on the question wheres stack overflow has more "find the bug" niche.


    and C++ is nowhere close of dying. everything is implemented (eventually) in a native code. this include OS/Compilers/Language extensions. not to mention the thousands of desktop applications and triple A games.
    C++ even gains some of its popularity again with the new standards of 11 and 14. many major companies keep their support in C++ ,for example Microsoft published a new and modern way to develop windows applications with Windows Runtime.
    so you can see nothing is "dying".
    I keep telling my JavaScript-developers friends "you can do what you can with JavaScript only because some C++ developer exported this functionality out".

  2. #62
    (?<!re)tired Mario F.'s Avatar
    Join Date
    May 2006
    Location
    Ireland
    Posts
    8,446
    Quote Originally Posted by Dave11 View Post
    and C++ is nowhere close of dying
    Ok. Have been hearing this crap the whole thread, I'll just burst out.

    I'm frankly annoyed at how quickly my claim was taken out of context. I expect that sort of stuff on many places, just not here and not by the very people replying. It seems that the mere mention of "C++" and "dying" on the same sentence triggers a defensive mode that just stops you people from reading anything else that was said and make any effort to counter the actual arguments.

    "No, C++ is not dying because people use C++". "No C++ is not dying because o many things depends on C++". Right. That's freaking genius!
    Originally Posted by brewbuck:
    Reimplementing a large system in another language to get a 25% performance boost is nonsense. It would be cheaper to just get a computer which is 25% faster.

  3. #63
    Registered User
    Join Date
    Dec 2013
    Posts
    241
    since C++ is maybe the only language that allows you touch memory and the operating system directly while giving you the possiblity to write Object-Oriented code mixed with smart meta-programing I can't see how C++ can die in near future.
    In the end, everything has to reach the OS level, so how will you implement these cool high level features (like coroutines, http etc.) without asking your OS to do it?

    yes, there was a huge trend to move from C++ to Java (or C#) back in the early 2000. now let's look what was the arguments back then:
    1) C++ is un-safe and leaks memory
    2) the code you'll write with Java will be much little than equivilant C++ code.
    3) Java has much more utilities than C++

    now in 2015 let's review
    1) smart pointers, shift of developers thinking no to invent the memory wheel
    2) C++14 shreads this claim to dust. actually, many code snippets *today* will be much simpler than Java
    3) this also changes as the time goes by. in C++11, we got threads and regular expressions, in further standards we'll get networking, coroutines filesystem library.

    so as you can see, aside teh psychological fear, there is nothing really in the claims against C++. C++ is modernizing itself every year withou loosing 1% of functionality or preformance.
    I really see no reason why big, highly paid projects wouldn't be written in C++. if it was so - Microsoft wasn't encouraging feveloeprs to write in C++ as side of C# (aka "Going Native" con) and wouldn't develop a whole new framework for windows 10 (aka "WindowsRT").

    also, you can't really write triple A games with managed language, it is hard enough to write it with C++, so use a non-deterministic memory deallocation? no way. so in this field C++ is safe for many years to come. also , there are regions where you don't have much options - Operating systems, Networking, Hardwares and many more.

    yes, this is not 1995, C++ is not the dominating language anymore. but saying C++ is dying is like saying "English is dying, look! Chinese and Spanish became much more popular!"
    Last edited by Dave11; 10-11-2015 at 05:43 AM.

  4. #64
    Officially An Architect brewbuck's Avatar
    Join Date
    Mar 2007
    Location
    Portland, OR
    Posts
    7,396
    Sorry Mario, I wasn't at all trying to be adversarial about it. I just don't agree, that's all...
    Code:
    //try
    //{
    	if (a) do { f( b); } while(1);
    	else   do { f(!b); } while(1);
    //}

  5. #65
    Unregistered User Yarin's Avatar
    Join Date
    Jul 2007
    Posts
    2,158
    Quote Originally Posted by Dave11 View Post
    1) C++ is un-safe and leaks memory
    ...
    1) smart pointers, shift of developers thinking no to invent the memory wheel
    Smart pointers don't magically make C++ safe. The safety objection to C++ still applies.


    Quote Originally Posted by Dave11 View Post
    2) the code you'll write with Java will be much little than equivilant C++ code.
    ...
    2) C++14 shreads this claim to dust. actually, many code snippets *today* will be much simpler than Java
    Only, no one even rejects C++ because it's "like Java anyway". Java is usually preferred to C++ for its familiarity, perceived safety, or WORA.


    Quote Originally Posted by Dave11 View Post
    3) Java has much more utilities than C++
    ...
    3) this also changes as the time goes by. in C++11, we got threads and regular expressions, in further standards we'll get networking, coroutines filesystem library.
    Again, this isn't the usual objection, but anyway it's pretty domain specific problem.

  6. #66
    Registered User
    Join Date
    Dec 2013
    Posts
    241
    "Smart pointers don't magically make C++ safe. The safety objection to C++ still applies."

    -No language is 100% memory safe. in higher languages you get null pointer exception because every pointer is automatically nulled when it's declared. in C++ you can have either null pointer or just segmentation fault.
    anyway, smart pointers DO help keep leaks away. and again, developers write today with better security in mind than back then. people are much more concered with raw pointers, new and delete.
    this helps drastically improve the app security.

    "Only, no one even rejects C++ because it's "like Java anyway". Java is usually preferred to C++ for its familiarity, perceived safety, or WORA."
    people usually claim that "Time to market with Java/C# is much smaller than C++ thus is cheaper to develop". I'm saying that today, which all of the language-core fetuares, frameworks and libraries this is an outdated claim.

    "Again, this isn't the usual objection, but anyway it's pretty domain specific problem."
    this is at least what I heard people claim.

    again, I'm saying what I have heard from co-developers.

  7. #67
    Ticked and off
    Join Date
    Oct 2011
    Location
    La-la land
    Posts
    1,728
    You can write crappy code in any language. I posit that a language that restricts programmers from writing crappy code, also restricts programmers from implementing novel solutions.

    Quote Originally Posted by Dave11 View Post
    developers write today with better security in mind than back then
    That is utter nonsense!

    [RANT]

    Based on what I see, most developers understand nothing about proper security. The most common fallacy I run into, is that security is something you can add afterwards, or that security is something your framework or libraries provide. It is nothing like that; it is either designed in as an inherent part of the system, or you have none.

    As an example, consider qmail (and its currently maintained derivative, netqmail). It is an extremely solid piece of software, especially when compared to Sendmail and other MTAs. Similarly, DJBDNS is utterly secure compared to Bind -- bind's security approach would best be described as "oops". Yet, DJB gets basically no respect among programmers, whereas Sendmail and Bind are considered excellent pieces of software!

    I'd say most developers commit more security violations now than before, mostly because they (feel they need to) ship fast and often. The worst part is that some idiots actually think that because security issues are known, they nowadays develop better code. Poppycock! Most programmers understanding of actual security and security practices is tenuous, and unfortunately usually either misguided, or just plain erroneous.

    [/RANT]

  8. #68
    (?<!re)tired Mario F.'s Avatar
    Join Date
    May 2006
    Location
    Ireland
    Posts
    8,446
    Quote Originally Posted by Dave11 View Post
    yes, there was a huge trend to move from C++ to Java (or C#) back in the early 2000. now let's look what was the arguments back then:
    1) C++ is un-safe and leaks memory
    2) the code you'll write with Java will be much little than equivilant C++ code.
    3) Java has much more utilities than C++

    now in 2015 let's review
    1) smart pointers, shift of developers thinking no to invent the memory wheel
    2) C++14 shreads this claim to dust. actually, many code snippets *today* will be much simpler than Java
    3) this also changes as the time goes by. in C++11, we got threads and regular expressions, in further standards we'll get networking, coroutines filesystem library.
    Completely irrelevant. I don't even know why you speak of Java. The argument is simply that C++ has been giving market share to other languages that are said to be (not necessarily are) safer, or easier to develop on.

    There are very few reasons today to code in C++ for the GUI, for instance. Unless C++ remains an important language in your team knowledge pool, for almost all types of projects there is simply no motivation to pursue C++ as a solution. It is much easier to do GUI development in other types of languages. This is why brewbuck argument makes little sense to me. If you are already programming in C++ and you have a strong knowledge base, I trust you won't see a reason to change languages. But conversely, C++ is becoming less and less an attractive solution to these type of projects if you happen to be looking for a language to code your project on.

    On the other hand the argument for games really isn't something I care much for. C++, for all its beauty, has always been a big problem in game development. The complexity of language is actually something that has been working actively against development costs and the quality of the final product under such tightly controlled budgets and time constraints, as is the case with the game industry. You can bet many a developer would love to see something else coming up that could replace C++ as a development tool for video game development. I argue that C++ is important in game development, for the lack of a functional alternative. That industry is so full of abstractions, it isn't even fun anymore. All in an attempt to hide away C++ from the developer.

    I will argue that C++ or C will always remain important core languages in this architecture. I have always defended the idea (see, the Rust thread) that within the current computer architecture, you just aren't going to find a better alternative for low tier development. But C++ is loosing ground as you move up on the operating system stack. And this is what I am talking about when I say C++ is dying. I tried to clarify that on some post in this thread. Naturally, we can agree to some niche development areas high up in the stack where C or C++ may remain influential. But that's about it.

    Programming languages also tend to suffer from a generation bias. The new languages, and the space they have been occupying as they displace C and C++, are breeding new generations of programmers and influencing newcomers. As the old is slowly replaced by the new, you may find in that yet another factor to further constrain C and C++ to a corner of the development ecosystem.
    Last edited by Mario F.; 10-11-2015 at 02:13 PM.
    Originally Posted by brewbuck:
    Reimplementing a large system in another language to get a 25% performance boost is nonsense. It would be cheaper to just get a computer which is 25% faster.

  9. #69
    (?<!re)tired Mario F.'s Avatar
    Join Date
    May 2006
    Location
    Ireland
    Posts
    8,446
    Quote Originally Posted by Nominal Animal View Post
    DJBDNS is utterly secure compared to Bind -- bind's security approach would best be described as "oops". Yet, DJB gets basically no respect among programmers, whereas Sendmail and Bind are considered excellent pieces of software!
    And the funny thing, a huge security hole in BIND was just recently exposed. A couple of months ago or so.

    But for all the overblown egos typical of software development (any engineering field in fact), the truth is that the reason for this inconsistency is that people still operate mostly based on what someone else is saying or doing. You get something like BIND to stick around because a large ego won't ever stop monkeys from imitating other monkeys. You have seen this before, until someone that matters in the industry cares, no one will care. But once that happens, suddenly everyone will fill public forums with how terrible BIND always was.
    Originally Posted by brewbuck:
    Reimplementing a large system in another language to get a 25% performance boost is nonsense. It would be cheaper to just get a computer which is 25% faster.

  10. #70
    Officially An Architect brewbuck's Avatar
    Join Date
    Mar 2007
    Location
    Portland, OR
    Posts
    7,396
    Quote Originally Posted by Mario F. View Post
    As the old is slowly replaced by the new, you may find in that yet another factor to further constrain C and C++ to a corner of the development ecosystem.
    I wouldn't look at it as a corner. The finest, most delicate roots are the source of all the water and nutrition for the enormous tree.
    Code:
    //try
    //{
    	if (a) do { f( b); } while(1);
    	else   do { f(!b); } while(1);
    //}

  11. #71
    Registered User
    Join Date
    Dec 2013
    Posts
    241
    You can also look at TIOBE Index:

    TIOBE Software: The Coding Standards Company

    Tiobe is a site which rates popularity of programing languages according Search-Engines statistics.
    as you can see, both C and C++ really stayed on top for the last decade..

  12. #72
    Unregistered User Yarin's Avatar
    Join Date
    Jul 2007
    Posts
    2,158
    Quote Originally Posted by Dave11 View Post
    You can also look at TIOBE Index ... C++ really stayed on top for the last decade
    Do you see the green line?

  13. #73
    Registered User
    Join Date
    Dec 2013
    Posts
    241
    yes, so what? other languages bit a chunk of interest along the years. but still, C/C++ stayed on top for a decade, and they move up and down along the years, but never one-way down.

  14. #74
    Unregistered User Yarin's Avatar
    Join Date
    Jul 2007
    Posts
    2,158
    Quote Originally Posted by Dave11 View Post
    C/C++ stayed on top for a decade, and they move up and down along the years, but never one-way down.
    I don't see a C/C++ ranking. I see a C ranking that has only slightly dropped in the last decade, and a C++ ranking that's a 1/3 of what it was; at this rate it won't even be in the top 10 in a decade.

  15. #75
    Registered User
    Join Date
    Dec 2013
    Posts
    241
    I don't think we see the same thing.
    curently C++ is number 3 as of October 2015. it was ranked 4 last year's October.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Beginner questions
    By c++urious in forum Programming Book and Product Reviews
    Replies: 1
    Last Post: 06-14-2010, 04:16 PM
  2. Some beginner questions.
    By Meikj in forum C++ Programming
    Replies: 3
    Last Post: 05-01-2009, 11:37 AM
  3. A few beginner's questions
    By Megidolaon in forum C++ Programming
    Replies: 33
    Last Post: 10-24-2008, 09:21 AM
  4. beginner questions.
    By Jaken Veina in forum C Programming
    Replies: 5
    Last Post: 03-16-2005, 09:38 PM
  5. 2 beginner questions
    By GCat in forum C++ Programming
    Replies: 15
    Last Post: 11-24-2004, 03:55 AM