Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 4274502
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 21, 20262026-05-21T07:51:21+00:00 2026-05-21T07:51:21+00:00

We are considering writing a static analyzer to collect software metrics for Clojure code.

  • 0

We are considering writing a static analyzer to collect software metrics for Clojure code. Of course it will handle the obvious stuff like number of files, functions, parameters per function, etc. I wonder if there are any metrics that are specific for Clojure code. Any ideas?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-21T07:51:22+00:00Added an answer on May 21, 2026 at 7:51 am

    On average – I think that software metrics are a dubious idea – they usually distract you from the really important question which is “how much value are we delivering to the customer??”.

    Having said that, I recognise they can be a necessary evil in some contexts and can occasionally give you some useful insights about your code base.

    So here’s a few that might be Clojure-specific.

    • Number of top-level defines (perhaps expressed as a ratio to total symbol count?)
    • Java coupling: % of symbols related to Java interop (new, ClassName., .someMethod etc.) – ideally keep coupling confined to specific modules responsible for Java interop, i.e. should be verey low % everywhere except libraries that manage the interop.
    • Average maximum nesting level of function defns (I guess 5ish good, 10+ bad??)
    • Macro density: % of forms that require macro expansion
    • % of functions with docstrings
    • % of symbols or function parameters defined with type hints
    • Average size of anonymous functions (these should probably be small!)
    • % of functions in clojure.core used (gives some idea of the “vocabulary range” and sophistication of the code)
    • (Thanks nickik!) number of ref-types created (dynamic vars, atom, ref and agent) – essential if you want to keep careful control of your mutable state!

    p.s. if you get this working it would be really interesting to see the variation in results across some of the different open source clojure projects!

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I considering writing an application in C#/.NET that will programmatically alter an XML file
We're considering writing the next version of out project in using .Net 3, but
I am considering writing a simple database application for my wife, but I'm hung
Considering such code: class ToBeTested { public: void doForEach() { for (vector<Contained>::iterator it =
Considering this code, can I be absolutely sure that the finally block always executes,
Considering you have an MVVM Architecture in WPF like Josh Smith's examples How would
Considering writing a wifi cracking ( wep , wpa ) auditing tool for the
I am considering writing a mobile application for one of the following mobile platforms:
I'm writing a simple program that has a couple of functions that look like
Considering private is the default access modifier for class Members, why is the keyword

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.