From owner-freebsd-questions Tue Sep 19 11:13:21 2000 Delivered-To: freebsd-questions@freebsd.org Received: from mail-out.visi.com (kauket.visi.com [209.98.98.22]) by hub.freebsd.org (Postfix) with ESMTP id 45CE537B42C for ; Tue, 19 Sep 2000 11:11:11 -0700 (PDT) Received: from isis.visi.com (isis.visi.com [209.98.98.8]) by mail-out.visi.com (Postfix) with ESMTP id 7C41037B9; Tue, 19 Sep 2000 13:11:06 -0500 (CDT) Received: from localhost (cothomps@localhost) by isis.visi.com (8.8.8/8.8.8) with ESMTP id NAA17125; Tue, 19 Sep 2000 13:11:06 -0500 (CDT) X-Authentication-Warning: isis.visi.com: cothomps owned process doing -bs Date: Tue, 19 Sep 2000 13:11:06 -0500 (CDT) From: "Chad O. Thompson" To: Shawn Kelly Cc: questions@FreeBSD.ORG Subject: Re: Programming Model In-Reply-To: <20000919142017.6953.qmail@web5105.mail.yahoo.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Tue, 19 Sep 2000, Shawn Kelly wrote: > > In the world of Microsoft Windows I beleive the following is recommended for web based applications: > > Place business rules into COM objects on the web server > The Web Client should just be used for the UI > Well, despite the COM reference, this pretty much covers any business/web programming you would ever want to do. (Either in C++, Java, Perl, etc.) To give you a little more background, typically you want to follow the "Model-View-Controller" methods as closely as possible. (To maximize code reuse, to seperate concepts, etc.) Example: "Model": Your data. Databases, business objects, etc. "View": The User Interface "Controller": Objects or methods that control the interface between your data and the UI. (As a note: There are a *lot* of programming architecture books out there that address this pretty well. These concepts are especially strong in Object-Oriented languages.) As for a 'BSD' model, you might have something like this: HTML Form -> CGI Perl Script -> Database (basic) HTML Form -> CGI C++ Object -> C++ Business Objects -> Database etc., depending on your business requirements. At work, I've been dealing with pure Java 2 Enterprise Edition objects, so the system works like this: HTML/Javascript page -> Java Servlet -> Session EJB -> Entity EJB -> Database etc., etc., etc..... Just find a good book or two on software design, ask around, and decide what architecture is best for your project/website. The 'FreeBSD World' is essentially the rest of the world minus Microsoft.. 8) > What is the best model for the FreeBSD world and where can I find more information about it? > > Thank you. > > > > --------------------------------- > Do You Yahoo!? > Send instant messages & get email alerts with Yahoo! Messenger. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message