Re: thankee, thankee!

2008-02-19 Thread Tim Daneliuk

Gary Kline wrote:

On Tuesday 19 February 2008 08:16:57 Chad Perrin wrote:

On Tue, Feb 19, 2008 at 09:20:47AM -0500, William Bulley wrote:

According to Tim Daneliuk <[EMAIL PROTECTED]>:

Before you go down this road too far, you should take a look at Python
as an implementation language. If what you're doing involves text and
string manipulation, Python is loaded with good modules that will make
your task a snap. Having coded extensively in many assemblers, C,
BASIC, ... I now find myself reaching exclusively for Python when
writing applications and utilities unless the task at hand must have
the performance of native C. Try it ... you'll be shocked how fast
your program comes together.

Might the same not be said for Perl?

Yes . . . and Ruby.  I prefer both over Python, for different reasons,
personally.


Gotta laugh at most of this  considering that I understand that we tend to 
favor what we're most familiar with.  I've been lazing along for several 
years since I've gone back to school--sort of.   During my last lifetime I 
was trapped into learning perl and forced myself to get into C++ because
much of my work required these languages.  

Can you guys, or anybody else, point me to some comparison sites for python 
and ruby?  I just found one abandoned freeware suite in ruby that may be just 
what I'm trying to do.  The deal is: do I want to invest months (from 2 to 3)
in learning another language/ or port from ruby to C? or take the Java 
functions and re-write or translate them to C?


Still, first thing is to get the algorithm down and tested.



http://blog.ianbicking.org/ruby-python-power.html

Basically, you'll discover that Python and Ruby do many of the same things
in similar, but different ways.  The OO purists like Ruby because it tends
(as I understand it) to be more academically pure as an OO language.
Many web apps folk also like Ruby because of the well-received Ruby-On-Rails
framework.

