git checkout -b <name-of-branch>
do some work
git commit -am "<some message about the new commit>"
do some more work
git commit -am "<some message about the new commit>"
git push origin # can tab complete the name of branch
| { | |
| “endpoint”: “return_premium_loan_adjustment/“, | |
| “request”: { | |
| “return_premium”: 10500, | |
| “first_due_date”: “2018-09-04T01:00:00.000Z”, | |
| “agency”: { | |
| “days_after_effective_to_pay”: 20, | |
| “fund_to_market”: true, | |
| “payments_received_before_paying_compensation”: 3, | |
| “days_before_compensation_is_payable”: 60 |
| const myData = {}; | |
| const id = '1862e2570ed941f89e1eb5ae152df2bd'; | |
| let url = `http://10.0.0.133:5000/status?cli=True&id=01671c4f4fe54be0bd544e2343d7fd83`; | |
| const params = `?cli=True&id=${id}` | |
| $( document ).ready(() => { | |
| myData.someCount = 0; | |
| $('#count').text(myData.someCount); | |
| require 'delegate' | |
| module Queries | |
| class SomeQuery < SimpleDelegator | |
| def initialize | |
| super query_hash | |
| end | |
| private |
| class Hash | |
| def deep_clone | |
| Marshal.load(Marshal.dump(self)) | |
| end | |
| def compact | |
| self.select { |_, value| !value.nil? } | |
| end |
| ╔═════════════════╗ ┌─────┐ ╔═══════════════════╗ | |
| ║ ║ │ YES │ ║ Make the intended ║ | |
| ───────▶║ Is it open? ╠──┴─────┴──────▶║ change. ║ | |
| ▲ ║ ║ ▲ ║ ║ | |
| │ ╚═════════╦═══════╝ │ ╚═══════════════════╝ | |
| │ │ │ | |
| │ ┌────┤ │ | |
| │ │ NO │ │ | |
| │ └────┤ │ | |
| │ │ │ |
Code smells, get really good at code smell (brown bag)
All you have to know is the codes smells
make a million new things > mutate objects
Forwardable (delegation)
Don't go on a virtical tangent, instead tiptoe away and finish the horizontal refactor
Things We need to do