1/98
Looks like no tags are added yet.
Software development life cycle
Requirements: What should we build, for whom?; Design: How should we build it?; Implementation: Build it; Testing: Did we build it right?
Waterfall model
requirements -> design -> implementation -> testing
Why is the waterfall model not good?
things go wrong in between steps and can’t go back
Iterative
revising and improving, instead of one and done
Agile
the world is too uncertain, and we must be flexible and responsive to changes
Agile manifesto
Individuals and interaction over processes and tools; Working software over comprehensive documentation; Customer collaboration over contact negotiation; Responding to change over following a plan
Requirements
state the goals of the system: what, not how
Requirements vs specifications
Requirements specify what to build from customer perspective while specifications specify what to build from developer perspective
Process from interviews to user requirements
Interviews -> personas -> scenarios -> user requirements
Behavioral variables
important differences in how a user could approach or interact with the task
Personas
descriptive “biography” of the fictional user we are primarily designing for
Scenarios
concrete descriptions of a particular persona interacting with a system in a work-driven manner
Problem scenario
the persona working today, with existing tools and existing friction. Drawn from interviews and observation
Context scenario
the persona using your envisioned system, written from goals and behavioral variables before any interface is designed
User requirements
what the system should do from the user perspective, without saying how the system will do it
Specifications
describe how, not what
Functional specifications
defines expected inputs, outputs, and behavioral responses of the system
Non functional specifications
define behavior qualities of the system like speed, reliability, security, accessibility, usability
Good specifications
testable, clear and specific, one thing only, consistent
Minimum viable product (MVP)
Smallest subset of functionality (requirements) that delivers value
MVP steps
Pick a persona; Needs vs wants; Needs first, wants later; Release and iterate; Build -> measure -> learn, repeat
Software architecture
describes the components and inter-connections needed
Abstraction
building an abstract representation of reality
Components (boxes)
Define the basic computations comprising the system and their behaviors
Connectors (arrows)
Define the interconnections (communication) between components
Class diagrams - nodes
will be the classes of your code, representing core objects
Class diagrams - arrows
Describe the relationships between the classes, what is dependent on what. Always from Child -> Parent.
MVC Model
Data management
MVC View
Presents data to user / provides user interface
MVC Controller
Handles control flow / mediates between the view and model
MVC communication
The Model does not call the Controller or the View. It is independently designed. The View only calls the Controller. The Controller mediates communication between Model and View, and calls both.
Translate MVC to code - Model
each class in class diagram becomes a h and cpp file
Translate MVC to code - View
what does the user see? Every tab/page/view has its own view file
Translate MVC to code - Controller
one file for every feature: a main action
Walking skeleton
a minimal end-to-end slice of the system: one path that runs from view to model
Unit test
smallest testable part of the software system
Expected value
verify that the system returns the correct and expected value under normal operating conditions
Boundary testing
checks edge cases and invalid or unexpected inputs
CI (continuous integration)
automated builds and tests triggered from git actions (ex: push, pull request)
CI stages
PR opened -> change detection -> automated build -> test suite runs -> feedback provided
Branches
independent line of development that acts as a separate workspace within your repository
Git push
directly uploads commits from your local repository to a remote repository
Pull request (PR)
proposes merging changes from one branch into another, inviting team review
Atomic commit
Every commit should address one concept (be atomic)
Clean coding
get it to work, AND invest time and energy in the design and style
Clean code - functions
Small. Do one thing; Prefer fewer arguments; Don’t use flag arguments
Clean code - comments
Code says what, comments say why; Don’t be redundant or obvious; Don’t leave commented out code; Explain intent; Warn of consequences
Database
an organized collection of structured information, or data, typically stored electronically in a computer system
Persistence
data that outlives the program
ID (key)
a value that identifies exactly one row
Many to many relationship
If a relationship is many to many, then it needs to be its own new table
SQL
language used to talk to the database
WHERE
filters individual data before table is grouped
HAVING
filters grouped data, and must come after the GROUP BY
Code Review
constructive review of a fellow team-member’s artifact (design, specification, code), providing suggested improvements
Costly errors
worst case scenario if system doesn’t behave as expected
Solutions to costly errors
diversity and redundancy
Development testing
testing during development to find bugs
Functional testing
running the code with a set of inputs and seeing if the program behaves as expected
Unit testing
test individual components, functions, classes
Component testing
test groups of components
System testing
tests the entire program as a whole and within the overall environment
White box testing
Written with knowledge of the code; Examines the module system internals; Trace data flow directly
Regression testing - five steps
Regression testing - purpose
Ensures that your fix solves the problem; Protects against updates that reintroduce the bug
Release testing
testing a release of the system after development
Black box testing
Written without the knowledge of the code; Treats the module/system as atomic; Best simulates the customer experience
Non-functional testing
Define behavior qualities of the system like: speed, reliability, security, accessibility, usability
Performance testing
how long does it take this function to execute
Load testing
how many simultaneous users can the application support under peak load?
Stress testing
how does the system perform or fail when pushed beyond its maximum operational capacity?
User testing
an evaluator observes a real user as they attempt to complete realistic tasks using the software
Information visualizations
visual representations of abstract data
Purpose of information visualizations
Allow people to explore and interpret a data set visually
Hippocratic oath for data
practice two things in your dealings with data: either help or do not harm the analyst
Honest visualization lie factor
Lie factors between 0.95 and 1.05 imply “honest” visualization
Lie factor
size effect shown in graphic / size of effect in data
Size of effect
|second value - first value| / first value
Visualization rules of thumb
Pies should always sum to 100%; Y-axis should always start at 0; All data should share the same axes; Show as much data as necessary; 3D can create distortions; Use area, not diameter
Consistent frame
values in the same space share the same scales
The Gist
featural and semantic information that can be gathered at a glance
Spatial envelope
the overall structure of the visual scene
Ensemble codes
statistical properties of the visual features of a scene (ex: average & variance)
Gestalt law of similarity
items that look similar are interpreted as part of the same group
Gestalt law of proximity
items that are close together are part of the same group
Gestalt law of enclosure
items contained in the same shape are part of the same group
Pop-out
some objects attract our attention immediately (when we first look at something). Those objects are said to have pop-out
Just noticeable difference (JND)
smallest color different that can be reliably detected (for some definition of reliable)
RGB is NOT perceptually uniform
we see bigger or smaller steps in the data for the same data different
Why avoid rainbows for continuous data
Names create artificial value boundaries; No intuitive ordering
Sequential encodings (use JNDs)
measures should be continuously distinguishable
Sequential colors
have numeric meaning. These are graduations that go from light to dark
Interpolation
mathematical method of determining unknown values that lie in between the known data points
Sequential color principles
Perceptually linear; Steps are naturally ordered; Diverging: natural zero point
Categorical encodings (use names)
measures should be categorically distinguishable
Categorical color principles
Distinct; Semantically meaningful; Roughly equally salient
Diverging encodings
use both
Live demo
Interactive and highly engaging; Can adapt dynamically to audience feedback; Builds trust through real-time proof
Video demo
Controlled, polished, and bug-free; Guaranteed pacing and precise timing; Reusable across multiple channels