- 1 ½ cups self rising flour
- 1 stick butter
- ½ cup water
- 2 cups sugar, divided
- 4 cups peaches, peeled and sliced
- 1 cup milk
- ground cinnamon, optional
data intensive apps are built from building blocks:
- db - store data to find it again later
- caches - remember res of expensive calculation
- search indexes - allow users to search via keyword or other ways
- stream processing send msg to another process to be handled async
- batch processing - periodically crunch a bunch of accumulated data.
- how do you make sure data remains correct and complete, even when things go wrong internally?
- Boil 2 eggs
- Cut one ear of corn
- Make a big bowl with 1/2 spinach and 1/2 butter lettuce (or spring mix)
- Pan fry 2 pieces of bacon crispy, let sit out to harden afterward
- Toss all bacon grease except leftover in pan, cook corn in it
- Cut up 1 avocado and crumble bacon over salad
- Slice eggs to desired thickness and put in salad
- Make dressing and pour over salad:
- 2 tbsp Honey
- 1/2 cup of Red wine vinegar
'clear the clutter in our heads and our minds'
- we're evolutionarily wired for 'easy', embrace it
- Carl Jacobi, Mathematician - "one must invert, always invert" ^ transform a problem into a different representation to make it easier to work with
just asking, "what if this could be easy?" is a simple way to reset your thinking
choosing an indirect approach - for a really difficult task (as opposed to hitting it head-on)..how do you do this in practice? Consider strategy before doing aka "how should I approach this for ease?"
Combined guide from reading https://pne.people.si.umich.edu/PDF/howtoread.pdf and How To Read a Book by Mortimer Adler.
- Decide how much time you'll spend
2. Have a purpose and a strategy
why you're gonna read it and how you're gonna do it
- Who is the author?
- What are the book’s arguments?
- What is the evidence that supports these?
Notes taken from reading How To Read a Book by Mortimer Adler.
"Knowledge is not as much a prerequisite to understanding as is commonly supposed. We don't have to know everything about something in order to understand it; too many facts are often as much of an obstacle to understanding as too few. There is a sense in which we moderns are inundated with facts to the detriment of our understanding." - p.4
"Reading is a complex activity that consists of several acts, all of which must be performed to be 'good reading'."
Levels of Reading
- Elementary - "what does the sentence say?"
Notes from Putting An Age-Old Battle To Rest
Traditional rules of simple code design:
- pass its tests
- minimalizes duplication
- reveals its intent
- reduces the number of classes/modules/packages
^This is put in order of importance. Now some have argued over the order of 2 & 3, because when you're doing one you're doing the other...these 2 rules inform each other in a rapid feedback cycle.
Notes From Steve Kinney's "React Performance" Frontend Masters Course
re: optimizations: "Start with a problem first, then solve it. dont go looking for problems."
"measure first before you optimize for performance. And then measure again."
Notes from Typescript Fundamentals (FE Masters)
Reference: https://www.typescript-training.com/
TL;DR: An object which stores objects/arrays by key
Sometimes we need to represent a type for dictionaries, where values of a consistent type are retrievable by keys.
PropsWithChildren
allows you to define props within a children prop
import {PropsWithChildren} from 'react';