π 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!
https://t.co/6kSL5ZwCgm
#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
π― https://t.co/tT2Nw4tzWP
π 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 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 β
https://t.co/qkkIDH0HPD
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
π 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
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(https://t.co/onFaKBNq8d) // π₯ 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! β‘