Reputation
546
Top tag
Next privilege 1,000 Rep.
See votes, expandable usercard
Badges
3 10
Impact
~95k people reached

  • 0 posts edited
  • 0 helpful flags
  • 105 votes cast
May
31
asked Javascript: Safely upload a client data file
May
7
answered How would you create a mobile (android) offline wiki site?
Apr
15
awarded  Enthusiast
Apr
10
comment Why do we need private variables?
+1 for getting at the heart of the issue, though I've personally found my code easier to maintain when I stopped going through hoops just to ensure that a frequently used variable stays private. Sure an error may come up in the future, but it's 60 less lines of code to sift through, and less variables and functions to boot ;)
Apr
10
answered Why do we need private variables?
Apr
7
comment Standard way of allowing general XML data
@GregJackson Fair enough. This scheme was more for designing variable xml formats.
Apr
7
revised Standard way of allowing general XML data
added 62 characters in body
Apr
7
comment XML: Multiple roots + text content outside the root. Does anyone do it?
So, it is "kind of" allowed in the DOCTYPE assuming it follows the correct syntax. My concern was more for those who hire inexperienced XML coders that write XML their own way. My code does handle a variable DOCTYPE definition too ;)
Apr
7
answered Standard way of allowing general XML data
Apr
7
awarded  Scholar
Apr
7
accepted XML: Multiple roots + text content outside the root. Does anyone do it?
Apr
7
comment XML: Multiple roots + text content outside the root. Does anyone do it?
@ThorbjørnRavnAndersen sounds fair to me. Accepting this answer.
Apr
7
comment How often are comments used in XML documents?
I've always figured XML is (or should be) self documenting, though I haven't ever gone past using 15 or so unique tags. Do you see comments in purely data XML documents often?
Apr
7
comment XML: Multiple roots + text content outside the root. Does anyone do it?
I've seen plenty of XML that doesn't follow the standard, from not using quotes correctly to closing tags inaccurately. Ticks me off too ;) I just need to know if you have personally ever seen code that goes against these two particular standards, and what it was for.
Apr
7
asked XML: Multiple roots + text content outside the root. Does anyone do it?
Apr
4
comment Why is CS never a topic of conversation of the layman?
youtube.com/watch?v=rJp86_tj9KQ
Mar
30
awarded  Critic
Mar
29
comment When should JavaScript generate HTML?
@PeterTaylor Because that's what most frameworks do; inject raw HTML from an AJAX request with innerHTML or document.write, as opposed to intelligently adding necessary elements with appendChild. You can add HTML if it's done sparingly and wisely.
Mar
29
comment When should JavaScript generate HTML?
@PeterTaylor If an element or two is added with document.appendChild or something, there probably won't be any problems. The issue is with code that looks that looks something like this- div.innerHTML="<table cellpadding='0'><tr><td><label>Val:</label></td><td><input type='text' /></td></tr></table> -is a nightmare to debug.
Mar
28
answered When should JavaScript generate HTML?