[erlang-questions] Design methodology going from Object oriented to functional programming?

Alexander Lamb <>
Mon Oct 22 16:19:00 CEST 2007


Thanks,

I had obviously totally overlooked the processes aspect!

So, for example in a session-full web application, the initial  
logical step would be to define one process per connected user and  
see if in addition to that some other services could be made  
concurrent by adding processes. The supervision tree is less clear  
for me, especially in a web application. I suppose if you distribute  
processes on several nodes, you want to make sure the connected user  
process is notified in case of a problem and the faulty process gets  
restarted somewhere.

Related to this, I will also have some questions about fault  
tolerance, but this will be the subject of another mail.

Alex

Le 22 oct. 07 à 16:07, Vance Shipley a écrit :

> Andrew,
>
> As a Concurrency Oriented Programming Language (COPL) the first
> thing I believe you want to do is to decide what processes you
> will use.  After modeling the concurrency aspects the next thing
> I do is to model the supervision heirarchy.  Only after this is
> done do I reason about what a user API will look like.
>
> 	-Vance
>
> On Mon, Oct 22, 2007 at 02:47:44PM +0200, Alexander Lamb wrote:
> }   Indeed, in the object oriented world, I would start by finding  
> what my
> }   classes might be and the relationship between them. Gradually I  
> would add
> }   functions (class or instance methods) to the classes in order  
> to provide
> }   solid foundations on top of which I can write an application.
>

--
Alexander Lamb
Founding Associate
RODANOTECH Sàrl

4 ch. de la Tour de Champel
1206 Geneva
Switzerland

Tel:  022 347 77 37
Fax: 022 347 77 38

http://www.rodanotech.ch



-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20071022/12c823d8/attachment.html>


More information about the erlang-questions mailing list