Saturday, July 25, 2020

Some pitfalls of SSR in React


MobX & React Hooks

Feb 2019 How to use Mobx with React Hooks
https://www.youtube.com/watch?v=oQiMXRsO4o4

Dec 2019 Intro to Mobx & React in 2020
https://www.youtube.com/watch?v=pnhIJA64ByY

Dec 2019 React Hooks + MobX TodoList
https://levelup.gitconnected.com/react-hooks-mobx-todolist-c138eb4f3d04

Dec 2019 Replacing Redux with Observables and React Hooks
https://blog.betomorrow.com/replacing-redux-with-observables-and-react-hooks-acdbbaf5ba80

Jan 2020 Using MobX with React Hooks
https://dev.to/ryands17/using-mobx-with-react-hooks-part---2-8ac

April 2020 MobX Strategies with React Hooks
https://medium.com/@suraj.kc/mobx-strategies-with-react-hooks-3de23932cb8c

June 2020 A State management comparison with React hooks, mobx and recoiljs
https://medium.com/@dbottiau/a-state-management-comparison-with-react-hooks-mobx-and-recoiljs-3b7e2f4cc6c3

June 2020 How to use React with MobX and Hooks - Note Taking App Tutorial
https://www.youtube.com/watch?v=MKNls_FReXI

useSelector or useContext

React & JS Cheatsheets by Reed Barger

Old links that are not working anymore:

New links:

How to center an element horizontally and vertically

Friday, July 24, 2020

VueJS Best Practices

Refactoring and the Art of Improvement

https://medium.com/young-coder/refactoring-and-the-art-of-improvement-19735563fbc2
Here are some common suggestions that sound reasonable, but set different thresholds:
  • Refactor when the cost of refactoring is less than the cost of not refactoring. (Sounds good, but how can you make that calculation?)
  • Refactor before adding new features if it will make it easier to add those features.
  • Ignore ugly code once. But refactor if you stumble over the same pain point twice.
  • Refactor opportunistically. Clean things up whenever and wherever you get the chance.
  • Refactor if you can make the change quickly (say, within a day).
  • Only refactor when the pain of leaving it exceeds the pain of fixing it.
  • Refactor immediately after shipping. (A great idea with very little likelihood of actually being followed.)

Why does Rails 6 include both Webpacker and Sprockets?

Wednesday, July 22, 2020

Advice from Marcelo Bielsa

"- Do not allow failure to deteriorate your self-esteem. When you win, the message of admiration is so confusing, it stimulates you so much your love for yourself and that deforms so much. And when you lose, the opposite happens, there is a morbid tendency to discredit you , to offend you, just because you lost. In any task you can win or lose, the important thing is the nobility of the resources used. " - Marcelo Bielsa

Friday, July 10, 2020

The myth of NoSQL (vs. RDBMS) “joins dont scale”

An Intro to JavaScript Modules

CRDTs: The Hard Parts


The Auth Bottleneck Pattern

Javascript Testing - React, Jest, React Testing Library, Cypress




Beeswarm chart with D3.js

The Difference Between HTTP Auth, API Keys, and OAuth

International Institute of Software Management, iiSM.ORG

Linux - Splitting & Joining a file

https://www.ibm.com/support/pages/how-use-split-and-cat-commands-split-large-file-smaller-pieces-and-then-restore-pieces-single-file

Splitting:
split -l 1000000 full_file.dat

Output is - xaa, xab, xac

Joining:
cat xab >> xaa
cat xac >> xaa

Note: At the lines where the files are joining, the ending line of part1 and 1st line of part 2 will be concatenated on the same line. We'll have to open the file in vi and just enter a newline in those places.

Followers

Blog Archive