Hassanigocoding.hashnode.dev·Dec 5, 2024Everyday Types in TypeScript: Making Typing Less Typing 😅Simplifying TypeScript Types: Less Typing, More Coding 🚀 If you’ve ever written JavaScript and thought, "Wouldn’t it be nice if this thing caught errors before I hit refresh and the whole browser cried?" Well, congratulations—you’re about to fall in...1 likeTypeScript
Lim Woojaejaylog.hashnode.dev·Dec 1, 2024[CS Fundamentals] Mutable vs. ImmutableIntroduction This article introduces concepts of mutability and immutability in computer science. It’s very important to understand it because it’s going to help you to solve errors in the future. Especially, beginners often face situations such that...CS fundamentalsimmutable
Pratik Vermaneedjs.hashnode.dev·Nov 13, 2024We need Typescript - 1Why we want TS We need typescript to prevent our code from runtime errors which are (unexpected outputs). It uses compilation errors to do this job. It wants types in advance for each variables in our code ( it may be objects ). so if we face early t...TypeScript
Stephane Bersieraiconversations.hashnode.dev·Nov 8, 2024Untagged Algebraic Data Types, with ChatGPTThe following is an edited version of an article written by ChatGPT, after some back-and-forth. This summary explores untagged algebraic data types (ADTs), focusing on their similarities and differences with traditional tagged ADTs. We examine union ...ConversationsWithChatGPT
Mihai Olteanblog.mihaioltean.com·Nov 8, 2024Typescript stories - Generics vs Union typesThis will be a quick and more “back-to-basics” kind of article. While doing some small refactoring, I stumbled across a situation where I had to pass an object, but the shape of the object is completely different depending on the component using that...1 like·53 readsTypeScript
Sadra Yahyapourblog.imsadra.me·Nov 3, 2024FeaturedGeneric Typing in PythonSince Python introduced the ability to add generic types to functions, the language has become much more type-friendly and encourages you to follow this convention for more maintainable code. Obviously, this will lead to a better development experien...31 likes·938 readsPython Generics
Stephane Bersierbersier.hashnode.dev·Oct 21, 2024Proposed type reduction rule for Scala 3Below is a copy of a draft outlining the proposal of an additional rule for match type reduction in Scala 3. It was shared (as a Mathcha link) on Scala Contributors, as a follow-up to this discussion. In this draft is presented an additional subtypin...Scala
Rishi Bakshirishibakshi.hashnode.dev·Oct 9, 2024Dynamic Routes in Next.js: Understanding the Significance of params and searchParamsOne common mistake developers make in Next.js is misunderstanding how dynamic routes work, particularly regarding the params and searchParams props. It’s crucial to understand that these props are only accessible in the page components and not in any...10 likesYou Don't Know Next.jsNext.js
Ganesh Rama Hegdedesignpatterns.hashnode.dev·Sep 1, 2024Creational Design PatternsCreational design patterns are a category of design patterns in software development that focus on how objects are created. Their primary goal is to abstract the instantiation process, making it more flexible and reusable. By controlling the creation...1 likeTypes
Siddharthblog.siddharth9890.com·Sep 1, 2024Effortless Type-Safe GraphQL SDK Generation with GraphQL SDK GeneratorHello everyone Today, we will discuss one of the most challenging tasks in working with a GraphQL server i.e creating an SDK. The pain often lies in writing .gql files and building corresponding TypeScript types to match the schema. Whenever the sche...GraphQL