Skip to content

Commit

Permalink
small improvements (mostly fixing dead links)
Browse files Browse the repository at this point in the history
  • Loading branch information
mistermicheels committed Oct 1, 2022
1 parent 246134e commit 52a4fc5
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 9 deletions.
7 changes: 4 additions & 3 deletions architecture-design/Deployable-components.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
description: Some thoughts on defining deployable components and the dependencies between them
last_modified: 2020-11-21T18:14:37.160Z
last_modified: 2022-10-01T10:59:07.948Z
---

# Deployable components
Expand Down Expand Up @@ -51,6 +51,7 @@ Three important principles:
- Similar to Single Responsibility Principle in [SOLID principles](oo-design/SOLID-principles.md)
- If the code of an application must change, you would ideally have all the changes to occur in a single component, so you only have to redeploy that single component
- Other components depending on that single component do not need to be revalidated or redeployed
- If you always need to change and redeploy component A and B together, consider merging them into one component
- Relation to Open-Closed Principle from [SOLID principles](oo-design/SOLID-principles.md): group together the classes that are closed to the same type of changes
- This principle is inclusive: tends to make components larger
- **CRP**: Common Reuse Principle
Expand All @@ -67,7 +68,7 @@ Tension diagram (edges of diagram show the cost of abandoning the principle on t

![Tension diagram](_img/Deployable-components/cohesion-principles-tension-diagram.jpg)

([image source](https://www.codingblocks.net/podcast/clean-architecture-components-and-component-cohesion/))
([image source](https://dev.to/codingblocks/71-clean-architecture--components-and-component-cohesion))

- Are “too many” components changing at the same time? Then your classes should be consolidated better (CCP)
- Do you have “too many” releases? You should take a look at streamlining and minimizing your dependencies (CRP)
Expand Down Expand Up @@ -164,4 +165,4 @@ What typically works:
## Resources

- Clean Architecture (book by Robert C. Martin)
- [Clean Architecture – Components and Component Cohesion](https://www.codingblocks.net/podcast/clean-architecture-components-and-component-cohesion/)
- [Clean Architecture – Components and Component Cohesion](https://dev.to/codingblocks/71-clean-architecture--components-and-component-cohesion)
4 changes: 2 additions & 2 deletions data/Data-schema-migration.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
description: Some techniques for migrating the structure of your data
last_modified: 2020-06-14T18:51:13+02:00
last_modified: 2022-10-01T10:59:07.973Z
---

# Data schema migration
Expand Down Expand Up @@ -95,5 +95,5 @@ Verifying correctness of migration: _Dark Reads_

## Resources

- [Feature Flag Best Practices ebook](https://try.split.io/oreilly-feature-flag-best-practices)
- [Feature Flag Best Practices ebook](https://www.oreilly.com/library/view/feature-flag-best/9781492050452/)
- [Online migrations at scale](https://stripe.com/blog/online-migrations)
4 changes: 2 additions & 2 deletions javascript/Event-loop.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
tree_title: Event loop
description: A high-level overview of how JavaScript handles concurrency using its Event Loop
last_modified: 2021-12-27T16:49:37.804Z
last_modified: 2022-10-01T10:59:07.997Z
---

# Event loop (JavaScript)
Expand Down Expand Up @@ -213,7 +213,7 @@ Some ways to mitigate this:
- Reject large input
- Avoid regular expressions using nested quantifiers (like `(a+)*`), backreferences (like `(a.*) \1`, ...)
- Use simple string matches (like `indexOf`) instead of regexes where possible
- Use tools like [safe-regex](https://github.com/substack/safe-regex) that can help you identify some (but not all) vulnerable regexes
- Use tools like [safe-regex](https://www.npmjs.com/package/safe-regex) that can help you identify some (but not all) vulnerable regexes

### Recommendation: task partitioning

Expand Down
4 changes: 2 additions & 2 deletions processes-techniques/Feature-flags.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
description: A way to build flexibility into your codebase, allowing some features or alternate code paths to be toggled on or off at will
last_modified: 2020-10-25T21:56:09.027Z
last_modified: 2022-10-01T10:59:08.028Z
---

# Feature flags
Expand Down Expand Up @@ -276,4 +276,4 @@ Existing flags:
- [Feature Toggles (aka Feature Flags)](https://martinfowler.com/articles/feature-toggles.html)
- [Effective Feature Management ebook](https://launchdarkly.com/effective-feature-management-ebook/)
- [Feature Flag Best Practices ebook](https://try.split.io/oreilly-feature-flag-best-practices)
- [Feature Flag Best Practices ebook](https://www.oreilly.com/library/view/feature-flag-best/9781492050452/)

0 comments on commit 52a4fc5

Please sign in to comment.