My new coding workflow as an ex-PM:
1. Have an idea for a feature in mind
2. Write that in the Cursor chat box in a scrappy format
3. Ask Claude-3.7-thinking to plan for the feature, write a complete design docs without a single line of code
(continue in next thread...)
Annual shoutout to the Keepa Amazon price tracker plugin, so you can check to see if every Black Friday sale is actually a sale, or just marked as one so you think you're getting a deal
Every morning, try to go for a walk outside with a cup of coffee to get some sunlight.
If you start your day like this, youโll be compounding the brain health benefits of each: staving off premature aging, circadian rhythm regulation, and neuroprotection โ๏ธโ๏ธ
Everyone should know this:
Vitamin C, elemental Zinc, Quercetin and Vitamin D3/K2, magnesium are the most basic preventative measure you can take. Ph@rma simply don't want you to know that.
RT and Share
If I could only choose 4 habits to stay lean, build muscle, and maintain high energy, hereโs what I would choose:
1) Walking 8,000+ steps a day
Everyone tells you to walk more to lose weight.
But no one tells you why.
It's simple:
Take the example of running a mile vs. walking a mile.
Both burn roughly 100 calories.
The difference is, running is high impact, stressful, and increases your appetite.
But walking is low impact, low stress, and can actually diminish appetite.
You can also walk nearlyย anywhere at nearlyย anytime.
- You can take work calls on walks
- You can clear your head on walks
- You can listen to podcasts on walks
- You can catch up with friends on walks
Numerousย studies show people with consistent walking habits live longer, maintain healthier weights, and avoid disease at higher rates than those who live sedentary lifestyles.
Walking is the highest ROI habit you can form.
And it becomes more fun the more you do it.
If you dread walking, I challenge you to to simply commit to a 5-10 minute walk outside.
From there, keep increasing the time and the frequency until you fall in love with the habit.
2) 30-50g of animal protein each meal
The easiest way to avoid overeating, keep blood sugar stable, and preserve muscle mass is to focus on protein with each meal.
Of the three macronutrients (protein, carbs, fats), protein is the most satiating.
Meaning it keeps you full longest.
It's also the most thermogenic, meaning the body burns the most calories when digesting it.
And as the protein helps you build muscle mass, your body burns more and more calories.
But why animal protein specifically?
Animal protein has a complete amino acid profile and is more bioavailable when compared to plant protein.
Your body prefers and most easilyย digests protein from animal sources.
If you want to get lean and stay lean, aim for 30-50g of animal protein each meal from
- Fish
- Eggs
- Whey
- Chicken
- Grass-fed beef
3) Strength training 3x a week
That protein needs a reason to go to work.
You'll give it one with consistent stimulus from strength training.
But you don't need to become a gym bro and be in the gym 10 hours a week to see results.
You can build muscle in 2-3 hours a week focusing on:
- Compound movements (think bench, row, squat, RDLs, presses)
- Progressive overload (adding weight/ reps each session)
- Staying focused on working to failure with each set 2-3 days a week
-Tracking your workouts to allow you to accurately progress your lifts safely and with intent.
Here's the cycle of how it works:
- You tear down muscle through training
- You recover with adequate rest and protein
- Your body builds back more muscle than it had before
As you add muscle, you get a boost in metabolism and burn more calories at rest.
Sounds like a pretty good combo, right?
4) Limiting processed foods
If you want to avoid obesity, chronic inflammation, and chronic disease, cutting out processed foods is the biggest lever to pull.
But it goes deeper than that.
Avoiding processed food rubs off on every area of your life:
With less brain fog, you'll make better decisions and get better work done.
With steadier energy, you'll be moe likely to hit the gym, take an extra walk, and be present with family.
Each day you avoid processed food, your desire to eat it decreases, meaning it becomes easier and easier to eat healthy.
And so each day you avoid processed foods, you become healthier and function better.
Quick recap:
4 highest ROI habits for your health:
- Walking
- Strength training
- Prioritizing protein
- Limiting processed foods
I'm discovering the parallels between MVC and a "modern" Semantic Layer.
MVC (Model-View-Controller) is a fascinating topic from the late 70s, still powering RubyOnRails & Laravel. Why not use it for data?
The parallel:
- Model = Raw Data & metrics/business logic from SL
- View = BI tool, data app, presentation
- Controller = Semantic Layer
Too stretched or interesting? ๐ค
Best non animal based foods to support an animal based, almost #carnivore#ketovore WOE for the benefits of what phytonutrients can enhance your hormones & health
Broccoli
Cabbage
Brussels sprouts
Asparagus
Onion
Garlic
Berries
Avocado
summer squash
cucumber
red pepper
#LCHPMF
10 months ago, I created a System Design repo on Github, and I'm excited to share that it recently reached over 15,000 stars.
Thanks to everyone who has starred or forked this repository!
The repository contains a collection of resources to study:
- System Design concepts and building blocks
- Most common tradeoffs
- Around 50 interview problems categorized by difficulty level
- Books/channels to learn more about System Design
I recently made it more structured, added new articles and updated some of the existing articles.
My goal with this repo is to curate the best resources to learn System Design and prepare for interviews.
If you find it valuable, consider giving it a star.
Check it out here: https://t.co/pkVpi6L03n
7 must-know runtime complexities for coding interviews:
1. ๐(1) - ๐๐จ๐ง๐ฌ๐ญ๐๐ง๐ญ ๐ญ๐ข๐ฆ๐
- The runtime doesn't change regardless of the input size.
- Example: Accessing an element in an array by its index.
2. ๐(๐ฅ๐จ๐ ๐ง) - ๐๐จ๐ ๐๐ซ๐ข๐ญ๐ก๐ฆ๐ข๐ ๐ญ๐ข๐ฆ๐
- The runtime grows slowly as the input size increases. Typically seen in algorithms that divide the problem in half with each step.
- Example: Binary search in a sorted array.
3. ๐(๐ง) - ๐๐ข๐ง๐๐๐ซ ๐ญ๐ข๐ฆ๐
- The runtime grows linearly with the input size.
- Example: Finding an element in an array by iterating through each element.
4. ๐(๐ง ๐ฅ๐จ๐ ๐ง) - ๐๐ข๐ง๐๐๐ซ๐ข๐ญ๐ก๐ฆ๐ข๐ ๐ญ๐ข๐ฆ๐
- The runtime grows slightly faster than linear time. It involves a logarithmic number of operations for each element in the input.
- Example: Sorting an array using quick sort or merge sort.
5. ๐(๐ง^2) - ๐๐ฎ๐๐๐ซ๐๐ญ๐ข๐ ๐ญ๐ข๐ฆ๐
- The runtime grows proportionally to the square of the input size.
- Example: Bubble sort algorithm which compares and potentially swaps every pair of elements.
6. ๐(2^๐ง) - ๐๐ฑ๐ฉ๐จ๐ง๐๐ง๐ญ๐ข๐๐ฅ ๐ญ๐ข๐ฆ๐
- The runtime doubles with each addition to the input. These algorithms become impractical for larger input sizes.
- Example: Generating all subsets of a set.
7. ๐(๐ง!) - ๐ ๐๐๐ญ๐จ๐ซ๐ข๐๐ฅ ๐ญ๐ข๐ฆ๐
- Runtime is proportional to the factorial of the input size.
- Example: Generating all permutations of a set.
โป๏ธ Repost to help others in your network.
Join 28,501+ readers of our free newsletter: https://t.co/kPG9KUxfy6
Large amount of concentrated lemon water dissolves kidney stones fast. Sometimes the solution is so simple itโs maddening the amount of suffering people put up with not knowing.
My top biomarkers to measure annually for longevity:
- Hb1Ac and fasting insulin
- Lipid panel and ApoB
- hsCRP
- Liver enzymes (ALT, AST, GGT, ALP)
- Albumin
- Complete blood count
- Kidney function (cystatin C, eGFR, BUN, sodium)
- Vitamin D3
- Sex hormones (Test, DHEA-S, E2)
- Homocysteine
Not a comprehensive list, but covers the most important ones