Evaluasi Kode Ruby Dengan Reek
- Categories:
- ruby
Gem Reek adalah sebuah gem yang dibuat oleh Kevin Rutherford untuk menganalisa atau melakukan code smell kode Ruby yang dibuat. Setelah melakukan code smell detection, Reek akan memberikan report yang sangat mudah untuk dimerngerti seperti di bawah ini.
Ada beberapa aspek yang digunakan oleh reek untuk melakukan code smell, diantaranya adalah sebagai berikut.
- Control Couple
- Data Clump
- Feature Envy
- Large Class
- Long Method
- Long Parameter List
- Simulated Polymorphism
- Uncommunicative Name
Dengan banyaknya aspek yang digunakan, akan membuat evaluasi kode menjadi lebih baik dan akan membuat programmer membuat kode lebih baik pula. Selain itu, Reek juga kompatibel dengan Ruby 1.8.6, 1.8.7, dan 1.9.1. Untuk informasi lebih detail, dapat dilihat wiki dari reek tersebut.
Recent Posts
Subdomain Hijacking
My dormant subdomain was recently hijacked, redirecting it to a online gamble registration page.
C# DbContext ServiceLifeTime
my note about C Sharp ServiceLifeTime
PostgreSQL Index Usage Monitoring
Having too many unused or underused indexes on a table can slow down write and update operations in your PostgreSQL database, making it crucial to regularly identify and manage them for optimal performance.
KAK Labs Newsletter #6 - Staying Safe From Pegasus Spyware
Newsletter #6 - Pegasus, Ruby, PostgreSQL and networkQuality tool
Material Design - Paragraph Spacing
According to Google's Material Design, keep paragraph spacing in the range between .75x and 1.25x of the type size.