Skip to content

Commit

Permalink
Merge pull request #12 from VGVentures/fix/asides
Browse files Browse the repository at this point in the history
fix: no need for component to use an aside
  • Loading branch information
jolexxa authored Jul 10, 2024
2 parents 7d52e68 + 5327176 commit 3bda683
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/content/docs/development/philosophy.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ sidebar:
order: 0
---

import { Aside, TabItem, Tabs } from "@astrojs/starlight/components";
import { TabItem, Tabs } from "@astrojs/starlight/components";
import Diagram from "~/components/diagram.astro";
import goodCodeDark from "./diagrams/good_code_dark.png";
import goodCodeLight from "./diagrams/good_code_light.png";
Expand Down Expand Up @@ -118,14 +118,13 @@ mappedStream.listen((value) {
````
<Aside type="caution">
:::caution
We introduce reactive code cautiously, typically only leveraging it at the domain layer to broadcast data changes to view-specific business logic. While reactive code is technically "declarative", it describes how the data is transformed, not necessarily the business logic itself: i.e., it should be the underlying plumbing of the business logic.
Additionally, complex data transformations are known for being difficult to grasp. Because of their tremendous power and flexibility, reactive tools make it easy to accidentally introduce coupling between components in the same architecture layer. In our experience, unintended coupling is by far the most common architectural pain point.
For this reason, we consider reactive programming to be like glue — it's extremely strong, but it's sticky and it gets everywhere if you're not careful.
</Aside>
:::
## 💪 Consistency
Expand Down

0 comments on commit 3bda683

Please sign in to comment.