TypeScript

798 readers
1 users here now

founded 1 year ago
MODERATORS
1
 
 

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.

2
 
 

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

3
4
5
6
11
Announcing TypeScript 5.5 (devblogs.microsoft.com)
submitted 2 months ago by [email protected] to c/[email protected]
7
8
 
 

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!

9
 
 

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.

10
31
Announcing TypeScript 5.4 (devblogs.microsoft.com)
submitted 5 months ago by [email protected] to c/[email protected]
11
12
13
14
8
Remeda (github.com)
submitted 6 months ago by [email protected] to c/[email protected]
 
 

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

15
 
 

Typia is a transformer library supporting:

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

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.

18
-4
OO awkward (programming.dev)
submitted 8 months ago by [email protected] to c/[email protected]
 
 

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

19
 
 
20
21
22
23
24
25
 
 

I have googled this and even got to the second page, and there does not seem to be any kind of consensus.

As far as I can tell, it's a bad idea because it creates code you don't see and accepts inputs that you wouldn't want. And yet, many people seem to like them more than, say, const unions due to being easier to refactor in bulk.

So what gives? Is this a case of IT people having very strong opinions on stuff that doesn't matter? Or is there a technical reason for or against it?

view more: next ›