Lazy initialization: Computer programming, Lazy evaluation, Design pattern (computer science), Factory method pattern, Singleton pattern, C Sharp (programming language) - Brossura

 
9786134272117: Lazy initialization: Computer programming, Lazy evaluation, Design pattern (computer science), Factory method pattern, Singleton pattern, C Sharp (programming language)

Sinossi

Please note that the content of this book primarily consists of articles available from Wikipedia or other free sources online. 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.

Le informazioni nella sezione "Riassunto" possono far riferimento a edizioni diverse di questo titolo.