Novel Thoughts on Scripting and Languages

James Huang judoscript at hotmail.com
Sat Jan 11 01:27:53 EST 2003


vvainio at tp.spt.fi (Ville Vainio) wrote in message news:<ad496f8.0301100610.74586ad7 at posting.google.com>...
> judoscript at hotmail.com (James Huang) wrote in message news:<52719db8.0301071942.7d23cc46 at posting.google.com>...
> 
> 
> > This is an example of scripting:
> > 
> >   sendMail
> >      from:  'me at here.com'
> >        to:  'a at b.com, b at c.com'
> >        cc:  'd at e.com'
> >   subject:  'test test'
> >    attach:  'bin.jar'
> >      body:  [[*
> >                 blah blah blah
> >                 blah blah
> >             *]]
> >  htmlBody:  [[*
> >                 <html><body><b>Blah</b> blah
> >                 </body></html>
> >             *]]
> 
> Yes, I found your example much more powerful, readable and
> outrageously different from the hypothetical
> 
> import highlevelmailmodule
> 
> highlevelmailmodule.sendmail(from='me at here.com',
>          to='you at there.com',
>                 ... etc
> 

Thank you! Thank you! Thank you!
It's amazing that someone on this list can actually say this.

> > I searched for a Python email example, found one at
> >    http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/67083
> > a peek will do. I wish I had explained better with examples, but ...
> 
> The conservative approach for cratching such an itch is to implement a
> higher lever library module, not to invent a new language, operating
> system or processor architecure.

Nobody would even think about inventing a new language just for that
sendMail statement. JudoScript's initial goals were: JDBC scripting,
EJB scripting and XML/SGML scripting. Once the foundation was ready,
it is naturally extended to other fields such as this one. And this
will carry on to more.

> 
> > I've heard big software projects done in Python, guess that's what you
> > are referring to. Being a C/C++/Java guy, it is hard for me to imagine
> > creating big software with weakly-typed languages beyond prototyping.
> 
> It is true that it's very easy to *imagine* creating big software with
> Java. However, it's easier to actually create that software in Python.

Thanks,
-James




More information about the Python-list mailing list