Re: [OT] RE: Is there any Jsp template like Smarty template ?

2005-06-29 Thread Simon Chappell
Take a look at some code generated by lex or yacc and be prepared for
an eye-opening! :-)

On 6/29/05, Durham David R Jr Ctr 805 CSPTS/SCE
<[EMAIL PROTECTED]> wrote:
> > I stick to my assertion that it is not auto-generated. It might
> > be inserted by the IDE, but it is not written by the IDE.
> 
> Maybe we are splitting the auto-generated hair, but I'll concede the
> point.  There probably is some level of code generation complexity that
> distinguishes between simple macros and auto-generated code.
> 
> 
> - Dave
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 


-- 
www.simonpeter.com

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: [OT] RE: Is there any Jsp template like Smarty template ?

2005-06-29 Thread Durham David R Jr Ctr 805 CSPTS/SCE
> I stick to my assertion that it is not auto-generated. It might 
> be inserted by the IDE, but it is not written by the IDE.

Maybe we are splitting the auto-generated hair, but I'll concede the
point.  There probably is some level of code generation complexity that
distinguishes between simple macros and auto-generated code.


- Dave

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: [OT] RE: Is there any Jsp template like Smarty template ?

2005-06-29 Thread Mark Galbreath
Craig?  Is that old fart still around?  I thought he was deeply involved in JSF 
now.

;-)

~mark

-Original Message-
From: Durham David R Jr Ctr 805 CSPTS/SCE
[mailto:[EMAIL PROTECTED]
Sent: Wednesday, June 29, 2005 3:51 PM
To: Struts Users Mailing List
Subject: [OT] RE: Is there any Jsp template like Smarty template ?


> I see the morons around this list are as gullible to my posts 
> as ever

Careful, you could get modded -1 troll and have your messages sent to
Craig's noise folder.


- Dave

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]






***
This email and any file transmitted with it may be confidential and is intended 
solely for the use of the individual or entity to whom it is addressed.  If you 
received this email in error please notify the DBM Service Desk by forwarding 
this message to [EMAIL PROTECTED]


This email has been scanned by networkMaryland Antivirus Service for the 
presence of computer viruses.






***
This email and any file transmitted with it may be confidential and is intended 
solely for the use of the individual or entity to whom it is addressed.  If you 
received this email in error please notify the DBM Service Desk by forwarding 
this message to [EMAIL PROTECTED]


This email has been scanned by networkMaryland Antivirus Service for the 
presence of computer viruses.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [OT] RE: Is there any Jsp template like Smarty template ?

2005-06-29 Thread Simon Chappell
On 6/29/05, Durham David R Jr Ctr 805 CSPTS/SCE
<[EMAIL PROTECTED]> wrote:
> > Most autogenerated code is less programmer friendly than it could
> > be, it's purpose being to be easily created rather than read and
> > maintained.
> 
> I call throwing out the baby with the bathwater.  The "unreadable" code

I'd never do that. You've obviously never read my blog:
http://uab.blogspot.com/2005/05/art-of-bathing-very-small-children.html

> that is being spoken of, I presume, is basically UI stuff.   IMO, UI
> code has a tendency towards being difficult to follow regardless of how
> it was generated.  Anyway, that's only one type of IDE-generated code.

True, but a very real sort, nonetheless.

> Probably the most useful code generation available to good editors is
> code completion, and it's a big time and frustration saver, especially

I understand code completion but reject it as an example of good
auto-generated code. It is programmer code stored and retrieved by the
programmer for the programmer. It is not auto-generated.

> for new programmers.  Beyond that, some examples of fully readable code
> generation are File templates and Macros (Live templates in IDEA
> parlance).
> 
> As an example, when I want to right a debug statement, I simply type:
> 
>debug
> 
> and hit 'tab'.  IntelliJ then writes the following:
> 
>if (log.isDebugEnabled()) {
>log.debug();
>}
> 
> I then type my log statement and hit enter.  Much faster than typing the
> whole thing out or even cutting and pasting.
> 
> Here's the IntelliJ Live template if anyone is interested:
> 
>if (log.isDebugEnabled()) {
>log.debug($VAR$);
>}$END$
> 
> 
> That's one, overly simple, example of very readable IDE-generated code.

I stick to my assertion that it is not auto-generated. It might be
inserted by the IDE, but it is not written by the IDE.

> Just to finish this post, the biggest mistake I see being made wrt IDE's
> is to become completely dependent on them.  For example, it's worthwhile
> to have IDE independent build processes and unit testing.

Now, here is a point where I can agree with you. Our deployment builds
at work are done in ant for just exactly the purpose of being
independent from specific IDEs.

Simon

-- 
www.simonpeter.com

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: [OT] RE: Is there any Jsp template like Smarty template ?

2005-06-29 Thread Mark Galbreath
Does it spell-check for you, too?  No wonder you need an IDE

-Original Message-
From: Durham David R Jr Ctr 805 CSPTS/SCE
Sent: Wednesday, June 29, 2005 3:43 PM

As an example, when I want to right a debug statement, I simply type:

...





***
This email and any file transmitted with it may be confidential and is intended 
solely for the use of the individual or entity to whom it is addressed.  If you 
received this email in error please notify the DBM Service Desk by forwarding 
this message to [EMAIL PROTECTED]


This email has been scanned by networkMaryland Antivirus Service for the 
presence of computer viruses.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]