Skip to content
gqlxj1987's Blog
Go back

Line of sight in code

Edit page

原文链接

通过在阅读代码的sight来关注code的优化问题,有意思的视角

Line of sight is “a straight line along which an observer has unobstructed vision”

good code, The idea is that another programmer (including your future self) can glance down a single column and understand the expected flow of the code.

Most people focus on the cost of writing code (ever heard “how long will this take to finish?”) But the far greater cost is in maintaining code — especially in successful projects. Making functions obvious, clear, simple and easy to understand is vital to this cause.

Tips for a good line of sight:


Edit page
Share this post on:

Previous Post
Running keras model in golang
Next Post
天元突破