When exploring a new Ruby codebase, I have a pattern of using caller to understand the callstack and build out a visual representation - E.G:
.
└── ApplicationController/
└── UsersController#create/
└── UsersService.create/
| #!/usr/bin/env ruby | |
| # frozen_string_literal: true | |
| require 'benchmark' | |
| require 'active_support/core_ext/object/try' | |
| n = 5000000 | |
| puts "Key not found:" | |
| sad_hash = {} |
I hereby claim:
To claim this, I am signing this object:
| (function() { | |
| var namePieces, | |
| firstName, | |
| greeting, | |
| message_body, | |
| salutation = 'Best,', | |
| myName = 'Bill', | |
| fullMessage; | |
| function getRecruiterName() { |
| <select> | |
| <option val="1">Option 1</option> | |
| <option val="2">Option 2</option> | |
| <option val="3">Option 3</option> | |
| <option val="4">Option 4</option> | |
| <option val="5">Option 5</option> | |
| <option val="6">Option 6</option> | |
| <option val="7">Option 7</option> | |
| <option val="8">Option 8</option> | |
| <option val="9">Option 9</option> |
| // Unable to get around Github's content security policy, so made this a bookmark instead. | |
| // javascript:function GithubUserscript(){var s=$(".toc-diff-stats","#toc");s.append('<a href="#" class="minibutton right us-hide-file-diffs" style="margin-right: 10px;">Collapse File Diffs</a>'),s.append('<a href="#" class="minibutton right us-show-file-diffs" style="margin-right: 10px;">Show File Diffs</a>');var e=$(".us-hide-file-diffs"),i=$(".us-show-file-diffs"),t=$(".file.js-details-container");$("#toc").on("click",".us-hide-file-diffs",function(s){s.preventDefault(),$(this).hide(),i.show(),t.find(".data").addClass("suppressed"),t.find(".render-wrapper").addClass("suppressed data")}),$("#toc").on("click",".us-show-file-diffs",function(s){s.preventDefault(),$(this).hide(),e.show(),$(".file.js-details-container").find(".data").removeClass("suppressed"),$(".file.js-details-container").find(".render-wrapper").removeClass("suppressed data")}),$("#files").on("click",".us-toggle-file-diff",function(){var s=$(this).closes |
##New To Github Here are some resources if you are new to Github: