Better HN
topnewbestaskshowjobs
Log inSign up

___1___

18 karma · joined Jan 18, 2013 (13y ago) · 19 submissions

Submissions

comment 12y ago · link · parent

I am C++ programmer. As you may be too.

C++ has one big flaw the way I see it, and that is, it is incredibly difficult to learn well and it's very easy to teach badly.

I have been programming C++ for many years now, I still look back on code I wrote a couple of years ago and can see how my style has development, and I won't even dare review the code I wrote whilst learning the language.

That said, once you've straddled to learning curve, I really do believe that it is a great language for more than just niece core of use cases. Having learnt it there would be very few cases I would use C over C++, nor would I use an other compile "General purpose" programming language, like Java , D, Go or C#. The "next level up" for me is scipting with python or bash and the step down is asm or inline intrinsics. I am happy with C++ in the middle of that wide chasm.

comment 12y ago · link · parent

Because XP probably does everything they need and the upgrade will be reluctant.

comment 12y ago · link · parent

I prefer Kevin Mitnicks:

https://secure.flickr.com/photos/ranh/106709219/

comment 13y ago · link · parent

If you want/need to learn C++, learn C++. Learning C to learn C++ is a really poor idea.

There are plenty of people in my office who are like that and they can't see the wood for the tree. Writing out their own for loops instead of using whatever std algorithm would do the job better. Holding their own owning pointers in the presence of exceptions.

The problem is people tend to not to actually learn C++ properly, cover to cover. They just learn the bits they need as an when they need them missing out all sorts of details in the middle.

comment 13y ago · link · parent

I echo your list of books. I would add Accelerated C++, at least when they get round to making a C++11/14 version.

comment 13y ago · link · parent

Hmmmm. why do you teach arrays before containers? And why is so little if any time spent on the std:: containers (ctrl + f deque returns nothing).

The word template is mentioned 3 times, and never once on how to write your own basic templates (no, that's should not be considered advanced).

Finally, why do you keep using the `.open` member function for your streams rather than specifying the file path in the constructor and then testing the validity of the whole stream rather than individual flags.

ie:

    std::ofstream ofs { "my_file" };
    if(ofs) { ///sucess...
You also don't even begin to touch on the standard algorithms. Take for example the book "Accelerated C++". It's only 300 pages, but it has the reader writing modern code with containers and standard algorithms with in the first few pages. It's a much better approach in my opinion.

comment 13y ago · link · parent

Reaper is a fantastic piece of software!

comment 13y ago · link · parent

> Windows 7

Found the issue.

comment 13y ago · link · parent

The much prefer the Model M to any other keyboard I've used including Apple keyboards.

I do like the old Transparent Apple keyboards (G4 era?) with the nice slab of metal in it to keep them heavy.

comment 13y ago · link · parent

I voted C++, but regretfully the truth is probably closer to LaTeX :/

comment 13y ago · link · parent

This is pretty much why I don't watch TV or films anymore really. I invest time and all to often it's utter crap.

comment 13y ago · link · parent

I don't know what decade you last tried a linux desktop but every distro I have used supports playing from multiple programs concurrently fine.

comment 13y ago · link · parent

Having just returned from the USA, I must admit, whilst I strongly dislike like the "car culture" the street were incredibly well sign posted. A pet hate of mine here in the UK are missing signs.

comment 13y ago · link · parent

100% this is my opinion, I learnt C++ using VS and eclipse; I can't remember when or why but I fairly quickly picked up Vim + compiler and it just felt better suited to native development.

Further more the skills feel more real, I can apply my usage of vim and how the tool chain works to other languages.

comment 13y ago · link · parent

I don't get what it is and don't want to make a twitter account to find out.

Could someone explain what is and why it needs a twitter account.

comment 13y ago · link · parent

I found it rather creepy (yet cool) that I could easily read a number plate miles away.

comment 13y ago · link · parent

> Now, understand that being average is OK, and pretty awesome too.

I disagree, anyone who has the balls to start something new, whether they succeed or not, is far from average.

comment 13y ago · link · parent

I don't have firefox and a pdf view won't change that. Your description of Safari matches that of Chromium on Arch Linux.

comment 13y ago · link · parent

C++ is a multiparadigm language, all of the styles you mention are extreme bastardisations of the style laid out in books like Accelerated C++, Effective C++, Exceptional C++. Modern C++ Design and so on.

That style tends to be similar to that used in the STL with some OOP thrown in - when suitable. It is about selecting the abstraction that is appropriately ensuring the code is abides by RAII.

I am convinced that the Javaish/Qt way of coding is destructive for C++ as inheritance is not as simple as the generic programming style once you get to grips with it and has a lot of gotchas. And the C - style is to me just plain wrong, especially if you are using any of the C++ standard library as they are privy to throw and without reliance on RAII your code will not be exception safe, if you want C use C.