Go Down

Topic: The HATRED for String objects - "To String, or not to String" (Read 13 times) previous topic - next topic

tuxduino

:smiley-eek-blue:

I hope you are aware that the code above is fine as an "extreme" didactic example, but it's definitely a coding horror(1). And the reason is, it's the perfect recipe for spaghetti code ;)



(1) As in "Code Complete 2"; see Jeff Atwood's blog icon for an effective visual representation of the concept :)

GoForSmoke

Re-entrant code can build up the stack really fast if you're not very, very careful. Remember, UNO has only 2k of RAM for stack and heap space.

I find it harder to express logic in English than in Code.
Sometimes an example says more than many times as many words.

fiddler

Thanks

Coming from Assembly and a bit of basic, I'm trying to get my head around the GNU C compiler and the way it does things.
Been reading the GNU documentation, but sometimes it is "clear as mud" :-)

K

PeterH


Re-entrant code can build up the stack really fast if you're not very, very careful.


You're thinking of recursive code?
I only provide help via the forum - please do not contact me for private consultancy.

GoForSmoke

Right. Functions that call themselves or call others that call them, etc.

It's been a while since I wrote that kind of stuff.
I find it harder to express logic in English than in Code.
Sometimes an example says more than many times as many words.

Go Up