Jit Mitraeclair.hashnode.dev·Jun 7, 2024Types v/s Interfaces in TypeScript - A DilemmaWhen venturing into TypeScript, many encounter the dilemma of whether to employ Types or Interfaces, as both appear to fulfill the same function: predefining data or object types for future use. The TypeScript official documentation recommends priori...Discuss·39 readsTypeScript
IgniteDevignitedev.hashnode.dev·Apr 14, 2024Implementing type-checking for your environment variables.This article explores how to secure your environment variables with type safety using T3 Env, ensuring robust and error-free configuration. Let's check out an example: "use client" import { ReactNode } from "react" import { ConvexReactClient } from ...DiscussTypeScript
Toni Väisänentonitalksdev.com·Oct 1, 2023Data Validation in ClojureMalli is a data-driven schema Clojure library for defining types and validating data. It can be used for example to: type check data when received from untrusted sources i.e. validate that HTTP request bodies before writing to the database define d...Discuss·458 readsClojure
Potato ScriptforCoding Talkiescodingtalkies.hashnode.dev·Sep 25, 2023Understanding Type Annotations in JavaScript with JSDocHi and welcome! 👋 In this article, we'll explore the world of type annotations in JavaScript using JSDoc, and how they can improve your code's readability and maintainability. As you know JavaScript is a dynamic programming language, but it's not in...Discuss·35 readsJavaScript
Wagner Mwagnerm.hashnode.dev·Aug 22, 2023The Magic of Discriminated Union Types in TypeScriptThis is a handy Typescript trick! In simple terms, I like to describe this feature as conditional types. This feature allows you to do things like the below ApiResponse type, let the code talk for himself // You can assert the property will have a sp...Discuss·42 readsTypeScript
Lucy Linderblog.derlin.ch·Jul 10, 2023When plans go astray: my unsuccessful journey of migrating a large Django project to MypyTL;DR - Mypy is amazing, but your code needs to be ready for it. The untyped nature of Python allows magic to happen and shortcuts to be made (at the cost of more runtime errors). Adding a type checker such as Mypy to a codebase developed under this ...Pierre and 1 other are discussing this2 people are discussing thisDiscuss·2 likes·1.7K readsPython
Abiola Fasanyaharbiola.hashnode.dev·Apr 20, 2023Exploring Advanced Type Features in TypeScriptTypeScript is a superset of JavaScript that provides optional static type checking and type annotations. One of the main benefits of using TypeScript is that it allows you to catch errors early during development before they make it to production. In...Discuss·133 readstype checking
Henry Eleonuhenryeleonu.com·Apr 17, 2023How To Encourage Best Practices in Python Programming By Complying With PEP8 Style GuideAs part of this blog post, I have added a YouTube demo on how to enable PEP8 compliance in Visual Studio Code. Enabling PEP8 Compatibility of Python Code in Visual Studio Code - YouTube https://www.youtube.com/watch?v=ZkwHwQ6l4wI Some of the best p...Discuss·1 like·3.1K readsphp8
Smart Shocksmartshock.hashnode.dev·Apr 5, 2023Understanding PropTypes and Default Props in React | Simple ExampleIn React, PropTypes and Default Props are used to define the expected data types of component props and set default values for those props. This helps ensure that the correct data is passed into a component and helps avoid errors and bugs. In this ar...Discuss·1 like·40 reads25 React Exercises for Practical Learningtype checking
Wisdom Geekwisdomgeek.hashnode.dev·Mar 23, 2021Parsing and validating data in Python using PydanticIntroduction of type hinting opened the gates for a lot of great new features in Python. And data validation and parsing became easier to do with the use of type hints. Pydantic is one such package that enforces type hints at runtime. It throws error...Discuss·29 readsPython