Version française
Home     About     Download     Resources     Contact us    

This site is updated infrequently. For up-to-date information, please visit the new OCaml website at

Browse thread
How to refactor a large Ocaml program
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 2006-12-13 (13:57)
From: Richard Jones <rich@a...>
Subject: Re: [Caml-list] How to refactor a large Ocaml program
On Thu, Dec 14, 2006 at 12:09:22AM +1100, Pietro Abate wrote:
> not an answer, but a general comment, maybe also a bit OT ...
> For me 10K loc for a logical unit is the maximum I can hold in my
> head at once. More then that drive me crazy and often induces me to
> re-think my entire architecture.
> Does this match your experience ?

I just analysed all the code written by Merjis, all 77,070 lines of
it.  (This is split across dozens of programs and libraries.)

Longest files:

   1905 ./freeware/weblogs/
   1149 ./freeware/pgocaml/

The first wasn't written by me, but snarfed from mldonkey. The second
is mostly a series of translations between PostgreSQL types and OCaml
types, so it doesn't really count as complicated.

573 files, so average lines/file = 134 lines.

Median is 77 lines.

Refactoring is something we've certainly not worried about.


Richard Jones, CTO Merjis Ltd.
Merjis - web marketing and technology -
Internet Marketing and AdWords courses - - NEW!
Merjis blog - - NEW!