Post 9uWLmXSWSWUm3Q9F7Q by zacanger@mastodon.social
(DIR) More posts by zacanger@mastodon.social
(DIR) Post #9uWLmXSWSWUm3Q9F7Q by zacanger@mastodon.social
2020-04-29T01:41:52Z
0 likes, 0 repeats
I just published this utility.. It's basically a fancier git branch -a, which shows which branch you're on, which branches are only on remotes, which branches are only local, and which branches are both. You can get it with `npm i -g git-all-branches` and run it as `git-all-branches` or `git all-branches`Scratching my own itch
(DIR) Post #9uWLmXnnBRVd7O6EGu by sir@cmpwn.com
2020-04-29T01:42:56Z
0 likes, 0 repeats
@zacanger have you considered sending this to git upstream rather than maintaining it as a third-party tool
(DIR) Post #9uWLwCfKchemSbkQkK by sir@cmpwn.com
2020-04-29T01:43:46Z
0 likes, 0 repeats
@zacanger I suppose if your first instict was to write this as a npm package, you are probably ascared of the big bad C (and/or the big bad Perl)
(DIR) Post #9uWM4w99PTxhpkrNpo by zacanger@mastodon.social
2020-04-29T01:46:14Z
0 likes, 0 repeats
@sir oh i am definitely scared of perl, i think it's a reasonable thing to be scared of.tbh i modeled this off of a subcommand in https://github.com/frostming/legit, `legit branches`, which was the only piece of that package i ever used. and all this functionality already exists in git, all i'm doing is diffing two arrays and adding some highlighting, so i don't know if it would be valuable if i rewrote it and submitted it upstream.
(DIR) Post #9uWMBLpkoovnEqqVrE by sir@cmpwn.com
2020-04-29T01:46:47Z
0 likes, 0 repeats
@zacanger I think git would be happy to have it. Until you've tried, how can you know? Defeatism
(DIR) Post #9uWMTuA3vcUAurByAi by sir@cmpwn.com
2020-04-29T01:47:12Z
0 likes, 1 repeats
@zacanger I wish more people thought "how can I make things better upstream?" before they think "I should write a tool to wrap this"
(DIR) Post #9uWMazYiG639gR6M2i by zacanger@mastodon.social
2020-04-29T01:48:26Z
0 likes, 0 repeats
@sir that's valid. i'll look into it and try rewriting in C and see how it goes. i don't know the git codebase at all but it could be a fun adventure
(DIR) Post #9uWMwGyAin8plM9oLg by zacanger@mastodon.social
2020-04-29T01:50:24Z
0 likes, 0 repeats
@sir my first instinct was actually to write it in posix shell, but dealing with strings as vectors in shell drives me nuts
(DIR) Post #9uWMwHAZyf4ANpxigi by sir@cmpwn.com
2020-04-29T01:50:42Z
0 likes, 0 repeats
@zacanger try perl man
(DIR) Post #9uWN5Xino5VCKCO9iq by zacanger@mastodon.social
2020-04-29T01:55:07Z
0 likes, 0 repeats
@sir i've spent the last 7 years avoiding learning perl... but you're right, i should give it a shot. i could be That Perl Guy at work, since we already have a Kernel Guy and a Kubernetes Guy
(DIR) Post #9uWrKCiXBDWe9LAcQy by tyil@soc.fglt.nl
2020-04-29T07:38:23.512026Z
0 likes, 0 repeats
@zacanger >oh i am definitely scared of perl, i think it's a reasonable thing to be scared of.What? Why?
(DIR) Post #9uXZzG3W4J9gMMN2w4 by zacanger@mastodon.social
2020-04-29T15:31:02Z
0 likes, 0 repeats
@tyil harder to read (to me) than similar python that does the same thing; an entirely different programming language with the same name and a different number (i know they renamed perl 6 now, though); a mishmash of paradigms that seems to be doing too much (reminds me of powershell in that way); generally it just seems a bit on the esoteric end, when i could reach for bash, python, node, or ruby for similar tasks.
(DIR) Post #9uXZzGLaz5cJGQpU7E by tyil@soc.fglt.nl
2020-04-29T15:58:49.037939Z
0 likes, 0 repeats
@zacanger Well, of course you're going to find it hard to read if you're actively trying to avoid learning anything about it because of a preconceived notion that it is scary.The naming debacle doesn't really affect whether Perl is scary or not, but as you also state, this problem has been resolved already.As for it "doing too much", every language has features I don't use every day. Just because it can do a lot, doesn't mean you need to use all these features all the time.I'm sure you've learned many things in the past 7 years, but it seems only Perl has gotten a treatment of active avoidance. I still don't see why it's a "reasonable thing to be scared of" in your argumentation, either. Don't be afraid to learn something new, just because it's outside of your comfort zone.
(DIR) Post #9uYFw4q9VVzImVHlr6 by velartrill@pleroma.site
2020-04-29T07:54:25.660944Z
1 likes, 0 repeats
@tyil @zacanger not exp log srand xor s qq qx xors x x length uc ord and print chrord for qw q join use sub tied qxxor eval xor print qq q q xor inteval lc q m cos and print chr ordfor qw y abs ne open tied hex expref y m xor scalar srand print qqq q xor int eval lc qq y sqrt cosand print chr ord for qw x printfeach return local x y or print qqs s and eval q s undef or oct xortime xor ref print chr int ord lcforeach qw y hex alarm chdir killexec return y s gt sin sort split