spazntwitch
It's like déj- vu again
- Joined
- Jan 7, 2003
- Messages
- 9,355
- Reaction score
- 970
- Points
- 0
OK where's spaz.... error we are all seeing it a programming problem pertaining to lazy initialization. Spaz can you translate this programmer-ese? for your "floobyspazgoddess wannabe" namesake?
From Wikipedia, the free encyclopedia
Jump to: navigation, search
In computer programming, lazy initialization is the tactic of delaying the creation of an object, the calculation of a value, or some other expensive process until the first time it is needed.
This is typically accomplished by maintaining a flag indicating whether the process has taken place. Each time the desired object is summoned, the flag is tested. If it is ready, it is returned. If not, it is initialized on the spot.
See lazy evaluation for a general treatment of this idea. In heavily imperative languages this pattern carries hidden dangers, as does any programming habit that relies on shared state.
I would like to complain but don't know what i am talking about. :rofl: :rofl: STOP i hear you all now. no comments from the peanut gallery
Think of it like your kid wanting to go to a friend's house, but you need him or her to finish dinner first. Every time they ask you to go, you remind them that they haven't eaten their broccoli or other appropriate food. They ask again, you remind them again. It doesn't matter how many times they ask, they aren't going until they finish their food. To correlate it with the above technobabble, the "flag" is them finishing their plate. Once that is achieved, then they can move to the next step.
I hope this made sense.