Computer Programming Initialization Task: Difference between revisions

(ContinuousReplacement)
Tag: continuous replacement
m (Text replacement - "<P>[[" to "<P> [[")
 
(18 intermediate revisions by 3 users not shown)
Line 1: Line 1:


A [[Computer Programming Initialization]] is a [[Computer Programming]] that ...
A [[Computer Programming Initialization Task]] is a [[Computer Programming Task]] that sets an initial value for a [[data object]] or [[variable]].
* <B>AKA:</B> [[Initialization (Programming)]].
* <B>AKA:</B> [[Computer Programming Initialization Task|Program Initialization Task]], [[Computer Programming Initialization Task|Initialization]].
* <B>See:</B> [[Machine Code]], [[Computer Programming]], [[Data Object]], [[Programming Language]], [[Declaration (Computer Programming)]], [[Finalization]], [[Run Time (Program Lifecycle Phase)]], [[Object-Oriented Programming]], [[Constructor (Object-Oriented Programming)]], [[Hexadecimal]], [[Exclusive or]].
* <B>Context:</B>
** '''Task Input''': [[initializer]]s.
** '''Task Output''': [[computer program output]].
* <B>Example(s):</B>
** [[Data Initialization Task]],
** [[Default Initialization]],
** [[Parameter Initialization Task]],
** [[Neural Network Weights Initialization Task]].
** …
* <B>Counter-Example(s):</B>
** [[Computer Programming Declaration Task]],
** [[Computer Programming Deinitialization Task]],
** [[Lazy Initialization Task]].
* <B>See:</B> [[Machine Code]], [[Computer Programming]], [[Data Object]], [[Programming Language]], [[Run Time]], [[Program Lifecycle]], [[Object-Oriented Programming]], [[Constructor (Object-Oriented Programming)]], [[Hexadecimal]], [[Exclusive or]].
 
----
----
----
----
Line 10: Line 24:
=== 2021 ===
=== 2021 ===
* (Wikipedia, 2021) ⇒ https://en.wikipedia.org/wiki/Initialization_(programming) Retrieved:2021-5-23.
* (Wikipedia, 2021) ⇒ https://en.wikipedia.org/wiki/Initialization_(programming) Retrieved:2021-5-23.
** In [[computer programming]], '''initialization''' (or initialisation) is the assignment of an initial value for a [[data object]] or variable. The manner in which initialization is performed depends on [[programming language]], as well as type, storage class, etc., of an object to be initialized. Programming constructs which perform initialization are typically called '''initializers''' and '''initializer lists'''. Initialization is distinct from (and preceded by) [[declaration (computer programming)|declaration]], although the two can sometimes be conflated in practice. The complement of initialization is [[finalization]], which is primarily used for objects, but not variables. <P> Initialization is done either by statically embedding the value at compile time, or else by assignment at [[Run time (program lifecycle phase)|run time]]. A section of code that performs such initialization is generally known as "initialization code" and may include other, one-time-only, functions such as opening files; in [[object-oriented programming]], initialization code may be part of a ''[[Constructor (object-oriented programming)|constructor]]'' (class method) or an ''initializer'' (instance method). Setting a memory location to [[hexadecimal]] zeroes is also sometimes known as "clearing" and is often performed by an [[exclusive or]] instruction (both operands specifying the same variable), at [[machine code]] level, since it requires no additional memory access.
** In [[computer programming]], '''initialization''' (or initialisation) is the assignment of an initial value for a [[data object]] or variable. The manner in which initialization is performed depends on [[programming language]], as well as type, storage class, etc., of an object to be initialized. Programming constructs which perform initialization are typically called '''initializers''' and '''initializer lists'''. Initialization is distinct from (and preceded by) [[declaration (computer programming)|declaration]], although the two can sometimes be conflated in practice. The complement of initialization is [[finalization]], which is primarily used for objects, but not variables.         <P>       Initialization is done either by statically embedding the value at compile time, or else by assignment at [[Run time (program lifecycle phase)|run time]]. A section of code that performs such initialization is generally known as "initialization code" and may include other, one-time-only, functions such as opening files; in [[object-oriented programming]], initialization code may be part of a ''[[Constructor (object-oriented programming)|constructor]]'' (class method) or an ''initializer'' (instance method). Setting a memory location to [[hexadecimal]] zeroes is also sometimes known as "clearing" and is often performed by an [[exclusive or]] instruction (both operands specifying the same variable), at [[machine code]] level, since it requires no additional memory access.
 
=== 2021 ===
* (Swift Doc., 2021) ⇒ https://docs.swift.org/swift-book/LanguageGuide/Initialization.html Retrieved:2021-5-23.
** QUOTE: [[Initialization]] is the process of preparing an [[instance]] of a [[class]], [[structure]], or [[enumeration]] for [[use]]. This process involves setting an initial [[value]] for each stored property on that [[instance]] and performing any other [[setup]] or [[initialization]] that’s required before the new [[instance]] is ready for use.        <P>          You implement this [[initialization]] process by defining [[initializer]]s, which are like special [[method]]s that can be called to create a new [[instance]] of a particular type. Unlike [[Objective-C initializer]]s, [[Swift initializer]]s don’t return a value. Their primary role is to ensure that new [[instance]]s of a type are correctly initialized before they’re used for the first time.        <P> [[Instance]]s of class [[type]]s can also implement a [[deinitializer]], which performs any custom cleanup just before an [[instance]] of that class is [[deallocated]]. For more information about [[deinitializer]]s, see [[Deinitialization]].


----
----
__NOTOC__
[[Category:Concept]]
[[Category:Concept]]
[[Category:Machine Learning]]
[[Category:Data Science]]
__NOTOC__
__NOTOC__

Latest revision as of 18:15, 2 June 2024

A Computer Programming Initialization Task is a Computer Programming Task that sets an initial value for a data object or variable.



References

2021

  • (Wikipedia, 2021) ⇒ https://en.wikipedia.org/wiki/Initialization_(programming) Retrieved:2021-5-23.
    • In computer programming, initialization (or initialisation) is the assignment of an initial value for a data object or variable. The manner in which initialization is performed depends on programming language, as well as type, storage class, etc., of an object to be initialized. Programming constructs which perform initialization are typically called initializers and initializer lists. Initialization is distinct from (and preceded by) declaration, although the two can sometimes be conflated in practice. The complement of initialization is finalization, which is primarily used for objects, but not variables.

      Initialization is done either by statically embedding the value at compile time, or else by assignment at run time. A section of code that performs such initialization is generally known as "initialization code" and may include other, one-time-only, functions such as opening files; in object-oriented programming, initialization code may be part of a constructor (class method) or an initializer (instance method). Setting a memory location to hexadecimal zeroes is also sometimes known as "clearing" and is often performed by an exclusive or instruction (both operands specifying the same variable), at machine code level, since it requires no additional memory access.

2021