From: Richard Jones <rich@annexia.org>
To: Pietro Abate <Pietro.Abate@anu.edu.au>
Cc: caml-list@yquem.inria.fr
Subject: Re: [Caml-list] How to refactor a large Ocaml program
Date: Wed, 13 Dec 2006 13:57:23 +0000 [thread overview]
Message-ID: <20061213135722.GA1258@furbychan.cocan.org> (raw)
In-Reply-To: <20061213130922.GA17914@pulp.rsise.anu.edu.au>
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/weblogs_charset.ml
1149 ./freeware/pgocaml/pGOCaml.ml
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.
Rich.
--
Richard Jones, CTO Merjis Ltd.
Merjis - web marketing and technology - http://merjis.com
Internet Marketing and AdWords courses - http://merjis.com/courses - NEW!
Merjis blog - http://blog.merjis.com - NEW!
next prev parent reply other threads:[~2006-12-13 13:57 UTC|newest]
Thread overview: 25+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-12-13 12:37 Mattias Waldau
2006-12-13 13:09 ` [Caml-list] " Pietro Abate
2006-12-13 13:46 ` Jon Harrop
2006-12-13 13:53 ` skaller
2006-12-13 13:57 ` Richard Jones [this message]
2006-12-13 14:00 ` Yann Coscoy
2006-12-13 14:09 ` Jon Harrop
2006-12-13 14:31 ` Yann Coscoy
2006-12-13 14:42 ` Mattias Engdegård
2006-12-13 16:48 ` Gerd Stolpmann
2006-12-13 17:08 ` Jon Harrop
2006-12-13 13:51 ` Jim Miller
[not found] ` <45800CD5.8050401@janestcapital.com>
2006-12-14 8:09 ` Mattias Waldau
2006-12-14 11:59 ` Bruno De Fraine
2006-12-14 13:47 ` Brian Hurt
2006-12-15 15:33 ` Florian Hars
2006-12-16 10:14 ` Remi Vanicat
2006-12-16 13:53 ` Christian Stork
2006-12-18 19:37 ` Florian Hars
2006-12-15 5:07 ` Jacques Garrigue
2006-12-15 7:49 ` Mattias Waldau
2006-12-15 12:36 ` Jan Rehders
2006-12-15 13:11 ` skaller
2006-12-14 8:21 ` Mattias Waldau
2006-12-15 17:23 ` malc
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20061213135722.GA1258@furbychan.cocan.org \
--to=rich@annexia.org \
--cc=Pietro.Abate@anu.edu.au \
--cc=caml-list@yquem.inria.fr \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox