-
How to Listen on Custom Ports in ASP.NET Core
ASP.NET Core IIS Backend TCP Hosted ServicesWhen you host an ASP.NET Core application with IIS, you're not replacing Kestrel. Instead, you're putting IIS in front of it in a setup called a reverse proxy. This means that you can't listen on custom ports like you can with Kestrel. This post shows you how to listen on custom ports in ASP.NET Core.
4 min read -
How To Keep Track Of Responses In NestJS
NestJS Backend Middleware Logging TypeScriptIn backend development, effective logging is essential for maintaining a healthy and efficient system. It provides insights into the behavior of your application, aiding in debugging, troubleshooting, and performance optimization. NestJS offers a way to implement custom middleware, including logging mechanisms.
4 min read -
Simplifying Async Error Handling in TypeScript
TypeScript Error Handling Async/Await Best Practices UtilitiesIf you've worked with asynchronous code in TypeScript for any length of time, you'll know that error handling can get messy fast. Between nested try-catch blocks and repetitive error-handling logic, it doesn't take long before your codebase starts feeling cluttered. That's why I've found myself leaning toward a more elegant solution — the `tryCatch` helper function. This little utility is inspired by Go's error-handling approach and wraps your async functions in a way that simplifies error management, making your code more readable and maintainable.
4 min read -
Merging Videos with FFmpeg in a React Application
React FFmpeg Video Processing WebAssembly FrontendIn this blog post, we will explore a fascinating use case of FFmpeg in a React application. We will be merging video clips fetched from an API, adjusting their frame rates, and ensuring they all have the same resolution.
3 min read -
Best Practices for Using React Context
React Context API Best Practices State Management FrontendReact Context is a powerful feature that allows components to share state without prop drilling. It's particularly useful for managing global state, theme preferences, user authentication, and more. However, like any tool, it's important to use React Context effectively to ensure maintainable and organized code. In this post, we'll delve into best practices for using React Context, and why exporting your `useContext` logic to a custom hook is a wise decision.
4 min read