Tag: TypeScript

Creating a Nostr Client in Typescript

In my free time I create generative art in p5js, my current workflow (and a lot of p5js artists) is Write some code to create a piece Export the canvas as a jpg Upload the image to Instagram In theory, this works quite well as it’s easy to reach an audience, although it&rsqu...

Hands-On Implementation of the Raft Algorithm With TypeScript

The Raft Algorithm is a distributed consensus algorithm designed to be easy to understand and implement. It is commonly used in distributed systems, such as distributed databases and file systems, to ensure data consistency and availability. Some real-life applications of the Raft Algorithm inclu...

TypeScript: Adding Type Safety to JavaScript

JavaScript is one of the most widely used programming languages for web development, known for its flexibility and versatility. However, it has a notable downside: the lack of static typing, which can lead to runtime errors and make large codebases hard to maintain. TypeScript, a superset of JavaScr...

What???s New in TypeScript 5.2?

The TypeScript 5.2 version is planned to be released on the 22th of August . You can learn more details about the release plan here. In this article, I will highlight the most relevant new features. Here is the summary: The new using keyword Decorator Metadata N...

Practical DDD in TypeScript: Repository

There are not many segments of software development that scare me, except integrations with other systems. Writing code for some business logic today looks easy with Domain-Driven Design. However, writing code on the Infrastructure Layer to integrate some external system like 3rd party API, cachi...

6 Advanced TypeScript tricks for Clean Code

Six advanced TypeScript tips will be covered here, along with examples showing how each one works step by step and their benefits. By using these tips in your own TypeScript code, you not only raise the general standard of your writing but also grow your skills as a TypeScript programmer. ...