Why need to train your code sense?

来源:互联网 发布:制作微课都用哪些软件 编辑:程序博客网 时间:2024/05/16 14:49

What is code sense?

Code sense is a skill that allow you write more specific and descriptive code sense in detail level.It is a subconsicous skill,once you learn and train it.You can use it use the rest of your life like riding a bike.


How can I benefit from code sense?

Firstly,we need to admit a fact that the read/write ratio of program fragment is 10/1 times.With low code sense,in a one personal program,I use 1 time unit to write and 0.3 time unit to read.Therefore,for each program fragment,mine total spend of time is 0.3*10 + 1 = 4.With higher code sense,in a one personal program,I use 1.1(a subconsicous act don't need many time to practice) time unit to write and 0.1 time unit to read.The time usage of time fragment will become 0.1*10 + 1.1 = 2.1.


(4-2.1)/4 * 100%=47.5%.It can save you almost half the time which allow you to spend your time on study and life.



0 0
原创粉丝点击