Skip to content

Commit

Permalink
2024-04-07 update
Browse files Browse the repository at this point in the history
  • Loading branch information
e-krebs committed Apr 7, 2024
1 parent 9de922c commit 45eac27
Show file tree
Hide file tree
Showing 9 changed files with 39 additions and 19 deletions.
39 changes: 20 additions & 19 deletions .obsidian/workspace.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"state": {
"type": "markdown",
"state": {
"file": "programming/React/explanation.md",
"file": "programming/css/tips & cool stuff.md",
"mode": "source",
"source": false
}
Expand Down Expand Up @@ -48,7 +48,7 @@
"state": {
"type": "search",
"state": {
"query": "",
"query": "color sc",
"matchingCase": false,
"explainSearch": false,
"collapseAll": false,
Expand All @@ -73,7 +73,8 @@
"state": {}
}
}
]
],
"currentTab": 1
}
],
"direction": "horizontal",
Expand All @@ -93,7 +94,7 @@
"state": {
"type": "backlink",
"state": {
"file": "programming/React/explanation.md",
"file": "programming/css/tips & cool stuff.md",
"collapseAll": false,
"extraContext": false,
"sortOrder": "alphabetical",
Expand All @@ -110,7 +111,7 @@
"state": {
"type": "outgoing-link",
"state": {
"file": "programming/React/explanation.md",
"file": "programming/css/tips & cool stuff.md",
"linksCollapsed": false,
"unlinkedCollapsed": true
}
Expand All @@ -122,7 +123,7 @@
"state": {
"type": "outline",
"state": {
"file": "programming/React/explanation.md"
"file": "programming/css/tips & cool stuff.md"
}
}
},
Expand Down Expand Up @@ -166,34 +167,34 @@
"command-palette:Open command palette": false
}
},
"active": "5e78851e66e1c365",
"active": "6475e229d109b362",
"lastOpenFiles": [
"programming/SVG/general.md",
"programming/SVG/SVG sprites.md",
"programming/general.md",
"programming/Multi-platform.md",
"programming/css/general.md",
"programming/Javascript/general.md",
"Games.md",
"programming/css/tailwind css.md",
"programming/Typescript/general.md",
"programming/Typescript/Utility types.md",
"Art.md",
"programming/_memo.md",
"programming/Tests.md",
"programming/React/general.md",
"programming/React/explanation.md",
"programming/Typescript/general.md",
"programming/Javascript/general.md",
"programming/Node/Libraries.md",
"programming/Javascript/string comparison.md",
"programming/_memo.md",
"programming/SVG/general.md",
"programming/SVG/SVG sprites.md",
"programming/general.md",
"programming/Multi-platform.md",
"Games.md",
"programming/tools.md",
"programming/html.md",
"programming/Icons.md",
"programming/linting.md",
"programming/packages.md",
"Art.md",
"Carrier.md",
"programming/css/tips & cool stuff.md",
"programming/css/tailwind css.md",
"programming/React/RSC.md",
"programming/Node/general.md",
"programming/Tests.md",
"programming/Typescript/Utility types.md",
"programming/React",
"programming/css",
"programming/Javascript",
Expand Down
2 changes: 2 additions & 0 deletions Art.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,5 @@ https://yuanchuan.dev/daily-sketch-1
https://yuanchuan.dev/daily-sketch-2
https://yuanchuan.dev/daily-sketch-3
https://yuanchuan.dev/daily-sketch-4

[azulejo](https://github.com/nemutas/azulejo)
1 change: 1 addition & 0 deletions programming/Javascript/general.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
[biometric auth](https://stackoverflow.blog/2022/11/16/biometric-authentication-for-web-devs/)
[data structures (Map, Set, Stack, Queue, Tree)](https://profy.dev/article/javascript-data-structures)
[compress an image before upload](https://pqina.nl/blog/compress-image-before-upload)
[pragmatic drag & drop](https://github.com/atlassian/pragmatic-drag-and-drop)

## cool stuff
[draw regular shapes](https://developer.mozilla.org/en-US/blog/javascript-shape-drawing-function/)
Expand Down
4 changes: 4 additions & 0 deletions programming/React/explanation.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,13 @@
[how virtual DOM in implemented in React](https://angularindepth.com/posts/1501/exploring-how-virtual-dom-is-implemented-in-react)

[forwardRef / how to pass refs to child components](https://dmitripavlutin.com/react-forwardref/)
[How To Use forwardRef With Generic Components](https://www.totaltypescript.com/forwardref-with-generic-components)

[refs in React: from access to DOM to imperative API](https://www.developerway.com/posts/refs-from-dom-to-api)

[concurrency in React](https://sinja.io/blog/guide-to-concurrency-in-react-18)
[Concurent React (and some Suspense)](https://blog.codeminer42.com/everything-you-need-to-know-about-concurrent-react-with-a-little-bit-of-suspense)

[Concurrent React, External Stores, and Tearing](https://interbolt.org/blog/react-ui-tearing/)

[React's cache function](https://unicorn-utterances.com/posts/explaining-reacts-cache-function)
Expand Down
4 changes: 4 additions & 0 deletions programming/React/general.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,12 @@
[How to fetch data in React with performance in mind](https://www.developerway.com/posts/how-to-fetch-data-in-react)
[swr](https://swr.vercel.app/)
[toggle + request & optimistic update (useMutation)](https://www.propelauth.com/post/using-usemutation-to-make-an-advanced-toggle-in-react)
[Fetching data in React: the case of lost Promises](https://www.developerway.com/posts/fetching-in-react-lost-promises)

## react router
[complete guide to React router](https://ui.dev/react-router-tutorial)
[location aware sidebar with React router](https://ui.dev/react-router-sidebar-breadcrumbs)
[typesafe React router in 500 lines](https://sinja.io/blog/build-typesafe-react-router-from-scratch)

## Tools
[react charts](https://www.react-graph-gallery.com/)
Expand Down Expand Up @@ -47,6 +49,8 @@
[Strongly Type useRef with ElementRef](https://www.totaltypescript.com/strongly-type-useref-with-elementref)
[avoid flash of empty UI](https://www.jameskerr.blog/posts/use-data-transition/)
[about memoization](https://tkdodo.eu/blog/the-uphill-battle-of-memoization)
[performant React apps with Context](https://www.developerway.com/posts/how-to-write-performant-react-apps-with-context)
[A faster React.memo](https://romgrk.com/posts/react-fast-memo/)

[iOS-like modal with react-aria-components & framer-motion](https://codesandbox.io/s/quirky-tharp-or0qip?file=/src/App.js)
[build.ui recipes](https://buildui.com/recipes)
Expand Down
2 changes: 2 additions & 0 deletions programming/Tests.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
## tips
[react component tests clean & maintainable](https://medium.com/globant/achieving-clean-and-maintainable-react-component-tests-b3d5e0483307)
[running 1000 tests in 1s](https://marvinh.dev/blog/running-1000-test-in-1s/)
[Best Practices for Writing Tests with React Testing Library](https://claritydev.net/blog/improving-react-testing-library-tests)

## tools
[vitest](https://vitest.dev/)
[node native test runner](https://pawelgrzybek.com/you-might-not-need-jest-the-node-js-native-test-runner-is-great/)
2 changes: 2 additions & 0 deletions programming/Typescript/general.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
## linting
[Method Shorthand Syntax Considered Harmful](https://www.totaltypescript.com/method-shorthand-syntax-considered-harmful)
[markcheck – test Markdown code blocks](https://github.com/rauschma/markcheck)

## typesafe string literal/router
[Extract parameter types from string literal types with TypeScript](https://lihautan.com/extract-parameters-type-from-string-literal-types-with-typescript)
Expand All @@ -25,3 +26,4 @@
## libraries
[motion - animated videos using Canvas API](https://motioncanvas.io/)
[path to regex](https://github.com/pillarjs/path-to-regexp)
[replaces spread: default composer](https://aralroca.com/blog/default-composer) [GitHub](https://github.com/aralroca/default-composer)
1 change: 1 addition & 0 deletions programming/_memo.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,4 @@
[migration guide](https://eslint.org/docs/latest/use/configure/migration-guide)
[custom rule prep for v9](https://eslint.org/blog/2023/09/preparing-custom-rules-eslint-v9/)
[You Probably Don't Need eslint-config-prettier or eslint-plugin-prettier](https://www.joshuakgoldberg.com/blog/you-probably-dont-need-eslint-config-prettier-or-eslint-plugin-prettier/)
[eslint config inspector](https://eslint.org/blog/2024/04/eslint-config-inspector/)
3 changes: 3 additions & 0 deletions programming/css/tips & cool stuff.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,9 @@
[circular text](https://dev.to/jh3y/circular-text-with-css-57jf)
[radial gradient](https://css-irl.info/radial-gradients-and-css-trigonometric-functions/)
[draw radar charts](https://www.smashingmagazine.com/2024/02/draw-radar-charts-web/)
[Top 5 CSS Mistakes made by Front End Engineers](https://www.greatfrontend.com/blog/top-css-mistakes-made-by-front-end-engineers)
[What You Need to Know about Modern CSS (Spring 2024 Edition)](https://frontendmasters.com/blog/what-you-need-to-know-about-modern-css-spring-2024-edition/)
[# Setting And Persisting Color Scheme Preferences With CSS And A “Touch” Of JavaScript](https://www.smashingmagazine.com/2024/03/setting-persisting-color-scheme-preferences-css-javascript/)

### nested rounded corners
[nested radius](https://twitter.com/aleksliving/status/1687889580555407361)
Expand Down

0 comments on commit 45eac27

Please sign in to comment.