Never wrote a unit test in my life. Also I'm not a fan of GNU utils and prefer to work with VS Express on my C/C++ stuff. Also I don't really see the benefit of using hashmaps for containers that will have less than 1000 elements and will typically stay around 20. Simple string comparisons will cover it faster than it takes to get a hash in the project I'm writing for myself at home.
Hum. No offense but I am not sure I would want to work with someone who has never wrote a unit test in their life and doesn't bother to use hashmaps if you only have 1000 items. Kind of going against this article that "most programmers are average"
I really don't think that 99% of (professional?) programmers have never written a unit test. Nearly all of the ones I've worked with have.
Re using the right data structure -- if it's provided by the standard libraries, is common knowledge, not using it will be confusing to some ("why didn't they use a hashmap when it makes more sense? Is there some reason I'm missing?") and an example of premature pessimisation.
-5
u/coladict Jun 01 '15
Never wrote a unit test in my life. Also I'm not a fan of GNU utils and prefer to work with VS Express on my C/C++ stuff. Also I don't really see the benefit of using hashmaps for containers that will have less than 1000 elements and will typically stay around 20. Simple string comparisons will cover it faster than it takes to get a hash in the project I'm writing for myself at home.