Click here to Skip to main content
15,900,378 members

Welcome to the Lounge

   

For discussing anything related to a software developer's life but is not for programming questions. Got a programming question?

The Lounge is rated Safe For Work. If you're about to post something inappropriate for a shared office environment, then don't post it. No ads, no abuse, and no programming questions. Trolling, (political, climate, religious or whatever) will result in your account being removed.

 
GeneralWell, well, well... Pin
Matt U.30-Jan-14 11:29
Matt U.30-Jan-14 11:29 
GeneralRe: Well, well, well... Pin
_Damian S_30-Jan-14 11:46
professional_Damian S_30-Jan-14 11:46 
RantRe: Well, well, well... Pin
Vivi Chellappa30-Jan-14 15:52
professionalVivi Chellappa30-Jan-14 15:52 
GeneralRe: Well, well, well... Pin
CDP180230-Jan-14 19:19
CDP180230-Jan-14 19:19 
GeneralRe: Well, well, well... Pin
Keith Barrow30-Jan-14 22:43
professionalKeith Barrow30-Jan-14 22:43 
GeneralRe: Well, well, well... Pin
Mark_Wallace30-Jan-14 20:35
Mark_Wallace30-Jan-14 20:35 
GeneralRe: Well, well, well... Pin
Matt U.31-Jan-14 5:44
Matt U.31-Jan-14 5:44 
GeneralXPath. Pin
Septimus Hedgehog30-Jan-14 11:18
Septimus Hedgehog30-Jan-14 11:18 
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.Thumbs Up | :thumbsup:
If there is one thing more dangerous than getting between a bear and her cubs it's getting between my wife and her chocolate.

GeneralRe: XPath. Pin
BillWoodruff30-Jan-14 11:21
professionalBillWoodruff30-Jan-14 11:21 
GeneralRe: XPath. Pin
Septimus Hedgehog30-Jan-14 11:24
Septimus Hedgehog30-Jan-14 11:24 
GeneralRe: XPath. Pin
BillWoodruff30-Jan-14 14:52
professionalBillWoodruff30-Jan-14 14:52 
JokeRe: XPath. Pin
dan!sh 30-Jan-14 16:52
professional dan!sh 30-Jan-14 16:52 
GeneralRe: XPath. Pin
Mark_Wallace30-Jan-14 20:36
Mark_Wallace30-Jan-14 20:36 
GeneralRe: XPath. Pin
Septimus Hedgehog30-Jan-14 21:02
Septimus Hedgehog30-Jan-14 21:02 
GeneralMust everything have an API? Pin
Kent Sharkey30-Jan-14 11:05
staffKent Sharkey30-Jan-14 11:05 
GeneralRe: Must everything have an API? Pin
Matthew Dennis30-Jan-14 11:15
sysadminMatthew Dennis30-Jan-14 11:15 
GeneralRe: Must everything have an API? Pin
Ranjan.D30-Jan-14 11:19
professionalRanjan.D30-Jan-14 11:19 
GeneralRe: Must everything have an API? Pin
Kent Sharkey30-Jan-14 11:22
staffKent Sharkey30-Jan-14 11:22 
QuestionRe: Must everything have an API? Pin
Nish Nishant31-Jan-14 3:57
sitebuilderNish Nishant31-Jan-14 3:57 
GeneralRe: Must everything have an API? Pin
Ravi Bhavnani30-Jan-14 11:20
professionalRavi Bhavnani30-Jan-14 11:20 
GeneralRe: Must everything have an API? Pin
dan!sh 30-Jan-14 16:57
professional dan!sh 30-Jan-14 16:57 
JokeRe: Must everything have an API? Pin
Marcus_230-Jan-14 20:48
Marcus_230-Jan-14 20:48 
GeneralRe: Must everything have an API? Pin
dan!sh 30-Jan-14 21:38
professional dan!sh 30-Jan-14 21:38 
GeneralRe: Must everything have an API? Pin
Nish Nishant31-Jan-14 3:59
sitebuilderNish Nishant31-Jan-14 3:59 
GeneralRe: Must everything have an API? Pin
Ravi Bhavnani31-Jan-14 12:03
professionalRavi Bhavnani31-Jan-14 12:03 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.


Straw Poll

Were you affected by the geomagnetic storms this past weekend?
Communication disruptions, electrified pipes, random unexplained blue-screens in Windows - the list of effects is terrifying.
  Results   487 votes