4 ms·
What a strange world we live in that that a terminal app would be written in Node.js.
by amluto 10y ago
What a strange world we live in that that a terminal app would be written in Node.js.
- cadillackness 10y agoI'd rather have people write Free software in JS than not write any at all.
- zem 10y agoisn't that what it's there for? node lets you use javascript just like any other scripting language; you wouldn't have blinked at this being done in perl or ruby
- sjurba 10y agoYupp. I agree. And writing something cross platform for the terminal kinda sux. I have given some thought to porting it to something else, but am not sure what that would be. Any suggestions? Requirements: a nice language to work with, cross platform, easy to install the executable(s)
- anonfunction 10y agoYou should give Golang a shot. It checks all your requirements.
- sjurba 10y agoYes, I have looked at that, and it is tempting. But you still have to worry about cross compiling and distribution. Right?
- anonfunction 10y agoCross compiling is very easy since Go 1.5, just add some environment variables before running `go build`, which can be put in a Makefile. Distribution is a little trickier since there is no package manager ala npm, however it's a little easier in that you don't need anything except for the binary. For people who have Go installed they just `go get REPO` and it's installed, for others they can just wget the binary into their bin.