Dec. 8, 2015
Start to read the book Exceptional C++ today, here is the link of the book:
http://www.amazon.ca/Exceptional-Engineering-Programming-Problems-Solutions/dp/0201615622
My best learning experience on first hour is this example:
Item 18. Code Complexity—Part 1
Item 19. Code Complexity—Part 2
The good exercise, count "Nonexceptional Code Paths", excellent metrics to calculate in the example. How many does Julia count? (keep it secret!)
String EvaluateSalaryAndReturnName( Employee e )
{
if( e.Title() == "CEO" || e.Salary() > 100000 )
{
cout << e.First() << " " << e.Last() << " is overpaid" << endl;
}
return e.First() + " " + e.Last();
}
To be continued.
From January 2015, she started to practice leetcode questions; she trains herself to stay focus, develops "muscle" memory when she practices those questions one by one. 2015年初, Julia开始参与做Leetcode, 开通自己第一个博客. 刷Leet code的题目, 她看了很多的代码, 每个人那学一点, 也开通Github, 发表自己的代码, 尝试写自己的一些体会. She learns from her favorite sports – tennis, 10,000 serves practice builds up good memory for a great serve. Just keep going. Hard work beats talent when talent fails to work hard.
Showing posts with label nonexceptional code paths. Show all posts
Showing posts with label nonexceptional code paths. Show all posts
Tuesday, December 8, 2015
Subscribe to:
Posts (Atom)