For the best experience on desktop, install the Chrome extension to track your reading on news.ycombinator.com
Hacker Newsnew | past | comments | ask | show | jobs | submit | history | debh's commentsregister

Thanks - I'll check it out. I'm thinking to compile a list of good resources and add it to the current article.


What you say is true - but the idea is not to use this in production code. It's just a means of testing some fundamental C++ concepts which I outlined in the post.


Nice one :)


Kindof - if you're a startup and hiring for a position that requires knowledge of java, then IMHO it's a fair question. Most startups don't have the resources to train employees for 6 months.

But yes - the testing material in most certifications is not a good indicator of problem solving abilities and I wouldn't make any hiring decision based on them.


In my experience, pure mathematical knowledge just by itself seldom translates into good coding skills. This is after I've TAed Maths, CS and Physics courses for almost 4 years.

Typically we have 45 minutes to interview someone and asking a question where one has to derive a mathematical formula using induction/ calculus is not well served to gauge their programming abilities.

But I totally agree with you on your last point - just because someone is not a good hire now, does not mean they never will be - that's why even if you don't crack an interview, you can reapply in 6 months time.


Yes - it's mostly applicable when you're creating APIs and developer solutions. But even in case of internal tools/ exes, you might need to share functionality with a internal partner team and it's helpful if they don't have to read code they don't need to use.


Thanks for reporting this. Someone else noticed it on a nexus tablet as well. I'm looking into getting this fixed.


Good points ! I ran into some difficulty translating the boost::shared_ptrs to C++ 11 standard shared_ptrs a while back while adopting some open source tech for xbox.

Also you're spot on about people touting the smart pointers as a silver bullet for all memory issues leading to an overuse of these otherwise fantastic tools.


Yep - thanks for calling this out. I should have put out a version that's safe in multithreaded environment. I've updated the article to reflect this.


I think for self referencial data structures, passing them by a const& unique_ptr is a reasonable way to do it.

Thanks, Deb.


I think this is not right -- since references aren't reseatable, this would effectively make the data structure (but not necessarily its contents) immutable.

Shared pointers or raw pointers are the options that make most sense, in my opinion.

Edit: forgot to say, if you use shared_ptr beware circular references. e.g. in the case of a doubly linked list. weak_ptr could be used to break the cycle, but I'd probably use raw pointers here.


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search:

HN For You