Re: Which do I use for web design?
- From: jmDesktop <needin4mation@xxxxxxxxx>
- Date: Mon, 9 Jun 2008 06:51:59 -0700 (PDT)
On Jun 7, 10:02 am, "Arved Sandstrom" <asandst...@xxxxxxxxxxxxx>
wrote:
"Lew" <con...@xxxxxxxxxxxxxxxxxxxxx> wrote in message
news:A92dneCoV5QU8drVnZ2dnUVZ_sKdnZ2d@xxxxxxxxxxxxxx
Arne Vajhøj wrote:
It is significant easier to write JSP pages than servlets.
JSPs are approximately as hard to write as HTML.
JSF is slightly harder, mitigated by the presence of decent visual tools..
Even with a text editor JSF isn't overly hard for what it offers, though I
admit getting into the mindset of it took me a while. FWIW, the key was a
now-lost link that advised to think of JSF as similar to Swing.
JSP and JSF make a nice staged learning ramp. Get comfy with JSP first.
Normal form widgets like <input type="text".../> are just fine for a broad
category of web apps. Then take your time to assimilate JSF, starting
with the easiest stuff first. Then dive into richer frameworks built atop
JSF, like Tomahawk and Tobago.
Luckily for us these technologies dovetail well that way.
<http://myfaces.apache.org/tomahawk/index.html>
<http://myfaces.apache.org/tobago/index.html>
<http://myfaces.apache.org/>
--
Lew
Good post (not to mention some of your others, plus Arne's). To someone who
is a bit overwhelmed by everything out there (like the OP, and like I have
been myself from time to time), I usually suggest taking the time (and it
really doesn't take that long) to design and code a best practices MVC
servlet/JSP/beans web app: servlet as controller, JSPs as view, and beans
for the model. Pretty much bare metal, and it provides the grounding for
understanding what frameworks will do for you. Let's call this Stage A.
The next stages that you mention are also ones that I would agree with.
Although any of a number of different frameworks could also be championed.
The key is to keep in touch with what the framework is doing for you that
originally you did in Stage A.
As you point out, there's typically Stage B, which is the initial framework
that replaces Stage A (you coding everything). And then there's Stage C,
which typically involves enriching the UI somehow - maybe better widgets,
maybe AJAX, maybe both.
These are all front end elaborations, really. Getting fancier with the
backend (the model), with ORMs and/or EJBs etc, is another matter. Similar
process, though. For a simple app you can get away with well-designed but
essentially hand-coded DB access...later on you'll also see that having
something else take care of that for you is nice.
Main thing though, it is very easy to lose sight of exactly what it is these
things do for you. I sympathize with the OP.
I was sort of lucky in this regard (your perspective may differ). I may date
myself, but I was already well into a second decade of programming before
HTML and Mosaic and Lynx ever showed up. CGI shortly followed. There were
obviously best practices back then, but often loosely observed. My first
exposure to J2EE was precisely of the kind I describe as Stage A - the main
reason being, it was J2EE 1.2 back on 1999-2000, and we had no choice. We
had EJB 1.1 session beans and BMP entity beans, Servlet 2.2, JSP 1.1...the
app had to deliver WML/HDML content to cellphones and HTML to browsers, so
we also used XML/XSLT, and ended up coding our own custom JSP tags for the
latter. By some incredible stroke of good luck our smallish developer team
(about half a dozen at the start in '99) was just overloaded with guys that
had reams of industry experience (*), and although MVC was new to us, it
just seemed "right". Actually, in 1999 almost everything I describe, Java
included, was more or less "new".
God knows the J2EE app servers were...we spent about three months with
Netscape trying to debug a fundamental bug that they had in iPlanet related
to primary key classes. What saved our bacon on this front was that we
discovered Evermind's Orion J2EE server (for a 2000 blurb seehttp://www.serverwatch.com/sreviews/article.php/1376021), which was then
(and for a long time afterwards) a developer's first choice for J2EE. IMHO..
I would never again want to do that much work for what these days would be
classified as a small/medium enterprise application. But I never regret
having had to do it. Because now I know what all these frameworks and IDEs
are doing to save my time.
AHS- Hide quoted text -
- Show quoted text -
Thanks. What I have discovered over the past several years is that I
really am not as experienced as I thought and that frameworks and
IDEs, in a way, have made me dumb. In my quest to find the answer to
web programming I found that unless you have a framework, then
regardless of language everything is about the same. Looking back at
all my ASP.NET programming and skipping that it was a framework, I
thought I knew what I was doing. That framework made me productive,
but it made me not really understand also. Visual Studio, a great
tool, also shielded me from much. And, I didn't even know it. I
thought I had arrived from my Classic ASP.
Later on I start discovering other frameworks and using other
languages. What I noticed was that every time I sat down to write a
web app it was always the same. It was just like classic ASP
(vbscript and javascript), C, Perl, and later on Python, Java (JSP, or
servlets.) I had my mix of code and html all right there together,
just as ugly as you can find anywhere. And today, if I started
something, this what I'd have. Code and presentation all mixed
together. Just the other day I thought I'd write a web app in Python
and noticed immediately what is obvious to many people.
If I did this type coding long enough, you'd think I'd change, but I
didn't until ASP.NET when I was actually exposed to some separation of
layers. Without the tools, however, I was back to the old. My point
is that what I now know is I either pick a framework, write my own
framework, or I am stuck with the mixture of layers.
I also understand why the frameworks were created and I admire the
folks from all the languages that wrote them. They are the ones that
really understand what's going on. I think I do too now, but am
woefully inept to even begin to create an MVC framework.
.
- Follow-Ups:
- Re: Which do I use for web design?
- From: Arved Sandstrom
- Re: Which do I use for web design?
- References:
- Which do I use for web design?
- From: jmDesktop
- Re: Which do I use for web design?
- From: Roedy Green
- Re: Which do I use for web design?
- From: Arne Vajhøj
- Re: Which do I use for web design?
- From: Roedy Green
- Re: Which do I use for web design?
- From: Arne Vajhøj
- Re: Which do I use for web design?
- From: Lew
- Re: Which do I use for web design?
- From: Arved Sandstrom
- Which do I use for web design?
- Prev by Date: Re: Which do I use for web design?
- Next by Date: Re: Java hosting.
- Previous by thread: Re: Which do I use for web design?
- Next by thread: Re: Which do I use for web design?
- Index(es):
Relevant Pages
|