caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: Jonathan Bryant <jtbryant@valdosta.edu>
To: caml-list@yquem.inria.fr
Subject: FP & Software Engineering
Date: Wed, 29 Mar 2006 18:01:11 -0500	[thread overview]
Message-ID: <1143673272.14880.31.camel@localhost.localdomain> (raw)

Ok.  I have a question (or set of questions) that requires the expertise
of the list, so here it goes:

For my Software Engineering II class, which is very heavily based around
object oriented design patterns, I have implemented all 10 assignments
(so far) in OCaml using simply the functional aspects of the language
(no objects).  Each pattern has been used in a rather purist form.  For
example, strategy and iterator were simply higher order functions, while
things like command were implemented using closures/lexical scoping.
This makes for code that is faster, more efficient, and cleaner than my
fellow students' Java/C++ code.

I've been fighting my professors to let me use OCaml for over a year now
and this professor is, at least, the first one who's halfway letting me
use it.  Unfortunately, he is not completely convinced.  Being a OO &
ASP/.NET junkie and never having seriously used a functional language,
he is lost as to HOFs, functors, partial application, etc. and isn't
really convinced that they are useful/necessary (I also believe he
hasn't more than glanced at the code).  He is also demanding UML
diagrams of my code with these notated in it.

Has anybody ever come up with a way of doing these things (HOFs,
functors, partial application, module types, parametric polymorphism) in
UML or any kind of modeling language?  If not, how are these things
usually notated in academic settings (symbolicly, not verbally)?  Is
there anything I can make visually that qualifies?  Google did not
reveal a modeling language for FPLs, so I'm lost.

--Jonathan Bryant



             reply	other threads:[~2006-03-29 23:01 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-03-29 23:01 Jonathan Bryant [this message]
2006-03-29 23:38 ` [Caml-list] " skaller
2006-03-30 14:42 ` Jean-Christophe Filliatre
     [not found] ` <Pine.LNX.4.63.0603311500560.4669@phonographe.labri.fr>
2006-03-31 20:27   ` Jonathan Bryant

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=1143673272.14880.31.camel@localhost.localdomain \
    --to=jtbryant@valdosta.edu \
    --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;
as well as URLs for NNTP newsgroup(s).