Skip to content

Commit

Permalink
Bump prettier from 3.2.5 to 3.3.3 (#189)
Browse files Browse the repository at this point in the history
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: James Walsh <jamesandersonwalsh@gmail.com>
  • Loading branch information
dependabot[bot] and BuiltByWalsh authored Sep 13, 2024
1 parent ff4c5af commit 06741b8
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 16 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@
"happy-dom": "^14.12.0",
"husky": "^8.0.3",
"postcss": "^8.4.38",
"prettier": "^3.2.5",
"prettier": "^3.3.3",
"prettier-plugin-tailwindcss": "^0.5.9",
"rehype": "^13.0.1",
"rehype-autolink-headings": "^7.1.0",
Expand Down
14 changes: 7 additions & 7 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

17 changes: 9 additions & 8 deletions posts/es2023-immutable-arrays.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,10 @@ With the exception of `with()` all of these new methods provide similar function
The big change here has to do with array mutations. These old-school methods act like stateful object-oriented methods, & mutate the state of the array instance they are called upon.

<br />
Conversely, each of these new array methods behave as a `Functor` _(you can check out my write-up on functors [here](/posts/tenets-of-functional-programming#tenet-5-functors-️))_.
The resulting "mutation" always executes on a brand new copy of the array returning the new result. No mutations happen to
the array instance the function was called upon.
Conversely, each of these new array methods behave as a `Functor` _(you can check out my write-up on functors
[here](/posts/tenets-of-functional-programming#tenet-5-functors-️))_. The resulting "mutation" always executes on a
brand new copy of the array returning the new result. No mutations happen to the array instance the function was called
upon.

<br />

Expand Down Expand Up @@ -156,11 +157,11 @@ or you are dealing with a part of your codebase that's having scaling issues; yo

<br />
But for most of us, the caution here is that premature optimization can cause software rot. Most of the time I'm focused
on building cool reliable web-based things on modern devices, where we need tons of interactivity with safety baked-in. I
see these new array methods as the natural progression of what the language should offer, which continues to get us closer
to feature parody with open source libraries developers have reached for in the past. Until copying lists proves to be a
problem in a particular codebase, this is my approach. We can always be more cautious as cases arise naturally. But for most
of us, these new methods solve for bugs caused by bad mutations, with totally manageable trade-offs.
on building cool reliable web-based things on modern devices, where we need tons of interactivity with safety baked-in.
I see these new array methods as the natural progression of what the language should offer, which continues to get us
closer to feature parody with open source libraries developers have reached for in the past. Until copying lists proves
to be a problem in a particular codebase, this is my approach. We can always be more cautious as cases arise naturally.
But for most of us, these new methods solve for bugs caused by bad mutations, with totally manageable trade-offs.

<br />
Cheers! 🤙

0 comments on commit 06741b8

Please sign in to comment.