Amusingly enough, (though not strange, if you consider its origins) Haskell uses the British spelling. Off the top of my head, the colour types are defined in the Data.Colour module.
419 karma · joined February 14, 2008
Amusingly enough, (though not strange, if you consider its origins) Haskell uses the British spelling. Off the top of my head, the colour types are defined in the Data.Colour module.
It's a bit more subtle than that: a virtual destructor is only required when the class, or its base classes, already have another virtual function (and it's only really needed if another class inherits from it. hmm.) At that point, a virtual destructor doesn't add any more cost over and above the virtual function that's already defined.
The thing is, C++ is usually good about not charging you for features you don't use - and with the reasonably good debugging and profiling tools, most of the problems you mention above are fixable to get performance that is close (or equal) to C, with maybe better maintainability.
To pick a not-so-random example of something that's difficult to implement in C as safely as in C++, see expression templates[1]. I'd be interested in something similar to what eigen does written in C. (Of course, the last time I did this minibenchmark, so-and-so's lapack library was still slightly faster than eigen :)
The bottom-line, perhaps, is that if I'm writing a library, I'd do it in C simply because it's self-contained and has a nicely limited scope, and as a bonus is usable from oh-so-many other languages. If I'm writing an application that really, really requires serious performance, I'd prefer to use C++.
attrib +h
at the cmd prompt, the file properties in explorer would have a checkbox for this tooShouldn't both trades be broken, though? Breaking just one sounds like the kind of behaviour that would be a strong disincentive to trade at all in the first place.
Yes, of course - that's what I thought I'd written. Clearly not :)
While this is C++, I've actually seen this particular construct: delete new SomeClass(...);
used as, basically, an eye-poppingly clever way of initializing something, doing work, and then cleaning up after.
That said, boost is a dependency that pays off in terms of programmer time if what you're doing is complicated enough (in other words, if you think you might reimplement some part of boost, you're better off using it as a dependency instead.)
http://www.cs.brown.edu/~sk/Publications/Papers/Published/sk...
(much to my regret, that is a true story.)
> Candidates should hold a PhD or equivalent and have successfully engineered an organism -- plants, fish, microbes, worms, fungi, it doesn't matter, as long as it worked.
Are there that many people who've actually done this? It makes me wish I could apply for this job :)
I also believe - but am not sure - that once you have a visa that lets you work in the US, any current tourist visa you have is cancelled, making staying there when you're between jobs is a major undertaking (at least in my case, I think it means a trip back home and to the consulates here to get the visa changed, so that may not matter all that much.)
That said, I'd be interested in what you think of raldi's take on this list - he's rewritten it to be both concise and, (lacking a better word) classy. It is far less likely to raise hackles and makes an interesting comparison to the original. And well, knowing his record, I'd much rather work with Mike than with whoever wrote the original :)
In fact, I think I have even worse stories to share: one recruiter who shall forever remain in my email blocklist took my resume, promised she'd ask me before sending it to any company, and then, naturally, sent it to a place where I was already having discussions, which led to quite a bit of unpleasantness all around.
In my opinion, your prices are too low on the higher end. A normal tax return preparer charges something like Rs 250 (negotiable, particularly on bulk deals) to around Rs 500 for a simple ITR-1/ITR-2 return. For people who require audited returns, It would be an order of magnitude more. I take it you don't do those :)
Either way, best of luck!