r/Clojure • u/WalberAraujo • Dec 12 '25
Research on code smells in Clojure
Hello everyone. We are researchers from the Federal University of Campina Grande (UFCG), and we are investigating code smells in Clojure. We have built a catalog of 35 Clojure-specific code smells, based on discussions from practitioners in blogs, websites, forums, and also from mining GitHub projects.
We had the opportunity to validate a subset of these 35 smells in a session with developers from Nubank, and we are now sharing the work across community channels to reach even more Clojure practitioners.
Here is the link to a short survey, in which you will answer only 7 smells, randomly selected from the 35. If you’d like to check out the full catalog, it is available here. Feel free to open issues and pull requests!
16
u/mac Dec 12 '25
Is there concensus that Misused Threading is really a code smell?
5
u/solstinger Dec 12 '25
I think that clj-kondo already covers most of them. Nice read tho!
5
u/mcsee1 Dec 12 '25
Will complete the survey.
If you need more . Here you have 314 code smells (not all in Clojure) https://maximilianocontieri.com/how-to-find-the-stinky-parts-of-your-code
4
u/spotter Dec 13 '25
Half of this list is advanced language features that were marked as "code smell" in some PR comments and forums discussions. There's very little "why bad" explanation above "it is bad taste", so while I'd rather not put atom inside an atom, threading macros and cheeky
defprotocolfor objects and records are to be used in specific cases, some of which are being called out here as "just don't". Cool beans.0
u/Other-Background-515 Dec 12 '25
Huehuehue
0
u/[deleted] Dec 13 '25
[deleted] — view deleted comment