Backend renamed profile to userProfile last Tuesday. TypeScript didn't warn you because of `any`. User clicked Settings. White screen. Slack exploded. This is the cost of `any`. Silent failures. Runtime surprises. Bugs TypeScript was designed to catch. Read my blog below in the comment 👇🏽 #TypeScript #JavaScript #WebDev #SoftwareEngineering #DeveloperLife
Ros Sopheak • Adam - The Developer’s Post
More Relevant Posts
-
⚡ JavaScript & TypeScript Daily Refresher #74 👉 What are the most important components of classes in JavaScript and TypeScript? 💡 Classes mainly include properties, constructors, and methods. In TypeScript, you can also define access modifiers like public, private, and protected for better structure and encapsulation. ✨ I post daily JS/TS refreshers — follow for the next one! #JavaScript #TypeScript #OOP #WebDevelopment
To view or add a comment, sign in
-
⚡ JavaScript & TypeScript Daily Refresher #82 👉 When do you use generics in TypeScript? 💡 I use them when I don’t know the exact type of input or output in advance — generics let me define flexible, type-safe functions that adapt to whatever types are passed in. ✨ I post daily JS/TS refreshers — follow for the next one! #JavaScript #TypeScript #Generics #WebDevelopment
To view or add a comment, sign in
-
⚡ JavaScript & TypeScript Daily Refresher #89 👉 What are function overloads in TypeScript? 💡 Function overloads let you define multiple call signatures for one function, so TypeScript can offer better type safety and autocomplete based on how the function is called. ✨ I post daily JS/TS refreshers — follow for the next one! #JavaScript #TypeScript #FunctionOverloads #WebDevelopment
To view or add a comment, sign in
-
Ever struggled with TypeScript's type assertions losing literal types? 🤔 The `satisfies` operator is your 2025 solution for maintaining both type safety and specific literal values! When you use `as` assertions, TypeScript widens your literal types to their base types. The `satisfies` operator ensures your object matches a type while preserving the exact literal values you provide - giving you the best of both worlds. → Preserves literal types ("hello" vs string) → Maintains type safety → No more unexpected type widening → Perfect for configuration objects Have you adopted `satisfies` in your TypeScript workflow yet? What's been your experience? 🔥 #TypeScript #ProgrammingTips #WebDevelopment #TypeSafety #JavaScript
To view or add a comment, sign in
-
-
⚡ JavaScript & TypeScript Daily Refresher #84 👉 What are type guards in TypeScript? 💡 Type guards are runtime checks that let TypeScript know more about a variable’s type within a block — for example: if (typeof value === "string") { /* value is a string here */ } ✨ I post daily JS/TS refreshers — follow for the next one! #JavaScript #TypeScript #TypeGuards #WebDevelopment
To view or add a comment, sign in
-
JavaScript vs TypeScript: When “it works” meets “it actually works.” 😅 We all love JavaScript — until that one undefined variable ruins everything. Then we meet TypeScript — and it saves us before we even hit run. 🧠 💡 Sometimes, a little type safety saves hours of debugging. JS lets you hope it runs. TS makes sure it will. #JavaScript #TypeScript #WebDevelopment #CodingHumor #SoftwareEngineering
To view or add a comment, sign in
-
-
Today I learned about the different types of components in React and how each one serves a unique purpose. ⚛️ To explore this concept, I built a small project that demonstrates: ✨ Stateful Components – manage their own data using useState() ✨ Stateless Components – depend only on props ✨ Higher-Order Components (HOC) – wrap other components to add extra logic ✨ Pure Components – re-render only when props actually change Working on this helped me understand how React manages re-rendering and component composition more clearly. 💻 You can check out the complete code here 👇 🔗 https://lnkd.in/dhV3mMUe #ReactJS #JavaScript #FrontendDevelopment #MERN #WebDevelopment #LearningByBuilding
To view or add a comment, sign in
-
⚡ JavaScript & TypeScript Daily Refresher #63 👉 What are some bad practices in TypeScript? 💡 ❌ Adding type annotations everywhere — it reduces readability when inference already works. ❌ Overusing any — it defeats the purpose of TypeScript’s type safety. ✨ I post daily JS/TS refreshers — follow for the next one! #JavaScript #TypeScript #CleanCode #BestPractices
To view or add a comment, sign in
-
⚡ JavaScript & TypeScript Daily Refresher #83 👉 How do you check if TypeA is assignable to TypeB in TypeScript? 💡 Use a conditional type — for example: type Check = TypeA extends TypeB ? TypeC : TypeD This checks assignability at the type level and picks the result accordingly. ✨ I post daily JS/TS refreshers — follow for the next one! #JavaScript #TypeScript #AdvancedTypes #WebDevelopment
To view or add a comment, sign in
Explore content categories
- Career
- Productivity
- Finance
- Soft Skills & Emotional Intelligence
- Project Management
- Education
- Technology
- Leadership
- Ecommerce
- User Experience
- Recruitment & HR
- Customer Experience
- Real Estate
- Marketing
- Sales
- Retail & Merchandising
- Science
- Supply Chain Management
- Future Of Work
- Consulting
- Writing
- Economics
- Artificial Intelligence
- Employee Experience
- Workplace Trends
- Fundraising
- Networking
- Corporate Social Responsibility
- Negotiation
- Communication
- Engineering
- Hospitality & Tourism
- Business Strategy
- Change Management
- Organizational Culture
- Design
- Innovation
- Event Planning
- Training & Development
Blog link: https://dev.to/adamthedeveloper/i-spent-2-days-migrating-to-typescript-so-i-could-write-javascript-anyway-bgc