Effect Without Effect-TS: Algebraic Thinking in Plain TypeScript In recent years, the JavaScript ecosystem has seen a surge of frameworks and libraries designed to simplify error handling and improve type safety. However, many developers continue to struggle with complex try/catch blocks nested within their functions, especially when working w Sharing a bit more context in the post. https://lnkd.in/gP2wVREB
Solution Mindz’s Post
More Relevant Posts
-
Effect Without Effect-TS: Algebraic Thinking in Plain TypeScript In recent years, the JavaScript ecosystem has seen a surge of frameworks and libraries designed to simplify error handling and improve type safety. However, many developers continue to struggle with complex try/catch blocks nested within their functions, especially when working w Sharing a bit more context in the post. https://lnkd.in/gP2wVREB
To view or add a comment, sign in
-
TypeScript 6.0 is out and doubling down on being JavaScript with syntax for types. The release adds built-in Temporal types, better generic inference, and prepares for Go compiler rewrite. Read more: https://lnkd.in/eY6PU-WW #devnews #typescript
To view or add a comment, sign in
-
-
TypeScript 6.0 shipped March 23, 2026. It's the last version of the TypeScript compiler written in TypeScript. Everything after it — TypeScript 7.0 — is rebuilt in Go. 🐳 The numbers: → VS Code (1.5M lines): 77 seconds → 7.5 seconds → Sentry codebase: 133 seconds → 16 seconds → Memory usage: cut in half That's not a small improvement. That's a different category of tool. But first — TypeScript 6.0 is the bridge release you need to get through. Here's what changed: 🔧 9 new defaults: strict ON, ESM as default, bundler module resolution, all files treated as modules ❌ Breaking changes: ES5 target removed, AMD/UMD deprecated, --outFile gone, @types no longer auto-discovered ✅ New features: - Temporal API types (proper date handling, finally) - RegExp.escape() and Promise.try() types - Map.getOrInsert() typed correctly - #/ subpath imports - Improved method type inference 💡 The Go compiler (tsgo) is already available: npm install @typescript/tsgo tsgo --project tsconfig.json Try it. The compile time difference is immediate and shocking. I wrote the full guide for what changed, what broke, how to upgrade, and what TypeScript 7.0 actually means for your CI/CD and monorepo workflows. Is your team already planning the 6.0 upgrade? 👇 #TypeScript #JavaScript #WebDev #Frontend #NodeJS #100DaysOfBlogging
To view or add a comment, sign in
-
Read the full article here: https://lnkd.in/gvU8m_HK Callbacks in JavaScript are one of the core ideas behind asynchronous programming and function-based design in JS. They help us understand how functions can be passed as values, executed later, and used to handle async tasks like API calls, events, and timers. However, when overused, they can lead to nested structures (callback hell), which makes code harder to read and maintain.
To view or add a comment, sign in
-
-
The Ultimate JS Success Story Abandons JS The tool that made JavaScript enterprise-ready is abandoning JavaScript. Microsoft is rewriting the TypeScript compiler in Go. Why? Pure performance. Node.js hits a hard ceiling on heavy CPU-bound tasks like massive AST parsing. Go’s concurrency model shatters that ceiling. The architectural irony is incredible. We spent a decade proving JavaScript could run anywhere. Now we are finally admitting it shouldn't. I've watched this shift accelerate as Rust took over our build tools with SWC and Turbopack. Now it’s happening to the compiler itself. JavaScript won the UI. Systems languages won the infrastructure. Are you still forcing heavy backend workers through Node?
To view or add a comment, sign in
-
-
𝗧𝗮𝗸𝗲 𝗬𝗼𝘂𝗿 𝗧𝘆𝗽𝗲𝗦𝗰𝗿𝗶𝗽𝘁 𝗦𝗸𝗶𝗹𝗹𝘀 𝗧𝗼 𝗧𝗵𝗲 𝗡𝗲𝘅𝘁 𝗟𝗲𝘃𝗲𝗹 You know how TypeScript helps you catch typos and prevents errors. But many developers stop there. They treat TypeScript as just JavaScript with type annotations. The real power of TypeScript lies in its advanced type system. It helps you make invalid states unrepresentable. This means you can write code where the compiler catches logical errors before they become bugs. Let's explore some advanced types: - Union types allow a variable to be one of several types. - Discriminated unions create self-documenting, resilient code. - Template literal types generate new string literal types by combining others. - Utility types like Partial, Pick, and Omit help with type transformation. These types help you: - Create precise formats - Validate routes and function names at compile time - Build flexible, yet strict, abstractions - Update entities safely Newer operators like satisfies and as const help you infer and validate types with minimal annotation. Your challenge: Look at a key interface or state object in your project. Ask yourself: "Can this be in an inconsistent state?" If yes, refactor it using a discriminated union. Share your approach to using TypeScript's type system to prevent bugs in the comments below! Source: https://lnkd.in/gincVBvR
To view or add a comment, sign in
-
Recently I've learn something new about TypeScript. It's not trying to replace JS, It's trying to make it safe without taking aways its flexibility. 1. Implicit and Explicit - convenience and clarity Typescipt can infer types for you. eg: let age = 10 // inferred as number -> super convinient But i've learned that being explicit. eg: let age: number = 13 -> make intent cleaner - especially for other developer It's not just for the compiler. It's for humans reading the code. 2. The biggest insight: "shape over name" This changed how I think about types completely. In TypeScript: If something looks like a Comment, it can be used as a Comment. It doesn’t matter what it’s called. Before, we had to manually check this at runtime. Now TypeScript handles it before the code runs. Flexible… but still safe.
To view or add a comment, sign in
-
TypeScript 6.0 is here: The end of an era (and a massive speed boost) ⚡ If you’ve been using TypeScript, things are about to change—in a very fast way. The latest update (v6.0) isn't just a regular patch. It's the "final warning" before TypeScript completely rewrites its core. The team is moving away from its original JavaScript codebase to a brand-new compiler written in Go. Why does this matter? Because we’re talking about native speed and multi-threaded type checking. Here is the ELI5 (Explain Like I'm 5) on what’s changing: </> The "Go" Migration: TypeScript is graduating. By moving its compiler to Go, future versions will be significantly faster at checking your code. </> Smart Defaults: Strict mode is now ON by default. It's TypeScript’s way of saying "I’m not asking anymore—write safer code!" 🛑 </> Cleaning the Closet: They are removing a lot of "old" features (like ES5 support and certain module resolutions) to make the engine leaner and meaner. </> Faster Installs: A change in how types are handled in node_modules could speed up projects by 20–50%. The Takeaway: We are moving toward a world where "compilation time" might finally stop being a coffee-break excuse. TypeScript is getting serious about performance. Are you excited about the move to a Go-based compiler, or do you think the "breaking changes" will be a headache for large codebases? #TypeScript #WebDev #SoftwareEngineering #GoLang #ProgrammingNews #TechTrends
To view or add a comment, sign in
-
-
🚀 Day 980 of #1000DaysOfCode ✨ TypeScript Union Types Handling multiple possible data types in JavaScript can quickly get messy. In today’s post, I’ve explained TypeScript Union Types in a simple and practical way, so you can safely work with variables that can hold more than one type. Union types allow you to define multiple possible types for a variable — making your code more flexible while still being type-safe. I’ve also covered how to properly narrow types, so you can avoid errors and write predictable logic in real-world applications. This is one of the most commonly used features in TypeScript and is extremely useful when dealing with APIs or dynamic data. If you’re working with TypeScript, mastering union types will make your code much cleaner and safer. 👇 Do you use union types often, or do you still rely on `any` in some cases? #Day980 #learningoftheday #1000daysofcodingchallenge #FrontendDevelopment #WebDevelopment #JavaScript #TypeScript #CodingCommunity #Programming
To view or add a comment, sign in
-
Spent an hour debugging something that shouldn’t have been a problem 😅. I was building a file upload module in NestJS with Cloudinary, and kept getting: Namespace 'global.Express' has no exported member 'Multer' The weird part? '@types/multer' was installed, everything compiled fine… but tests kept failing. Turns out the issue was in my tsconfig.json: "types": ["jest"] I didn’t realize this at first, but "types" is a whitelist, not an addition. So by specifying only Jest, I accidentally excluded other global types — including Multer. Fix was simple: "types": ["jest", "node", "multer"] Just wanted to share this in case it saves someone else from going down the same rabbit hole. Lesson learned: if you're using "types" in TypeScript, you need to explicitly include everything your project depends on. TypeScript will humble you real quick 😂
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