๐ New Course Launch!
AWS CDK v2 with TypeScript
Learn to define & deploy AWS infrastructure in code.
Hands-on projects: S3, Lambda, API Gateway, DynamoDB, SQS, Cognito & more.
Enroll now & build like a pro!
udemy.com/course/aws-cdk-v2-โฆ
#AWS #CDK #TypeScript #CloudComputing
๐จ New Course Alert! ๐จ
Practical Git and GitHub: From Basics to Pro Workflows
โ
Real-world Git commands
โ
VSCode + Terminal workflows
โ
Interactive rebase, cherry-pick & more
๐ฏ udemy.com/course/practical-gโฆ
๐ Code: GIT-GITHUB-COURSE
โณ Offer ends June 11, 2025
๐จ New Course Alert! ๐จ
Practical Git and GitHub: From Basics to Pro Workflows
โ
Hands-on Git commands
โ
Real-world workflows (merge, rebase, cherry-pick)
โ
Terminal + VSCode examples
Perfect for devs who want to master Git without the fluff.
The limits of AI in programming | Tim Sweeney and Lex Fridman youtu.be/lR21C8cNx2o?si=pd4cโฆ via @YouTube
The more time I spend in production code, the more I realize how out of touch many YouTube coding influencers are.
Their takes on โclean code,โ โbest practices,โ and what it means to be a senior dev often crumble in the face of real-world constraints, and legacy systems ๐
๐ New Course Alert!
Master Jest Testing with TypeScript & Node.js
Learn how to write clean, reliable tests with real-world examples.
Unit tests, mocks, spies, error handling & more!
๐ฏ Enroll now โ
udemy.com/course/mastering-jโฆ
Just installed webpack-bundle-analyzer โ love the ๐ฅ graphical breakdown of my bundle! Makes spotting bloat so much easier ๐๐ต๏ธโโ๏ธ
Not using Webpack? Check out source-map-explorer or vite-plugin-visualizer ๐ก
#webpack #webperf #javascript
Spicy take ๐ถ๏ธ: For all the talk about TypeScript "overcomplicating" things, itโs actually saving your team from chaos ๐
๐ Want to see where a dependency is used in your project?
Run this command:
๐ npm ls package-name
It shows the full dependency tree ๐ณ
Super useful for tracking down nested dependencies ๐ต๏ธโโ๏ธ
#npm #javascript #nodejs #webdev
Hot take ๐ฅ : in production, SourceTree โฉ Git CLI.
Look, I โค๏ธ terminal too, but when itโs time to rebase, merge, and cherry-pick in prod - most times clicking ๐ฑ๏ธ is faster than rewriting the same conflict 3 timesโor summoning the Git gods with a ritual sacrifice. ๐ฅ
Using a this hack in tests:
๐ const resetSingleton = () => (HashingService as any).instance = undefined;
๐ง Calling this in beforeEach() to reset singleton state.
๐ต๏ธโโ๏ธ In general, (SomeClass as any) helps "cheat" TypeScript when tests need to bypass strict typing. #TypeScript#Jest
Spent an hour debugging a mysterious TypeScript error ๐ตโ๐ซ
Turns out... .webpackCache was the culprit ๐งจ
Deleted it, and everything worked like magic โจ
#webpack #devlife #typescript ๐ ๏ธ
๐ง TypeScript fun fact! ๐ง
The declare keyword only provides type information but NO runtime values!
declare enum Colors { RED, BLUE }
console.log(Colors.RED) // ๐ฅ Crash!
Remove declare if you need actual values at runtime ๐
๐ Dev Tip: Lookup Tables FTW! ๐
Ditch long if/switch statementsโuse object mapping instead!
๐ Examples:
โ
Convert status codes to messages
โ
Map country codes to names
โ
Translate enums
๐ก const result = lookupTable[input] || defaultValue;
Fast, and easy to maintain! โก
๐ Generate minimal .d.ts files with dts-bundle-generator
๐ฆ npm install --save-dev dts-bundle-generator
๐ mkdir -p types (if missing)
โก npx dts-bundle-generator -o types/utils.d.ts src/utils.ts
๐ Extracts only needed types & dependencies!
๐งช Jest Mocking Gotcha!
๐ฅ Issue:
๐ jest.mock('./myModule');
๐จ Returns undefined for EVERYTHING! ๐ซฅ
โก Your code:
๐ myModule.doStuff()
๐ฅ Cannot read property 'doStuff' of undefined
๐ Fix:
jest.mock('./myModule', () => ({ doStuff: jest.fn() }));
#JavaScript #Testing #Jest
๐ Git tip: Deleted files not showing up in staging?
git add -A
The -A flag is your friend! It stages ALL changes:
โข New files โจ
โข Modified files ๐
โข Deleted files ๐๏ธ
โข Renamed files ๐
No more ghost files in your staging area! ๐ฏ
#Git #DevTips #CodingTips
๐งช Jest Testing Tip:
Run single test file:
๐ "npm test -- yourFileName.spec.ts"
OR directly with Jest:
๐ "jest -- yourFileName.spec.ts"
Pro tip: Arrow โฌ๏ธ key is your friend for finding recent commands!
No config changes needed ๐
#JavaScript #Testing
๐ง NVM #DevTip: VS Code terminal showing a different Node version than your system terminal?
Add this to your .zshrc:
๐ "nvm use default"
๐ฏ Boom! Now both terminals stay in sync with your default Node version. No more version mismatches!