OTOH, Python is highly regarded because of its very rich library support,
excellent cross-platform consistency, and ability to switch programming
paradigms in mid-program.  The last bears a bit of explanation.  Most
languages have you programing in one paradigm: imperative/procedural
(Algol-derived), functional (Haskell), list processing (LISP),
Object Oriented (C++, Java), etc...  But here in the Real World, a
single paradigm is not always a good idea.  (With slight modesty, may
I suggest a read of something I did a while back on this subject:

  http://www.tundraware.com/Technology/Bullet/

One of Python's great virtues is that it lets you "switch gears"
paradigmatically in the middle of a program to use the model that best
suits your problem. So for, instance, you can be doing OO programming,
but quickly switch to procedural programming when the code needs to do
DBMS access - a place where there has always been an OO/DBMS
"impedance mismatch" in the past.

As to the learning curve. If you are an experienced programmer in any
decent language (C, BASIC, Java, Perl, Ruby, ...), you can learn the
essence of Python in an afternoon, not weeks or months. As I said,
I've been doing this for a while. Moreover, my graduate work was in
languages and automata. This means I am a language dork. In several
decades of fiddling around with languages, I have *never* seen one as
elegant, expressive, maintainable, and efficient for the programmer as
Python. No, it's not as fast as native C, but unless you're doing real
time or systems programming, with good programming style and design
modern hardware doesn't require you to write applications in C. In any
case, you can profile Python code, figure out the small portions of it
that are slow and replace them with callouts to C functions. In short,
and IMHO, Python is an (almost) perfect applications/utility
programming language. And I'm not alone in thinking so. The Python
community is full of people who were/are C/C++, Perl, Java, LISP, ...
experts who wouldn't go back to their old languages under any
circumstance - Python is that good.

Having said this, there is, and always will be a place for many kinds
of programming languages because there are many kinds of problems and
even more kinds of people. Again, with slight modesty, may I suggest
this:

  http://www.tundraware.com/Technology/How-To-Pick-A-Programming-Language/

Cheers,

Tim Daneliuk [EMAIL PROTECTED]
PGP Key: http://www.tundraware.com/PGP/

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: thankee, thankee!

2008-02-19 Thread Gary Kline
On Tuesday 19 February 2008 08:16:57 Chad Perrin wrote:
> On Tue, Feb 19, 2008 at 09:20:47AM -0500, William Bulley wrote:
> > According to Tim Daneliuk <[EMAIL PROTECTED]>:
> > > Before you go down this road too far, you should take a look at Python
> > > as an implementation language. If what you're doing involves text and
> > > string manipulation, Python is loaded with good modules that will make
> > > your task a snap. Having coded extensively in many assemblers, C,
> > > BASIC, ... I now find myself reaching exclusively for Python when
> > > writing applications and utilities unless the task at hand must have
> > > the performance of native C. Try it ... you'll be shocked how fast
> > > your program comes together.
> >
> > Might the same not be said for Perl?
>
> Yes . . . and Ruby.  I prefer both over Python, for different reasons,
> personally.

Gotta laugh at most of this  considering that I understand that we tend to 
favor what we're most familiar with.  I've been lazing along for several 
years since I've gone back to school--sort of.   During my last lifetime I 
was trapped into learning perl and forced myself to get into C++ because
much of my work required these languages.  

Can you guys, or anybody else, point me to some comparison sites for python 
and ruby?  I just found one abandoned freeware suite in ruby that may be just 
what I'm trying to do.  The deal is: do I want to invest months (from 2 to 3)
in learning another language/ or port from ruby to C? or take the Java 
functions and re-write or translate them to C?

Still, first thing is to get the algorithm down and tested.

-- 
Gary Kline  [EMAIL PROTECTED]   www.thought.org  Public Service Unix
http://jottings.thought.org   http://transfinite.thought.org
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: thankee, thankee!

2008-02-19 Thread Chad Perrin
On Tue, Feb 19, 2008 at 09:20:47AM -0500, William Bulley wrote:
> According to Tim Daneliuk <[EMAIL PROTECTED]>:
> > 
> > Before you go down this road too far, you should take a look at Python
> > as an implementation language. If what you're doing involves text and
> > string manipulation, Python is loaded with good modules that will make
> > your task a snap. Having coded extensively in many assemblers, C,
> > BASIC, ... I now find myself reaching exclusively for Python when
> > writing applications and utilities unless the task at hand must have
> > the performance of native C. Try it ... you'll be shocked how fast
> > your program comes together.
> 
> Might the same not be said for Perl?

Yes . . . and Ruby.  I prefer both over Python, for different reasons,
personally.

-- 
CCD CopyWrite Chad Perrin [ http://ccd.apotheon.org ]
Rudy Giuliani: "You have free speech so I can be heard."
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: thankee, thankee!

2008-02-19 Thread Pieter de Goeje
On Tuesday 19 February 2008, Girish Venkatachalam wrote:
> On 08:29:19 Feb 19, Tim Daneliuk wrote:
> > You bet, Perl is terrific.  But, Perl is also harder to maintain and
> > less readable in the long run (IMHO and many others' too).  Language
> > wars are silly, of course, one uses the right tools for the right
> > job.  But as I said, having programmed fairly widely over the years,
> > I find Python the single most productive language I've ever used.
> > I never ceased to be amazed at how quickly I get to a correct and
> > finished program.  I am further amazed when I pick it up a year later
> > and it still is crystal clear and understandable.
>
> Couldn't resist saying that I plan to take a stab at lua. It seems to be
> a wonderfully agile and powerful language - the new kid off the block.

It is indeed, however that power comes at a price. Especially when working 
with classes lua is more like a meta programming language. Also, lua lacks 
support for integer data types, as everything numeric is a double. Lua will 
excel as an addon language for scripting other programs. IMO writing complete 
standalone programs is better done with one of the more complete (library 
wise) languages like python, perl or java.
>
> :)
>
> http://www.lua.org
>
> However I do not have any experience with it to say anything further.
>
> Hopefully that will change one day soon.
>
> -Girish


-- 
Pieter de Goeje

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: thankee, thankee!

2008-02-19 Thread Girish Venkatachalam
On 08:29:19 Feb 19, Tim Daneliuk wrote:
> You bet, Perl is terrific.  But, Perl is also harder to maintain and
> less readable in the long run (IMHO and many others' too).  Language
> wars are silly, of course, one uses the right tools for the right
> job.  But as I said, having programmed fairly widely over the years,
> I find Python the single most productive language I've ever used.
> I never ceased to be amazed at how quickly I get to a correct and
> finished program.  I am further amazed when I pick it up a year later
> and it still is crystal clear and understandable.

Couldn't resist saying that I plan to take a stab at lua. It seems to be
a wonderfully agile and powerful language - the new kid off the block.
:)

http://www.lua.org

However I do not have any experience with it to say anything further. 

Hopefully that will change one day soon.

-Girish


___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: thankee, thankee!

2008-02-19 Thread Tim Daneliuk

William Bulley wrote:

According to Tim Daneliuk <[EMAIL PROTECTED]>:

Before you go down this road too far, you should take a look at Python
as an implementation language. If what you're doing involves text and
string manipulation, Python is loaded with good modules that will make
your task a snap. Having coded extensively in many assemblers, C,
BASIC, ... I now find myself reaching exclusively for Python when
writing applications and utilities unless the task at hand must have
the performance of native C. Try it ... you'll be shocked how fast
your program comes together.


Might the same not be said for Perl?

Regards,

web...

--
William Bulley Email: [EMAIL PROTECTED]


You bet, Perl is terrific.  But, Perl is also harder to maintain and
less readable in the long run (IMHO and many others' too).  Language
wars are silly, of course, one uses the right tools for the right
job.  But as I said, having programmed fairly widely over the years,
I find Python the single most productive language I've ever used.
I never ceased to be amazed at how quickly I get to a correct and
finished program.  I am further amazed when I pick it up a year later
and it still is crystal clear and understandable.




--

Tim Daneliuk [EMAIL PROTECTED]
PGP Key: http://www.tundraware.com/PGP/

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: thankee, thankee!

2008-02-19 Thread William Bulley
According to Tim Daneliuk <[EMAIL PROTECTED]>:
> 
> Before you go down this road too far, you should take a look at Python
> as an implementation language. If what you're doing involves text and
> string manipulation, Python is loaded with good modules that will make
> your task a snap. Having coded extensively in many assemblers, C,
> BASIC, ... I now find myself reaching exclusively for Python when
> writing applications and utilities unless the task at hand must have
> the performance of native C. Try it ... you'll be shocked how fast
> your program comes together.

Might the same not be said for Perl?

Regards,

web...

--
William Bulley Email: [EMAIL PROTECTED]

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: thankee, thankee!

2008-02-19 Thread Tim Daneliuk

Gary Kline wrote:

Giorgos, Joe, Paul , and Tim,

Thanks for your insights today, gentlemen.  I began on what may be a very
worthwhile [ and reasonably small, *thankfully*] program that may benefit
everybody who reads text online.   Or off, for that matter.   I was using
a shareware version that kept annoying me to shovel $$$ their way when I
finally got PO'd enough to do my own version.  The algorithm comes first,
naturally.  Then the data structs|classes|.   ---I do prelim
coding while I'm planning;  helps me figure things out.

GUI: yes, I will need help with eventually; for now, going back and forth
from that tts app,  KTTSmgr(?) and the other shareware, I kept improving
the dickens out of my thesis.S see what happens.  No offense
to those of us who have hacked out man pages or other docs, but I'm
pretty sure that using these tools will inddeed help improve the online 
documentation _considerably_.



gary





Before you go down this road too far, you should take a look at Python
as an implementation language. If what you're doing involves text and
string manipulation, Python is loaded with good modules that will make
your task a snap. Having coded extensively in many assemblers, C,
BASIC, ... I now find myself reaching exclusively for Python when
writing applications and utilities unless the task at hand must have
the performance of native C. Try it ... you'll be shocked how fast
your program comes together.


--

Tim Daneliuk [EMAIL PROTECTED]
PGP Key: http://www.tundraware.com/PGP/

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


thankee, thankee!

2008-02-18 Thread Gary Kline

Giorgos, Joe, Paul , and Tim,

Thanks for your insights today, gentlemen.  I began on what may be a very
worthwhile [ and reasonably small, *thankfully*] program that may benefit
everybody who reads text online.   Or off, for that matter.   I was using
a shareware version that kept annoying me to shovel $$$ their way when I
finally got PO'd enough to do my own version.  The algorithm comes first,
naturally.  Then the data structs|classes|.   ---I do prelim
coding while I'm planning;  helps me figure things out.

GUI: yes, I will need help with eventually; for now, going back and forth
from that tts app,  KTTSmgr(?) and the other shareware, I kept improving
the dickens out of my thesis.S see what happens.  No offense
to those of us who have hacked out man pages or other docs, but I'm
pretty sure that using these tools will inddeed help improve the online 
documentation _considerably_.


gary



-- 
  Gary Kline  [EMAIL PROTECTED]   www.thought.org  Public Service Unix
http://jottings.thought.org   http://transfinite.thought.org


___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"