HNHacker News
TopNewBestAskShowJobs

nicusor

40 karma · joined May 25, 2018

submissionscomments
nicusor··on Switching from Vim to Intellij
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
nicusor··on Lisp and Haskell (2015)
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.
nicusor··on Exapunks
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).
nicusor··on Console.table()
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)