Need advice about which tool to choose?Ask the StackShare community!
Reek vs SourceLevel: What are the differences?
Developers describe Reek as "Code smell detector for Ruby". Reek is a tool that examines Ruby classes, modules, and methods and reports any Code Smells it finds. On the other hand, SourceLevel is detailed as "Metrics and Automated Code Review for Engineering Teams". It runs more than 30 different engines and supports lots of programming languages. It comments straight into pull requests the found issues, so your team can easily spot and fix them. In adittion, we show charts showing your code health, so you can follow its improvement over time.
Reek and SourceLevel can be categorized as "Code Review" tools.
Reek is an open source tool with 3.26K GitHub stars and 233 GitHub forks. Here's a link to Reek's open source repository on GitHub.
To communicate isn’t just getting rid of syntax errors and making code work. The code should communicate ideas to people through a programming language that computers can also understand.
You should adopt semantic variables, classes, modules, and methods names. For instance, in Ruby, we avoid using particular prefixes such as is_paid
, get_name
and set_name
. In their places, we use directly paid?
, name
, and name=
.
My advice is to use idiomatic and features that the programming language you use offers to you whenever possible, and figure out ways to better pass the message.
Why wouldn’t we be worried about semantics, typos, and styles? We should care for the quality of our code, and the many concepts that define it. You can start by using a linter to collect some issues from your codebase automatically.