News for hackers. Stuff that matters.
Re:Show HN: Rebase-editor, a simple CLI app specifically for... by amluto on Tuesday March 28, 2017 @10:31PM (#13982842)
What a strange world we live in that that a terminal app would be written in Node.js.
Re:Show HN: Rebase-editor, a simple CLI app specifically for... by cadillackness on Wednesday March 29, 2017 @03:16AM (#13984084)
I'd rather have people write Free software in JS than not write any at all.
Re:Show HN: Rebase-editor, a simple CLI app specifically for... by zem on Wednesday March 29, 2017 @03:33AM (#13984148)
isn'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
Re:Show HN: Rebase-editor, a simple CLI app specifically for... by sjurba on Wednesday March 29, 2017 @04:38AM (#13984395)
Yupp. 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)
Re:Show HN: Rebase-editor, a simple CLI app specifically for... by anonfunction on Wednesday March 29, 2017 @04:32PM (#13990298)
You should give Golang a shot. It checks all your requirements.
Re:Show HN: Rebase-editor, a simple CLI app specifically for... by sjurba on Thursday March 30, 2017 @03:50AM (#13993647)
Yes, I have looked at that, and it is tempting. But you still have to worry about cross compiling and distribution. Right?
Re:Show HN: Rebase-editor, a simple CLI app specifically for... by anonfunction on Thursday March 30, 2017 @09:16PM (#14000489)
Cross 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.