Hyper local air pollution data and electronic health records can assess cardiac risk

A new study in the journal Environmental Health, which can be downloaded here shows that differences in traffic-related air pollution are associated with higher rates of heart attacks and deaths from…

Smartphone

独家优惠奖金 100% 高达 1 BTC + 180 免费旋转




The Power of TDD and A Good Test Case

Django memang bukan framework yang menawarkan kemudahan concurrent programming, asynchronous programming , atau object-oriented programming. Django menawarkan kemudahan dalam melakukan TDD yang pada masa ini sangatlah berguna karena banyaknya penggunaan agile methodology dalam pengembangan perangkat lunak. Kemudahan ini sangat saya rasakan ketika meneruskan pengembangan suatu aplikasi web.

Test case yang baik sangat memudahkan para developer yang meneruskan pengembangan software. Saya sering melihat sebuah test case sebagai sebuah “dokumentasi” untuk fungsi yang sedang dites tersebut. Hal ini karena saya dapat melihat input dan expected output dari fungsi tersebut. Dengan mengetahui kedua hal tersebut, saya bisa langsung memahamai kegunaan fungsi tersebut tanpa harus memahami source code dari fungsi tersebut, sehingga mempercepat pengembangan software.

Pada tugas proyek kelas “kape” kali ini saya merasa sangat dimudahkan dengan test cases yang telah dibuat dengan baik. Saya hanya perlu memahami testing framework dari Django Rest Framework dan test cases yang sudah ada. Dengan memahami test cases yang sudah ada, saya tidak perlu membuat test case saya dari awal karena saya hanya perlu melihat test case yang mengetes hal yang serupa dengan fitur yang akan saya buat.

Add a comment

Related posts:

Writing Fiction That Soars In Bestseller Lists

Writers of fiction are familiar with the art of letting their imaginations soar up to the heavens. I f you have a good imagination you can imagine worlds beyond your wildest dreams, creatures of the…

On Aging

Aging is a mystery we can’t solve no matter how much we might desire to do so. We just live it, if we’re lucky. Although it might not always feel so lucky. But maybe, if we could hear the honest…

How to add a new blockchain into Gravity

This article is part of Gravity documentation that pertains to the technical aspects of the protocol and network. It provides an all-encompassing, example-based overview that demonstrates what a…