๐ 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โฆ#AWS#CDK#TypeScript#CloudComputing
๐จ 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 โ
udemy.com/course/masteriโฆ
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
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! โก