Saturday, December 18, 2021

statistics

statistics: https://otexts.com/fppkr/index.html

Monday, December 13, 2021

Books list

What's the best SHORT book you've ever read? by Alex and Books
  •  The Lessons of History by Will & Ariel Durant
  • As a Man Thinketh  by James Allen
  • Siddartha by Hermann Hesse
  • Tao Te Ching by Laozi
  • Jonathan Livingston Seagull by Richard Bach
  • The Go-Giver by
  • The Little Prince By Antoine de Saint-Exupery
  • The Dip by Seth Godin
  • On the Shortness of Life by Seneca
  • The Prince by Niccolo Machiavelli
  • The Art of War by Sun Tzu
  • Who Moved My Cheese? by Spencer Johnson
  • Do the Work by 
  • Meditations by Marcus Aurelius
  • The Old Man and the Sea by Ernest Hemingway
  • Managing Oneself by Peter Drucker
  • The Prophet by Kahlil Gibran
  • This is Water by David Foster Wallace
  • The Four Agreements by
  • The Richest Man In Babylon by George S. Clason

Sunday, September 12, 2021

Code Review

Modern Code Review: A Case Study at Google


1. A New Trend on Software Engineering with Modern Code Review - From Micheal Fagan to Google Approach

2. Michael Fagan or Michael Fagan Associates


Code Inspection

1. heavyweight approach (Fagan style), formal style

2. lightweight approach, informal style


Modern Code Review

1. informal style

2. tool-based

3. asynchronous

4. focused on reviewing code

----

Modern Code Review approaches,

1. The first one is a more lightweight review avoiding mainly protocols, meetings, guidelines, or other boring tasks such as a checklist.

2. The second one is some expectations related to readability and maintainability.


Google, 4 key themes

1. education: learning or teaching about some new in the code

2. maintaining norms

3. gatekeeping 

4. accidental prevention


How to do a code review

Friday, January 15, 2021

Banker's round

When you convert the floating-point value to a fixed-point value, you should change the value. It is rounding.

For example, there is a value "1.5".

fixed point (1.5) is 1 or 2, which one is the right value?


There are many rounding methods.

https://en.wikipedia.org/wiki/Rounding


1. normal round: Round_half_away_from_zero

2. bankers' round: Round half to even or http://www.xbeat.net/vbspeed/i_BankersRounding.htm (Gaussian rounding, round to even, bankers' rounding)