2011年3月20日 星期日

Source code quality


Source
code quality





When you need to evaluate software products: applications, libraries,
frameworks... Open source software has a powerful tool to perform the
evaluation: the source code. It is like when buying a car, you see the
tyres, wheels, doors, interior equipment and so on, but it is worth to
open the bonnet and have a look at the engine.



Inspecting the
source code you can learn a lot of things about the software and the
team who developed it, if there is a disciplined and intelligent group
of people behind that software. The things I usually inspect while
browsing the source code developed by third parties are:



  • Is
    the code is well organized? Does if it follows coding guide lines like this one
    for java
    or this
    one for c#
    ?. Can you can understand what the classes and methods do
    reading the name? Is the code well commented?

  • Is the code
    complex? Is it spaghetti
    code
    or not. The code is complex when there are classes very big,
    methods have many parameters, and contains a lot of lines, classes have a
    lot of dependencies with other classes. An the opossite, the code is
    simple if classes are small, methods does not contain a lot of lines,
    you can recognize well known design patterns,
    there are not duplicated blocks of code.

  • Is the code managed
    with a version
    control system
    and the changes are reflected properly? Does the
    software have a bug database? Does it provide tests? Does it have a good
    logging system?



If you are an skilled developer or can ask
to one, you can also check more things regarding the source code, but
with these three aspects you can have a general idea about the source
code quality of a software product. It is impressive how your opinion
about the general quality of a product can change before and after
inspecting the source code. Is it better before to be tied to a software
product, to check also the source code. There will be less surprises in
the future.


Reference :
Source code quality

Related Posts:

  • Source code qualitySourcecode qualityWhen you need to evaluate software products: applications, libraries,frameworks... Open source software has a powerful tool to perfo… Read More
  • 為 blogger 留言區(comment) 加個對話框吧<!--2010_05_22 為 blogger 留言區(comment) 加個對話框吧 --> <b:if cond='data:comment.author == data:post.author'> … Read More
  • [學習區] 電腦語言手冊Cheat Sheet Roundup是一個很棒的網站,內有作業系統、程式設計、資料庫、網頁設計…等 30 餘種相關的資料手冊可供下載,還有Data Sheet可以下載。… Read More
  • 網頁裡面加“參考文獻” Number of elements(all other factors such as aperture, focal length, and coatings being equal)[1]^ http://en.wikipedia.org/wiki/Camera_lens… Read More
  • Linux 系统下 10 大開放源碼 POS 系统POS系统即销售时点信息系统,是指通过自动读取设备(如收银机)在销售商品时直接读取商品销售信息(如商品名、单价、销售数量、销售时间、销售店铺、购买顾客等),并通过通讯网络和计算机系统传送至有关部门进行分析加工以提高经营效率的系统。POS系统最早应用于零售业,以后逐渐扩展至其他如金融、旅馆等服务行业,… Read More

0 意見:

張貼留言