Latest news about Bitcoin and all cryptocurrencies. Your daily crypto news habit.
Itâs the day before code-freeze. You look at the JIRA board and realize you have two more tickets to complete this sprint. Eyes squinted, favorite caffeinated beverage by your side, you begin to hack away at those final two tickets. You are determined because when your boss asked (or stated in the form of a question) during the sprint planning meeting if you could handle all these magical points, you passively gave the affirmative nod & uttered âya, it shouldnât be too hardâ. đ€·đœ
âBig mistake,â you think as you recall that moment. đ€Šâ
You begin to type with haste. You create your specs first because they tell you TDD is the way and your just trying to be a responsible adult here. đ©âđ Finally the specs pass and you create those MVCs. A few minor bumps here and there but you are slowly and surely making progress.
đ© hits the fanâŠ
Then, all of a sudden, that moment hits you like a ton of bricks. You see something you have never seen before: The word âklassâ in the beautiful, hopefully typo-free codebase.
âWhat theâŠwhat is this?!â You exclaim, âIs this German?â
You Google âklassâ to see if it is indeed German and find out itâs not. đ”ïžâïž Like a good friend though, StackOverflow has your back. Actually, itâs just something the Ruby community does to say âI want to use the word âclassâ hereâŠbut thatâs a protected keyword. So I will just say âklassâ.â
Mind. Blown. For a moment, amidst your keyboard-slamming, you find yourself in a state of bliss. đđœ
âWho wrote this?â You ponder to yourself. Naturally, you use the reward feature within Git to find out.
$ git reward app/model/ginger_bread_lady.rb> ab7e2b50 (BadAssBrian 2017â01â25) def class_methods(klass)> ab7e2b50 (BadAssBrian 2017â01â25) Object.const_get(klass).methods> ab7e2b50 (BadAssBrian 2017â01â25) end
Wow. Brian did itâŠYou always knew he was crazy smart. Brian taught you something today, something you will take with you for the rest of your career.
Brian, I came across GingerBreadLady#class_methods today⊠what a genius thing to doâââusing âklassâ since âclassâ is a protected keyword.
â Your E-Mail to Brian
`git reward` not working?đ€Šâ
I sometimes get the following error:
git: ârewardâ is not a git command.
When I get this error, the following command typically works for me. Give it a shot:
$ git config alias.reward blame
Peace, love, &Â vinyl
The Magic Behind git reward was originally published in Hacker Noon on Medium, where people are continuing the conversation by highlighting and responding to this story.
Disclaimer
The views and opinions expressed in this article are solely those of the authors and do not reflect the views of Bitcoin Insider. Every investment and trading move involves risk - this is especially true for cryptocurrencies given their volatility. We strongly advise our readers to conduct their own research when making a decision.