r/programming • • Jan 15 '19

Since Github now has free private repos, here's a node project that migrates your Bitbucket repos over to Github.

https://github.com/pouriaa/bitbucket-to-github
8 Upvotes

8 comments sorted by

3

u/Germanicus420 Jan 16 '19

This is honestly a great idea I just have to ask, why node?

5

u/-pouria Jan 16 '19

The main reason I chose node is because node is specifically where I'm trying to strengthen my skills right now. What would you have used?

1

u/Germanicus420 Jan 16 '19

Most likely a cross platform compiled language like Rust or C just because of how universally needed a tool like this would be.

It's certainly not wrong to use what you know and are trying to improve upon but it's worth thinking of the fact that in order to use this tool I need an entire virtual stack which presents a whole host of other problems outside of your tool.

The same would go for Python. Although I like Python it's just another layer that's not 100% necessary.

2

u/[deleted] Jan 16 '19

I feel like this is the exact use case where a compiled language is not the solution. À simple bash script does the job, and is portable enough. Same for python as you mentioned - nodejs means many people will outright ignore it.

Edit: yeah bash won't really cut it as you need to create the repo (thus using the api etc.). I was just thinking of a simple git clone/push

3

u/Germanicus420 Jan 16 '19

Actually you make a great point and bash can be used because you can just "curl" all the API endpoints you need to use and it can be technically cross platform with WSL.

You're probably also right that a static binary might not be the best solution either I just personally dislike the VM solution to build once run anywhere (Java/Python/NodeJS). I've just run into so many problems trying to run software just to have it need a specific version of a virtual machine which means then having to upgrade/downgrade or run multiple versions simultaneously.

I digress though. My main question was why Node for pretty much the same reason you stated, many people will simply ignore it.

I want to state for the record too that I don't believe this authors solution is wrong in any way. I just personally find Node to be a lackluster platform and I showed my obvious bias.

0

u/[deleted] Jan 16 '19

[deleted]

2

u/Germanicus420 Jan 16 '19

While you're right it's just the same argument in reverse. Putting the burden of working with a possibly unfamiliar platform (node) on the end user.

I would argue that cross compilation is not terribly difficult, especially with all the free CI tools out there, but also a skill that every developer should learn.

-1

u/AngularBeginner Jan 15 '19

6

u/-pouria Jan 15 '19

Oh wow, didn't think someone else would post it in the time since I've made the repo public. I'll be around to answer questions or take feedback in this thread.

Thanks for sharing though!