Click here to Skip to main content
15,498,398 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.

 
GeneralRe: Hey JSOP! Pin
Jörgen Andersson23-Dec-20 3:43
professionalJörgen Andersson23-Dec-20 3:43 
GeneralRe: Hey JSOP! Pin
honey the codewitch23-Dec-20 3:44
mvahoney the codewitch23-Dec-20 3:44 
GeneralRe: Hey JSOP! Pin
Jörgen Andersson23-Dec-20 3:45
professionalJörgen Andersson23-Dec-20 3:45 
GeneralRe: Hey JSOP! Pin
honey the codewitch23-Dec-20 3:47
mvahoney the codewitch23-Dec-20 3:47 
GeneralRe: Hey JSOP! Pin
Jörgen Andersson23-Dec-20 3:48
professionalJörgen Andersson23-Dec-20 3:48 
GeneralRe: Hey JSOP! Whoops I mean PIEBALDconsult! Sorry! Pin
PIEBALDconsult24-Dec-20 9:22
professionalPIEBALDconsult24-Dec-20 9:22 
GeneralRe: Hey JSOP! Whoops I mean PIEBALDconsult! Sorry! Pin
honey the codewitch24-Dec-20 10:46
mvahoney the codewitch24-Dec-20 10:46 
GeneralRe: Hey JSOP! Whoops I mean PIEBALDconsult! Sorry! Pin
PIEBALDconsult24-Dec-20 11:53
professionalPIEBALDconsult24-Dec-20 11:53 
I think my parser allows that, it trusts that the file is well-formed and doesn't check.
I see no reason to raise an error for that unlikely situation.
Besides, with my parser, every JSONitem has a name (at least an empty one) and a value (and a type), so it doesn't matter whether one is (erroneously) provided or defaulted by my parser.

Now that I think about it more, I don't actually need the Stack.
I could just as easily do something like curr = curr.Parent to step back (up) a level of the tree.
And then the "stack" would be empty when curr is null -- or similar.

Eliminating the Stack probably won't provide a big improvement to the code though.
I'm quite certain any "slowness" is occurring at higher levels, and not in the parser itself.
And, of course, the database access is likely to be the tightest bottleneck.
GeneralRe: Hey JSOP! Whoops I mean PIEBALDconsult! Sorry! Pin
honey the codewitch24-Dec-20 12:54
mvahoney the codewitch24-Dec-20 12:54 
GeneralRe: Hey JSOP! Whoops I mean PIEBALDconsult! Sorry! Pin
PIEBALDconsult24-Dec-20 13:27
professionalPIEBALDconsult24-Dec-20 13:27 
GeneralRe: Hey JSOP! Whoops I mean PIEBALDconsult! Sorry! Pin
honey the codewitch24-Dec-20 14:00
mvahoney the codewitch24-Dec-20 14:00 
GeneralRe: Hey JSOP! Whoops I mean PIEBALDconsult! Sorry! Pin
PIEBALDconsult24-Dec-20 14:34
professionalPIEBALDconsult24-Dec-20 14:34 
GeneralRe: Hey JSOP! Whoops I mean PIEBALDconsult! Sorry! Pin
honey the codewitch24-Dec-20 16:48
mvahoney the codewitch24-Dec-20 16:48 
GeneralDilbert OTD: working from home problems Pin
OriginalGriff23-Dec-20 1:27
mveOriginalGriff23-Dec-20 1:27 
GeneralRe: Dilbert OTD: working from home problems Pin
rnbergren23-Dec-20 4:51
Memberrnbergren23-Dec-20 4:51 
GeneralRe: Dilbert OTD: working from home problems Pin
Slow Eddie24-Dec-20 3:18
professionalSlow Eddie24-Dec-20 3:18 
GeneralRe: Dilbert OTD: working from home problems Pin
Kirk 1038982124-Dec-20 9:15
MemberKirk 1038982124-Dec-20 9:15 
GeneralThe weird issues and workarounds we sometimes have to deal with Pin
Jacquers22-Dec-20 22:37
MemberJacquers22-Dec-20 22:37 
GeneralRe: The weird issues and workarounds we sometimes have to deal with Pin
Jörgen Andersson23-Dec-20 1:45
professionalJörgen Andersson23-Dec-20 1:45 
GeneralRe: The weird issues and workarounds we sometimes have to deal with Pin
OriginalGriff23-Dec-20 1:47
mveOriginalGriff23-Dec-20 1:47 
GeneralRe: The weird issues and workarounds we sometimes have to deal with Pin
Jörgen Andersson23-Dec-20 3:55
professionalJörgen Andersson23-Dec-20 3:55 
GeneralRe: The weird issues and workarounds we sometimes have to deal with Pin
Jacquers23-Dec-20 1:53
MemberJacquers23-Dec-20 1:53 
GeneralRe: The weird issues and workarounds we sometimes have to deal with Pin
Jörgen Andersson23-Dec-20 3:52
professionalJörgen Andersson23-Dec-20 3:52 
GeneralRe: The weird issues and workarounds we sometimes have to deal with Pin
Rob_P23-Dec-20 22:37
MemberRob_P23-Dec-20 22:37 
GeneralRe: The weird issues and workarounds we sometimes have to deal with Pin
Kirk 1038982124-Dec-20 9:22
MemberKirk 1038982124-Dec-20 9:22 

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

When thinking about your job, how important is the option to work from home?
Some bosses are casual about where you work, and some, naming no names, will insist you're in the office, always. What are your thoughts?
  Results   759 votes