This guide provides code snippets and guides for general
coding fundamentals.
Major Sections
I -- Coding
II -- General
III -- Structures
IV -- Object Oriented Programming
V -- Internet Programming
I -- Coding
Chapters
101 - Concepts
103 - Logic
104 - Conditional Statements
105 - Loop Statements
106 - Constructors
107 - Coding Classes
Chapter Indexes
101 - Concepts
Index
103 - Logic
What Is Logic?
Definition
Examples
Boolean
Definition
Is Boolean Useful?
Condition
Terms
104 - Conditional Statements
What Is A Conditional Statement?
Everyday Conditions With Actions
If True Code Block
If True Else False
105 - Loop Statements
What Is A Loop Statement?
Everyday Loops
While True
106 - Constructors
Navigation
107 - Coding Classes
Overview
Coding Phases
Coding Object Structure
Concepts
Examples
Coding Public Instance Methods
Concepts
Examples
II -- General
Chapters
201 - Ideas-Mode (Code Evaporation)
202 - Ideas Doc
203 - Unit Testing
Chapter Indexes
201 - Ideas-Mode (Code Evaporation)
Videos
START HERE
Overview
Without and With Idea Mode
Without Idea Mode
With Idea Mode
Duplication Alert
Toolboxes
Delegated Method
Ideas Doc ⭐
Examples ⭐
Scratch Simulation Design Trick
References
202 - Ideas Doc
Videos
Overview
Ideas Doc File Type
Example ⭐
Proposed Components
Available Components Listing
Proposed Methods
Available Components Methods
Proposed Compared to Available
Ideas for Object Diagrams
Ideas for Class Diagrams
Ideas for Class Diagrams (When in the Game)
Ideas for Methods
Ideas Doc
References
203 - Unit Testing
Overview
General Unit Test Pattern 💡
Blocker Bugs 🐞
What Are Blocker Bugs?
Examples
Patterns
Avoiding Blocker Bugs 😊
Smoke Tests
Purpose
Examples
Functional Test
Testing Lessons Learned
Start with 'Smoke Tests' to Find 'Blocker Bugs'
Continue with Functional Testing
Do Not Put Test Code in Same Directory as Domain/Model Code
Test Objects (Not Just Primitives)
Equals Over '=='
Collections Take Special Care
Test Code Styles
Overview
Example Tests (Different Test Strategies)
Simple Unit Test Examples
Overview
Examples
Example 1 -- Testing with Primitives
Example 2 -- Testing with Proper Objects
III -- Structures
Chapters
301 -- Fixed Data Structure
302 - Dynamic Array Algorithms
304 - Dynamic List ADT
305 -- Iterator
306 -- Introducing Linked List With Algorithms
307 Dictionary ADT
308 - Hashing
Chapter Indexes
301 -- Fixed Data Structure
Advantages
Disadvantages
Typical Operations
302 - Dynamic Array Algorithms
Overview
Requirements
Fixed Array
Our Plan
Design 1
Extra Capacity
Actual Elements vs Blank Slots
Size and Capacity
Object Diagram
Adding / Appending
Appending (Sufficient Capacity)
Appending (No Capacity)
Algorithm
hasCapacity
grow
Overview
Steps
Algorithm
Insert
Design 2
Getting and Setting 👍🏽
Goal Achieved
Getting and Setting
Iteration
References
304 - Dynamic List ADT
Purpose
Dynamic List General Definition
ADT
Notes on ADT
Example for Removing Element
Notes on Thrown Exceptions
305 -- Iterator
What and Why?
ADT
Examples
References
306 -- Introducing Linked List With Algorithms
Videos
Overview
Keep it Simple 💡
Abbreviations
Concept
Nodes 💡
Overview
Concepts (and Structure)
Examples - With Data
End Nodes
Linked List
Overview
Concepts
Traversing a Linked List
Overview
Prep for Traversal (Loop)
Traversing (Looping)
Visit Node1
Move to Node2
Move to Node3
The End
The Recipe
Adding/Inserting/Removing
addFirst and addLast (Empty/Initial List Case)
addFirst (Non-Empty List Case)
addLast (Non-Empty List Case)
Inserting
removeFirst
Getting
Overview
Examples
Algorithm For Indexed Access
Algorithm For Computing Size
Modeling (Coding) Tips
References
307 Dictionary ADT
Overview
Getting Started: Word Dictionary
Word Dictionary Idea (Generalized)
Dictionary (Examples)
Dictionary Usage
Association (KeyValue)
Dictionary ADT Spec
Java Dictionary Interface (ADT)
308 - Hashing
Navigation
IV -- Object Oriented Programming
Chapters
401 - Data Type Concept
Chapter Indexes
401 - Data Type Concept
Overview
Primitive Type Concept
Object Type Idea
Objects
Persons
Balls
Rectangles
Object Type Concept
Person Type
Ball Type
Rectangle Type
Rectangle Type vs Rectangle Objects
Properties
Object Type Summary
Object Type References
Examples
V -- Internet Programming
501 - Internet Programming Concepts
Coding Fundamentals
Coding Fundamentals
Quick Index
Top
Search Site