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...DiscussTypeScript
Stephane BersierforConversations with AIaiconversations.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 ...DiscussConversationsWithChatGPT
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...Discuss·1 like·40 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...Saeed Ramezani and 3 others are discussing this4 people are discussing thisDiscuss·31 likes·866 readsPython GenericsGreat article on generic typing, presented in a simple and user-friendly format. Thank you, Sadra, for preparing this! 11
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...DiscussScala
Rishi BakshiforRishi Bakshi Blogrishibakshi.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...Discuss·10 likesYou Don't Know Next.jsNext.js
Ganesh Rama HegdeforDesign Patterns in Software Blogdesignpatterns.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...Discuss·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...DiscussGraphQL
Carmine Tambasciablog.allaroundjavascript.com·Aug 25, 2024Difference between extending and intersecting interfaces in TypeScript?Have you ever found yourself thinking in a complex project asking this question, then in this article I will try to answer with examples Let's say the following type is defined: interface Shape { color: string; } Now, maybe we need a way to abstra...Discuss·45 readsTypeScript
Shiwanshu Shubhamshiwanshudev.hashnode.dev·Aug 22, 2024Typescript Basics: Grasp the Essentials in 10 MinutesTypeScript is a superset of JavaScript that adds type safety and extra features to help with development. If you have used languages like C, C++, or Java, you know that when declaring variables, we add their types, like int num1 = 5. Similarly, TypeS...DiscussTypeScript