Pier Fumagalli ๐Ÿฆ‹ @pier.fumagalli.org

1.6K posts

Pier Fumagalli ๐Ÿฆ‹ @pier.fumagalli.org banner
Pier Fumagalli ๐Ÿฆ‹ @pier.fumagalli.org

Pier Fumagalli ๐Ÿฆ‹ @pier.fumagalli.org

@ianosh

๊ฐ€์ž…์ผ Haziran 2009
362 ํŒ”๋กœ์ž‰170 ํŒ”๋กœ์›Œ
Matt Pocock
Matt Pocock@mattpocockukยท
Got an odd requirement. Need to stream a file line-by-line, in reverse order, in Node. I.e. a b c Should emit 'c', then 'b', then 'a'. How should I do this?
English
32
1
73
43.5K
Matt Pocock
Matt Pocock@mattpocockukยท
I know everyone hates them, but I really like code coverage reports. Especially when working solo (where I don't feel bad about forcing others to work to it) I find it a really helpful linter for missed tests. I also don't try to 100% everything, just certain important files.
English
23
5
118
16.4K
Pier Fumagalli ๐Ÿฆ‹ @pier.fumagalli.org
@Grady_Booch @benjedwards Hey GPT, rewrite the following (series of insults to some random idiot) and make it sound firm, but polite and professionalโ€ฆ You donโ€™t know how many times it avoided me getting in trouble with HR ๐Ÿคฃ๐Ÿ˜‚ Apart from this, utterly useless!
English
0
0
0
23
Pier Fumagalli ๐Ÿฆ‹ @pier.fumagalli.org
@mattpocockuk @sminnee Sometimes, the interpreter *itself* strips types (deno, or the next version of node - now experimental) so thereโ€™s NO .js file at allโ€ฆ requiring imports of an artifact that is possibly produced by TSC is just nonsensical to meโ€ฆ
English
0
0
0
15
Pier Fumagalli ๐Ÿฆ‹ @pier.fumagalli.org
@mattpocockuk @sminnee Actually it isโ€ฆ the generated extension is a product of the transpilation process: same .ts can be transpiled as .cjs, .mts or .js - depending on whatโ€™s actually transpiling and how the transpiler is configured (think esbuild, for example)
English
1
0
0
16
bearstech
bearstech@bearstechยท
Qui a jouรฉ avec Turbo Pascal ?
bearstech tweet media
Franรงais
111
32
403
25.2K
Pier Fumagalli ๐Ÿฆ‹ @pier.fumagalli.org
@mattpocockuk @JoshuaKGoldberg We've been using this on all our internal repos for around a couple of years, super happy with it (we have for example integrations to deploy on AWS lambda, Cloudflare workers, all our workflow) and recently I've been thinking it might be a good idea to share
English
1
0
1
56
Matt Pocock
Matt Pocock@mattpocockukยท
A lot more of you need to be using create-typescript-app from @JoshuaKGoldberg. npx create-typescript-app Perfect for npm packages, Node apps - it's ultra-configurable and extremely detailed.
Matt Pocock tweet media
English
11
45
653
49.4K