Better HN
topnewbestaskshowjobs
Log inSign up

nicusor

40 karma · joined May 25, 2018 (8y ago) · 6 submissions

Submissions

comment 6y ago · link · parent

vscode has that, basically connects to a background neovim instance. I use the same vimrc (with minor tweaks for easymotion) for both neovim in cli and in vscode. Although at work I'm still using webstorm with the vim emulator

comment 6y ago · link · parent

We've been using this approach in Typescript. It's more palatable than Haskell since you can express an array that has at least one element as a variadic tuple `[T, ... T]`. Having the possibility to encode invariants in types is very useful, although it gets harder at times since TS chokes when you push it to its limits. Note that this happens in an old Meteor codebase that was completely JS a year and a half ago.

3.

Strong Typed Wrapper for Redux(nicusor.dev ↗)

1 points · by nicusor · 6y ago · discuss

4.

Strongly Typed Meteor Methods Using Conditional Types(medium.com ↗)

1 points · by nicusor · 7y ago · discuss

comment 8y ago · link · parent

Never though about it that way, it really seems that Factorio is a very good representation of actual software development without actually containing coding (except for the logic you can do through the cables if I remember).

comment 8y ago · link · parent

Another useful trick I've been using for some time is

console.log({ a, b })

where a and b are some variables. This will print the name of the variable next to its value. So it can be thought as a faster version of

console.log('a: ' + a)