🚀 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! ⚡