avatarBirat Rai

Free AI web copilot to create summaries, insights and extended knowledge, download it at here

676

Abstract

d-image: url(https://miro.readmedium.com/v2/resize:fit:320/)"></div> </div> </div> </a> </div><figure id="035f"><img src="https://cdn-images-1.readmedium.com/v2/resize:fit:800/1*omfa0JwF4OwYcJplkfGsOQ.png"><figcaption></figcaption></figure><p id="f372">那你看看這三個媒體,不分政治取向,如何寫她?</p><figure id="3727"><img src="https://cdn-images-1.readmedium.com/v2/resize:fit:800/1*ash4CSeuD85I2mKOUB9QgA.png"><figcaption></figcaption></figure><p id="e82a">對付,和對待,有什麼分別?</p><figure id="b429"><img src="https://cdn-images-1.readmedium.com/v2/resize:fit:800/1*Z_gv519rWWdgbiEny-J80A.png"><figcaption></figcaption></figure><figure id="ce82"><img src="htt

Options

ps://cdn-images-1.readmedium.com/v2/resize:fit:800/1*NwgG-JjszBSrypqL7-cszA.png"><figcaption></figcaption></figure><figure id="32a2"><img src="https://cdn-images-1.readmedium.com/v2/resize:fit:800/1*_Y4aK9Q0X2zM7QVprX-_gg.png"><figcaption></figcaption></figure><p id="5158"><b>你為什麼這樣對待我?</b></p><p id="55cc"><b>你為什麼這樣對付我?</b></p><p id="e5cf">用小學中文的程度都知道有分野,為何會變成這樣的呢?</p><p id="ff8a">是新聞公報,以及在網路的短片,電台的聲帶都出錯,經過AI修正,所以777這種好打得,就會說「對付我」這種<b>「大婆受委屈家陣你要幫我」</b>的字眼?</p><p id="17a0">對待我,我覺得都有點敵意,但都尚算中性。至少不會說「外國勢力在對付」她那麼「撩交嗌」。</p><p id="affa">還是,大家都知道,這個世界覺得把777罵到半死就有收視,所以就付待不分?而你寫出來,是不是就是幫了777了?常聽人說,什麼人很愛罵人是content farm……</p><p id="d383">那,這一次,究竟是付,還是待,有人在乎嗎?</p></article></body>

Step 62: Only the Code Tells the Truth ~ Peter Sommerlad

This is the 62nd Step towards gaining the Programming Enlightenment series. If you didn’t learn the 61st Step, read it.

“Truth Can Only be Found in One Place: the CODE.” ~ Robert C. Martin

Code comments, software documentation, and the technical specification don’t get updated when the code changes. The CODE always reflects the software’s actual behavior.

Understanding code

All of the design and requirement documents may not capture the detail of the implementation. They may have been lost or never written in the first place. Thus, it is the code that only reveals what decision or design specification are currently used or the code actually does.

With the source code being the ultimate source of truth, when a developer codes, they need to keep in mind that either they need to maintain the code down the line or some other developer will have to. So, we must make sure the code is clean and readable.

How to make CODE understandable?

  • Comments are great. But, if you have to explain what your code does through comments, we should consider refactoring it. Code tends to change fast but not the comments.
  • Strive for good names.
  • Structure your code ie clean code architecture.
  • Decouple your code to achieve orthogonality.
  • Refactor mercilessly to make the code a simpler, better solution.
  • Treat your code like any other composition, such as poem, essay or blog.

TL;DR Treat your CODE like any other composition, such as poem, essay or blog. It should be readable and joyful to other developers.

Go to the series.

Go to 61st Step

Go to 63rd step

References:

Software Development
Clean Code
Java
Coding
Android
Recommended from ReadMedium