Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
L
lecture materials
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
generic software skills
lecture materials
Commits
0a7abac3
Commit
0a7abac3
authored
1 year ago
by
Dominik Zobel
Committed by
Tobias Koelling
1 year ago
Browse files
Options
Downloads
Patches
Plain Diff
Add content to complexity in software design part
parent
c48188ae
No related branches found
No related tags found
1 merge request
!24
complexity lecture
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
lectures/complexity/slides.qmd
+36
-7
36 additions, 7 deletions
lectures/complexity/slides.qmd
with
36 additions
and
7 deletions
lectures/complexity/slides.qmd
+
36
−
7
View file @
0a7abac3
...
...
@@ -137,20 +137,49 @@ These can come with **very** different complexity ratings.
For certain tasks (e.g. sorting, neighbors, averaging, or really anything...), think about what complexity class is expected.
If your program behaves differently, **change it** or **seek advice** from colleagues.
# Complexity in software design
## interdependence of components
possibly also amount of coordination and communication needed
# Complexity in Software Design
## ways to counteract
::::::::{.columns}
:::{.column width=50% .smaller}
_"Complexity kills. It sucks the life out of developers, it makes products difficult to plan, build, and test"_
Ray Ozzie, former Microsoft CTO
:::
::::::::
## Interdependence of Components
Here complexity refers to
- amount of interactions between objects
- resulting amount of coordination and communication needed
Complexity is not about complicated designs
(although simple designs are usually a good idea)
## Typical Ways to Counteract
- Use abstraction when suitable
- Encapsulate different concepts in different objects/classes/...
- Abstraction
- Encapsulation
## Maintainability
_Also focus on maintainability. This lecture might or might not be the right place, but it should be useful somewhere_
**If code works, why put more effort in it to reduce complexity and make it more approachable?**
- Your future self and others can understand faster,
- Changing and adding components should be easy and only require local adjustments,
- Bugs are easier to find when the complecity is low (and components individually testable),
- This also makes testing easier and more likely to test all code paths (high code coverage)
# Resources
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment