TypeScript

821 readers
1 users here now

founded 1 year ago
MODERATORS
1
 
 

A trick that I'd like sharing :)

2
8
Announcing TypeScript 5.6 (devblogs.microsoft.com)
submitted 1 month ago by [email protected] to c/typescript
3
8
Announcing TypeScript 5.6 RC (devblogs.microsoft.com)
submitted 2 months ago by [email protected] to c/typescript
4
 
 

cross-posted from: https://programming.dev/post/18004176

I think object algebras have huge potential to improve the way complex software is written but I've never seen them used in practice. I think one reason why is that the research paper which introduced them is pretty hard to read. This post is my attempt to change that.

I've been working on this post off and on for like two years so I'm really excited to share it with people. It is very long. There's a lot of ground to cover.

5
 
 

The issue? I'm the idiot. Any suggestions for a guide to JS/TS for someone trying to learn about front-end development.

6
13
Announcing TypeScript 5.6 Beta (devblogs.microsoft.com)
submitted 3 months ago by mac to c/typescript
7
8
9
11
Announcing TypeScript 5.5 (devblogs.microsoft.com)
submitted 4 months ago by [email protected] to c/typescript
10
7
submitted 5 months ago by lysdexic to c/typescript
11
 
 

Today I'm sharing a little trick that I like to use to make switch statements cleaner and more type-safe. Happy to hear other ideas!

12
 
 

DBOS Cloud, a transactional serverless computing platform, made possible by a revolutionary new operating system, DBOS, that implements OS services on top of a distributed database. We’ve used this new architecture to build a novel TypeScript transactional programming environment that enhances applications with automatic statefulness, transactionality, observability, and cyber-resilience. This makes fault-tolerant cloud-native application development much simpler and faster.

13
31
Announcing TypeScript 5.4 (devblogs.microsoft.com)
submitted 8 months ago by mac to c/typescript
14
10
Announcing TypeScript 5.4 RC (devblogs.microsoft.com)
submitted 8 months ago by mac to c/typescript
15
15
Announcing TypeScript 5.4 Beta (devblogs.microsoft.com)
submitted 8 months ago by mac to c/typescript
16
17
8
Remeda (github.com)
submitted 9 months ago by lorefnon to c/typescript
 
 

Modern utility toolbelt - rapidly evolving, type safe and esm friendly out of the box. No mutations.

18
8
typia (typia.io)
submitted 9 months ago by lorefnon to c/typescript
 
 

Typia is a transformer library supporting:

  • Super-fast Runtime Validators
  • Enhanced JSON functions
  • Protocol Buffer encoder and decoder
  • Random data generator
19
20
 
 

When developing APIs or writing integration solutions, we often fetch data from multiple sources and combine them together. This requires quite a bit of boilerplate even if you use utility libraries like lodash.

This library aims to be provide a simple type-safe utility that makes the task of combining multiple collections simpler using an intuitive association API.

You may find this API to be reminiscent of association APIs found in ORMs. However, collection-joiner is completely agnostic about how these collections are obtained - so you could for example, fetch a list of users from a database, a list of departments from another service, a list of roles from a key value store and merge them into a single hierarchy when constructing a response.

21
-5
OO awkward (self.typescript)
submitted 10 months ago by thepiggz to c/typescript
 
 

addEventListener accept function references rather than objects with expected methods like handleEvent

setTimeout and setInterval array map, filter, reduce, forEach, etc. promise then, catch, finally

bind awkward

closures

what say v8? hidden classes

fully init objects give me more perf tips

22
 
 
23
24
11
submitted 11 months ago by lysdexic to c/typescript
25
7
submitted 11 months ago by mac to c/typescript
view more: next ›