Re: [xsl] How do you avoid relearning the same coding technique over and over?

Subject: Re: [xsl] How do you avoid relearning the same coding technique over and over?
From: "ohaya ohaya@xxxxxxxxx" <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx>
Date: Thu, 6 Feb 2025 13:20:40 -0000
 That is a good question (and not just for XSL :) ! ).
As I've gotten older (and I AM really old now)....B  I've gotten into the
habit of writing documents... a LOT of documents... I call them my "journal
notes"... when I work on something, and in those documents, I try to capture
as much about the thing I am working on...B B 
It's a lot of work... sometimes more than actually DOING it.B B 
I save these documents on my NAS.B 

Not an ideal suggestion (like I said it is a lot of work), but I keep saying
that "I really hate trying to figure out something that I've figured out
before!".
Also, going back through some of those notes sometimes, esp. the older ones,
some of them were when I was much younger, I kind of amaze myself because I
think that I don't have the patience for doing some of the things I did back
then ;)!
Jim



    On Thursday, February 6, 2025 at 07:19:43 AM EST, Roger L Costello
costello@xxxxxxxxx <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx> wrote:

 Hi Folks,

A few days ago, I needed some code to iterate over a set of folders and then
for each folder iterate over its files.

Over the years I have solved that problem--use the expath file module--many
times. In my most recent need, I spent a few minutes searching my file system
to find an XSLT program that uses the expath module, but I didn't find
anything, so I spent time relearning how to use the expath file module. What a
waste of time.

In the ideal world, when I develop some code--such as code to iterate over
folders and subfolders--I would pause what I'm doing, create example code
showing how to solve the task, and store that example code in some location on
my file system that I'll remember 6 months, 6 years later. Alas, I'm in a
hurry. I don't do that.

What's the solution? Discipline? No matter how much I'm in a hurry, stop and
create an example. Is that the solution?

How do you avoid relearning the same coding technique over and over?

/Roger




|  | Virus-free.www.avast.com |

Current Thread