Post #275,553
12/12/06 10:21:34 AM
|
As always, use the right tool for the job.
For the majority of my text munging needs, emacs keyboard macros are capable, fast and easy.
Regards,
-scott anderson
"Welcome to Rivendell, Mr. Anderson..."
|
Post #275,565
12/12/06 1:47:49 PM
|
Bunch of text mungers
its xml - thus a serialized object model.
Easier and more reliable to work on the dom I think.
But go ahead and live in your flat little world.
[link|http://www.blackbagops.net|Black Bag Operations Log]
[link|http://www.objectiveclips.com|Artificial Intelligence]
[link|http://www.badpage.info/seaside/html|Scrutinizer]
|
Post #275,569
12/12/06 2:25:35 PM
|
Er, come again?
20 seconds of work to do a one-off, vs. thinking and writing a program to do it the "correct" way. And what's the point of creating an object graph for the entire thing when he wants to change one tag's contents only?
I get work done. I don't worry too much about how I get it done unless it actually matters.
"flat little world"... Man, talk about your insults out of nowhere.
Regards,
-scott anderson
"Welcome to Rivendell, Mr. Anderson..."
|
Post #275,586
12/12/06 6:26:07 PM
|
thats our todd, no point manipulating some text
when you can write a hello world example only using 11MB's of libraries and manipulating some text. thanx, bill
Any opinions expressed by me are mine alone, posted from my home computer, on my own time as a free american and do not reflect the opinions of any person or company that I have had professional relations with in the past 51 years. meep
reach me at [link|mailto:bill.oxley@cox.net|mailto:bill.oxley@cox.net]
|
Post #275,609
12/12/06 10:18:52 PM
|
Probably smaller than emacs, though :-P
Regards,
-scott anderson
"Welcome to Rivendell, Mr. Anderson..."
|
Post #275,596
12/12/06 9:08:52 PM
12/12/06 9:15:23 PM
|
Eh? I did it in 3 lines.
Anyhow, I find it easier to modify data structures than to fiddle text- which is error prone. When the text represents a data structure, like source code or xml, modifying the parse tree is more reliable and, I think, easier.
Anyhow, you're taking me way too seriously. :-)
[link|http://www.blackbagops.net|Black Bag Operations Log]
[link|http://www.objectiveclips.com|Artificial Intelligence]
[link|http://www.badpage.info/seaside/html|Scrutinizer]
|
Post #275,624
12/12/06 11:12:08 PM
|
Re: Eh? I did it in 3 lines.
If I were going to do it more than once, sure. Otherwise it's a waste of time. Writing a keyboard macro is simple and quick, much quicker than even your 3 lines of code.
Regards,
-scott anderson
"Welcome to Rivendell, Mr. Anderson..."
|
Post #275,585
12/12/06 6:24:36 PM
|
emacs is xml?
Any opinions expressed by me are mine alone, posted from my home computer, on my own time as a free american and do not reflect the opinions of any person or company that I have had professional relations with in the past 51 years. meep
reach me at [link|mailto:bill.oxley@cox.net|mailto:bill.oxley@cox.net]
|