|
LoL. You couldn't be more correct. But I will say that the people I work with here are actually very knowledgeable. I haven't met someone yet who doesn't know what's going on. They're very straightforward. Then again, the entire company only consists of about 45 employees, IT or otherwise.
djj55: Nice but may have a permission problem
Pete O'Hanlon: He has my permission to run it.
|
|
|
|
|
One of those eureka moments occurred to me today. I needed to trawl through a rather heavily recursive xml file. While there weren't too many element names involved, they were sufficiently recursive enough to make it really horrible to debug in a recursive method. For sure, it worked but it didn't sit comfortably with me. It was then I recalled some XPath code I prototyped a couple of years ago. I opened the project and it occurred to me that XPath could actually simplify things for me. A couple of hours later I replaced my code with far easier to read path-like syntax. It didn't eliminate the recursion but appending new element names using subscripts just really made more sense in this case and it was a breeze to identify exactly where I was in the file.
I'm not advocating XPath over any other strategy to process xml files but to this humble developer, it delivered far more maintainable code. Now that I think of it, there's another method in our app which processes some of the worst xml files I've ever come across. We're talking about 300 types of element some of them with many attributes as well. XPath might just simplify that as well. To the folks who put the XPath concept together, I thank you.
If there is one thing more dangerous than getting between a bear and her cubs it's getting between my wife and her chocolate.
|
|
|
|
|
Well, congratulations, and I look forward to reading your article on XPath here on CP ! cheers, Bill
“But I don't want to go among mad people,” Alice remarked.
“Oh, you can't help that,” said the Cat: “we're all mad here. I'm mad. You're mad.”
“How do you know I'm mad?” said Alice.
“You must be," said the Cat, or you wouldn't have come here.” Lewis Carroll
|
|
|
|
|
I'm not so sure about that Bill but thanks for the endorsement. I might put something together as a snippet for the xml-related forum. I tell you, buddy, XPath really works rather well.
If there is one thing more dangerous than getting between a bear and her cubs it's getting between my wife and her chocolate.
|
|
|
|
|
I look forward to reading your article on XPath, and recursive XML files, here on CP !
“But I don't want to go among mad people,” Alice remarked.
“Oh, you can't help that,” said the Cat: “we're all mad here. I'm mad. You're mad.”
“How do you know I'm mad?” said Alice.
“You must be," said the Cat, or you wouldn't have come here.” Lewis Carroll
|
|
|
|
|
Sorry but XPath is just horrible. The best way is to do a File.ReadAllText and then do all sorts to String operations.
"Bastards encourage idiots to use Oracle Forms, Web Forms, Access and a number of other dinky web publishing tolls.", Mycroft Holmes[ ^]
|
|
|
|
|
It's short for psychopath, isn't it?
I wanna be a eunuchs developer! Pass me a bread knife!
|
|
|
|
|
It could well be.
If there is one thing more dangerous than getting between a bear and her cubs it's getting between my wife and her chocolate.
|
|
|
|
|
Now even Marvel Comics[^] has a public API. (Alas, it is read-only. I can't submit MaunderMan, despite all his super powers.)
TTFN - Kent
|
|
|
|
|
What I need is an API to list/search the available APIs.
Oh yeah, Google
|
|
|
|
|
|
|
How about CodeProject giving us an API? Been pending for a while now.
|
|
|
|
|
Kent Sharkey wrote: Must everything have an API? No, only that which can be got, posted, put and deleted.
/ravi
|
|
|
|
|
It took me few seconds to get it. But, I am not scared put my intellect out here for your and other's scrutiny. Hence this post. Let me know if you think I should delete it.
I feel dirty after typing this. So I am leaving my computer for while to was my hands with soap, then rest a little before come back here.
I don't think anyone would be remotely interested in this.
"Bastards encourage idiots to use Oracle Forms, Web Forms, Access and a number of other dinky web publishing tolls.", Mycroft Holmes[ ^]
|
|
|
|
|
d@nish wrote: SOAP
Simple Object Access Protocol, the very same that is used for marvels API?
|
|
|
|
|
Oh, I noticed I missed the joke icon. Most of it, I assume, is word play. I tried to place get, put, post, delete, soap, rest in there.
"Bastards encourage idiots to use Oracle Forms, Web Forms, Access and a number of other dinky web publishing tolls.", Mycroft Holmes[ ^]
|
|
|
|
|
Ravi Bhavnani wrote: No, only that which can be got, posted, put and deleted.
Not sure where you are headed with that.
|
|
|
|
|
Somewhere in my response are cookies of wisdom.
/ravi
|
|
|
|
|
Kent Sharkey wrote: I can't submit MaunderMan, despite all his super powers.
And all this time I never knew that a Schmiddy of Light Beer was a Super Power.
Michael Martin
Australia
"I controlled my laughter and simple said "No,I am very busy,so I can't write any code for you". The moment they heard this all the smiling face turned into a sad looking face and one of them farted. So I had to leave the place as soon as possible."
- Mr.Prakash One Fine Saturday. 24/04/2004
|
|
|
|
|
Michael Martin wrote: all this time I never knew that a Schmiddy of Light Beer was a Super Power.
I thought his super power was to drink light beer, while also sipping a mocha, and debugging JavaScript all at the same time?
|
|
|
|
|
I'd been working on an old system written in Awk[^] the predecessor to Perl.
To say it was complex is an understatement.
So complex that I started to get headaches, and stressed about each day.
So off I trot to the quacks .
After much pressure taking, prodding and, indeed, a little poking, he asked about my work, and a little light came on (metaphorically) in his eyes.
"come with me" he insisted.
Off we went to the hospital, where he took me to a room, choc full of chaps in bed, constantly moaning. Then he showed me a smaller room next door full of small birds, looking to me like small penguins!
It was a little awkward.
MVVM # - I did it My Way
___________________________________________
Man, you're a god. - walterhevedeich 26/05/2011
.\\axxx
(That's an 'M')
|
|
|
|
|
The difficult we do right away...
...the impossible takes slightly longer.
|
|
|
|
|
Because I've had to convert code from awk.... aawwwkkk!
But I still laughed
It was broke, so I fixed it.
|
|
|
|
|
Groan. Your coat is outside on the pavement.
If there is one thing more dangerous than getting between a bear and her cubs it's getting between my wife and her chocolate.
|
|
|
|