Solutions
Save
Terms in this set (110)
Abstraction Removing (or hiding) unnecessary
complication/detail.
(e.g. API, Array.Sort(), etc.)
API Application Programming Interface:
Defines operations (and efficiencies).
(e.g. Array's Add, Remove, Contains, Sort, etc.)
Software Practice Steps -Analysis (what do we need to do?)
-Design (how do we do it?)
-Implement (coding yay!)
-Test/ Debug/Improve
-Go back to 1-4 as needed
Bloom's Taxonomy -Creating
-Evaluating
-Analyzing
-Applying
-Understanding
-Remembering
XAML: Why Comment/Document? -Your code (in the RW™) will outlive you
-Make your successor's life easier
-Make your (future) life easier
-(e.g. <summary> This function... </summary>
<param name='val'> val represents ... </param>)
,XAML: Why use this documentation? -The computer can read, parse, and intellisense as
can humans.
-Nested relationships allow for organization of
information
-(e.g. <university> 🡨 StartTag
<course> 🡨 Nested StartTag
</course> 🡨 Nested End Tag
</university> 🡨 End Tag)
XAML: Attributes -Attributes (inside of tag < >s): Add extra information
to tag but probably should be avoided (most of the
time*)
-(e.g. <teacher name="Jim">, <param name="length">,
<list type="number">)
XAML: API reading/writing Reading: XamlReader.Create( filename ),
reader.Read(), reader.IsStartElement(), reader.Name
Writing:
XamlWriter.Create( filename )
writer.WriteStartDocument
-writer.WriteStartElement (writer.WriteAttributeString)
-writer.WriteEndElement
-writer.WriteElementString
writer.WriteEndDocument
How do you describe what a function API (Function Signature): Comments, Name, Types
does? (Return Type, Parameter Name(s)/Type(s))
Generics in Coding Writing code that works regardless of the type of
data being processed.
Functions as Parameters -Solved with delegate syntax
-Must be passed in with a type (: delegate) when
undefined
-Are "First Class" in C# (can be used as data)
, Delegates -A delegate is a way to provide a TYPE for a function.
-Can use delegate types to store functions in
variables and "call" those saved functions using the
variable name
-Allow you to "pass" functions as parameters
Delegates: Syntax -public delegate int Lookup( string name );
-public delegate bool Compare( TYPE a, TYPE b );
-int doit(string x) { meet delegate requirements in
here }
-call: Evaluate("1+var", doit)
Delegate Declaration Delegate Definitions is a NAMED description of the
functions Inputs and Outputs (i.e. defines the type
signature of the function)
Solution Collection of Projects
Projects -Collection of Source Files
-Multiple can be in one solution due to related code
bases (support code/library)
-Contain: code files, references to other
projects/libraries, etc.
C# vs Java: Similarities -Compiled to an intermediate form
-Run with a "runtime environment"
-Automatic memory management.
-Syntax mostly the same (or one-to-one transition)
C# vs Java: Differences -C# functions are "first-class" (see delegates)
-Generics can use primitives (List<int> vs.
List<Integer>)
C# Access Modifiers -public (external access)
-protected (same/derived class access)
-private (same class access)
-internal (same project access)