xsl-list
[Top] [All Lists]

[xsl] After a refresher on C programming, I have a greater appreciation for XSLT

2014-03-17 15:22:39
Hi Folks,

Lately I have been refreshing my memory on C programming (because a book that I 
am reading gives its examples in C).

Reading the C book has given me a better appreciation for the advances that 
have been made in modern programming languages. Here are a few things that 
struck me as I read the C book:

- In C most things are treated as numbers. Characters are treated as numbers 
(you can even perform arithmetic on characters). Logical values (true/false) 
are treated as numbers.

- Memory management is of concern to a C programmer. C programmers need to 
ensure that the code doesn't reference past the end of an array. A programmer 
must ensure that performing arithmetic on a variable does not produce a value 
that exceeds the allotted memory for the variable (thereby resulting in "buffer 
overflow"). A programmer may call a function to find out the amount of memory 
being used (sizeof) by an array or call a function to allocate a certain 
quantity of memory (malloc).

- Pointers must be carefully managed and care must be taken when traversing the 
pointers. 

I am happy to be programming in XSLT. I am happy to be working at the 
abstraction of symbols (strings, string manipulations, elements, attributes) 
and not numbers. I am happy that the XSLT processor takes care of memory 
management for me. I am happy to be working at the abstraction of tree 
navigation (parent, ancestor, child, descendant, sibling traversals) and not 
pointers.

/Roger

--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--


<Prev in Thread] Current Thread [Next in Thread>