Skip to main content


Showing posts from April, 2015

My favorite feature of REXX and the one I miss most in other languages

I'm a pretty relaxed programmer.   I like a programming feature that is so intuitive that I can remember how to use it without a reference manual and without Google.

REXX was invented to make string processing easy, at a time when there were few choices.   That's an apology because you won't see things like regular expressions natively in REXX.  But here's the kicker - you don't need them.  REXX has a simple syntax that is easy to remember and use.  It is not as powerful as PERL or Python - it was not made for that audience. It is a tool that lets regular people be productive without remembering a ton of rules.
s = 'this is my string' if I want the 3rd word, type :
say word(s, 3) dt = '10/20/2030' The feature I like most is the "parse var" command.
The basic form is:

parse var sourcevar target1 separator target2 separator2 ... .The '.' character represents a throwaway item.  The last target in the command gets the remainder of the stri…

Joy of TCC and Take Command - Directory and Command history

Did you know you can pre-populate your directory and command histories?

Why would you want to do that?  Well, when I'm doing software development, my project directories often require a lot of navigation.  I already know what directories I'm going to be using most.  So, I put them into the directory history  using the dirhistory command.

dirhistory /a src\node
dirhistory /a src\lib

That way, i can simply press control-page up and quickly select the directory to change to.

I also use gulp a lot so I like to have it in my history right away.  That's easy in TakeCommand:

history /a gulp

That's it.

Now, when I press Control-PgUp, I get the directories I prepopulated. When I press PgUp, I get the history command I populated (e.g. "gulp").