Wednesday, August 28, 2013

cars

After searching a bit, I have settled down on a scion xb; edmunds and kbb rated it high.
Parallel parking vdo

Saturday, August 10, 2013

To Do's

  1. Try to insert const both in parameters and return values
  2. Make the ToString()'s in the specific events final
  3. Use DENY_COPY whenever possible
  4. Add a virtual dtor to the GlobalEvent class
  5. Use explicit for every constructor with at least one argument
  6. return reference to *this from assignment operators
  7. In the assignment operators, check for self assignment
  8. Create shared_ptr's in standalone statements and then pass
  9. Pass by reference-to-const for everything that is not built-in type, or STL iterator, or function object
  10. DO NOT return reference to a locally defined objects or reference to a heap-allocated one; if a new object needs to be returned return an object
  11. Make all data members private, never public or protected
  12. Postpone variable definition as long as possible
  13. Try avoiding dynamic_casts using virtual functions with a better design
  14. Try using declaration when you do not need definition through includes
  15. Avoid differentiating names by a single capital/small letter; avoid differentiating by 0, o, O, 1, l
  16. Understand the protocol well, ask why's as many as you can come up with.
  17. Each part of the code is implementing something of the protocol; so, find the connections between the code and the protocol.
  18. Only if a part of the protocol does not make sense, consult books on ds.
  19. Only if the code syntax or design does not make sense, consult c++ books.