Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
@AnxiousADHDGuy
It depends - bottom and top are defined by the dev and -/ or the language, though easiest is the definition that top is from human understanding the beginning and bottom is the end (aka the producer of the stacktrace)
E.g.
app - function 1 - function 2 - function 3 - exception
exception is the bottom,
app is the top. -
@AnxiousADHDGuy I'm note sure about breakpoints, rarely used one the last days.
but I think they're in reverse.
Breakpoint line
- callee of breakpoint line (function 3)
- callee of callee (function 2)
...
So top / bottom can be confusing.
You usually work your way from the "origin" of the exception (the last generated exception) to the caller that produced the necessary input for the exception.
No top -/ bottom.
Except that input for the exception can be misunderstood, though it's trivial I think to explain.
function 2 calls function 3 with arguments bla and blub.
function 3 uses blub, throws e.g. Null pointer exception as blub is null.
Then function 2 is the caller that produced the necessary input (blub) for the exception to happen in function 3.
That's usually the fun part to find out - where did the exception truly start aka when did the input that led to the exception was created. -
It's not exact metasyntax, but generally speaking
- The source of an event is upstream
- Supersets, larger enclosing categories are "up"
- Conflicting with this, the live end of the stack is usually called the top. -
@AnxiousADHDGuy no, it was your question. your question was what THEY (your team members) mean when THEY say up/down.
so jonas gave you the only valid answer: ask THEY what THEY mean.
btw up and down usually means the natural thing: up one level of abstraction/callstack is towards the app entrypoint, down one level of abstraction/callstack is towards the specific line currently being executed/towards asm/deeper inside into the callstack. -
j0n4s54342y@joewilliams007 Wochenende = bis morgens wach bleiben und den Tag durch pennen oder wie?
Related Rants
In terms of software dev what does it mean up and down? For example android app goes app->mainactivity->fragment. In this case top is app? If I find a bug in fragment and they say go up the stream and fix it it means fix it in mainactivity?
Its really confusing with breakpoints also. I put a breakpoint and when it hits I see the call stack. So it means I see now all functions executed up until this point? If I would go to the bottom I would see starting point? So its upside down compared to the architecture?
I know these are basics but I have hard time wrapping my head around it.
rant
question