Three busy weeks have passed by. For most of the time, I was attending tutorials, reading documents and at the end of this period, I was writing documents. Yes, no a single line of code I wrote.
Google has fantastic infrastructures for developments and a bunch of awesome people giving tutorials to us nooglers (a.k.a new googlers). Though there are plenty of stuffs that are confidential, I would like to write down some other public parts that I feels very useful here:
- Yeah, they use TDD as well! I personally transfer one of my most important projects at school from using cppuint to google test
- Unit tests should be as short/fast as possible. They should not rely on any other components, e.g file system, database, and so. Since once you have tens of thousands of test cases, those slow tests would kill the productively of the entire team.
- Do not implement the functions that not necessary for now. If you need this interface, then put an assert in this function in case someone mistakenly use it
- Automatic, Automatic, Automatic.
- Code is a piece of knowledge. Reuse it whenever is possible