Jump to content

  • Log In with Google      Sign In   
  • Create Account

Mercury Filter

Member Since 24 Oct 2013
Offline Last Active Dec 16 2014 05:54 PM

Posts I've Made

In Topic: How Languages Compare?

17 November 2013 - 03:12 PM

Sorry, I realize that they are not the same, I was just asking if there was some roundabout, not necessarily sensible way that you could massage similar behaviour (the part about accepting different types), and create something similar. I realize that it may make no sense to actually do that, just wondered if it would be possible.

 

It may also be that I am misunderstanding more than one thing (history suggests this is indeed a worthwhile consideration). It was just intended as a question of idle curiousity.


In Topic: How Languages Compare?

17 November 2013 - 02:59 PM


They aren't C++ inventions, but I wasn't calling them as such.

I did not really mean to say that was what you meant so much as I was questioning the wording because I felt that it could make it a little confusing as to the origin of such techniques. I did indeed misread generic as genetic. I did a little reading, and have a bit of a question on that. From what I have seen, with generic algorithms, it seem that we are talking in terms of templates, essentially. While I am guessing that there would be good reason not to do this, would it be possible to implement something similar to templates via unions in C? Perhaps I am thinking along the wrong lines, and it may be something that would be ridiculous amounts of work to build something that is handily available elsewhere, or some other technique can take the place of. Primarily, I just wonder as to the possibility as a matter of curiousity.


In Topic: How Languages Compare?

15 November 2013 - 12:36 PM

What I am really taking out of this is that it is a "toolbox" type issue. Everything has strengths, everything has weaknesses. I certainly did not ask the question with the goal of trying to crown the king of languages. I wanted to know what are some positive points of the two, unfortunately I used some questionable wording. I have found a lot of these posts to be quite informative. I am guessing that no matter who you ask, they are always going to have a personal preference (a very strong one in some sometimes, probably), and I can see a bit more why I was warned by Winfield that such a question can incite a holy war. Thanks everyone, for maintaining civility on such a topic, since there was some pretty good information to be had.

The current view I am going to go forward with is that based on responses, and on other threads that I have read as well, my best bet is probably just choosing and sticking to a language for the time being (that one seems to have been reiterated in numerous places). Not that I was really questioning that it was the best thing to do, nor trying to get help choosing. Just wanted to try and learn a bit more about the two, and I would say that goal was achieved.

 

Although everything that I stated above is meant sincerely, I feel a bit too much "after-school special" seeping into it.....the cynic in me feels quite ill, but thanks for the information, again.


In Topic: How Languages Compare?

15 November 2013 - 09:07 AM


Almost any piece of high level C code can be improved by applying C++ techniques. References, generic algorithms, lambdas, constexpr, smart pointers, move semantics etc. are all really nice. You don't need to write object oriented code to benefit from C++.

I hate to nit-pick (ok, I actually love to, it seems very effective in terms of learning), but isn't it a bit misleading to refer to genetic algorithms and lambdas as being C++ techniques? Correct me if I misunderstood what you were saying but the statement seems to associate those techniques with C++, while I am pretty sure the two I mentioned existed before it did. I could not say about the others, as I am less familiar with them, and I am not very familiar with those two in the first place.


In Topic: How Languages Compare?

14 November 2013 - 12:48 PM


I don't want to tell you to stop using C, but when your code starts to have 1 000 000 lines I think you will have a hard time to manage around.

I understand what you are saying there (not really, as I lack the experience of writing large programs to claim understanding). I imagine managing any large programming project is not trivial, but I am curious about what it is that makes managing the larger programs in C++ easier? I have heard the quick answer of "classes", and perhaps this is another question that I need to experience as opposed to hear an answer to, as the quick answer does not really feel like it enhances my understanding (I often take this as a sign that I am missing some fundamental understanding that would make the quick answer more complete, if I had the knowledge). I assume that what Winfield said above is a  Edit::workable good::Edit option, so I guess I am wondering if there is something else that I am not familiar with in C++ that makes it easier to manage code for bigger projects, or if perhaps I need to write more C++ before I will really see the benefits?

Sorry if some of these questions are kind of silly (perhaps). I presume the wonderous shield of 'newb', which should be obvious from said questions, should afford me some pity, assuming that I manage to improve....eventually.

 

Edit::I felt like "workable" may have been communicating a negative or perhaps diminished appraisal of the option that I did not intend.


PARTNERS