Skip to content

Instantly share code, notes, and snippets.

@JayBazuzi
Last active August 11, 2022 16:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save JayBazuzi/d4428918cf4bbe0fce69826edabbef12 to your computer and use it in GitHub Desktop.
Save JayBazuzi/d4428918cf4bbe0fce69826edabbef12 to your computer and use it in GitHub Desktop.

Current:

r   extract method
R   extract method
R!! extract method
R** clean stuff up
B   oh no
B!! oh no
B** oh no
F   good stuff
F!! hell yeah
F** hell yeah

- instead of

r - extract method
R - extract method
R!! extract method
R** clean stuff up
B - oh no
B!! oh no
B** oh no
F - good stuff
F!! hell yeah
F** hell yeah

Repeated letters for lower-risk:

rrr extract method
RRR extract method
R!! extract method
R** clean stuff up
BBB oh no
B!! oh no
B** oh no
FFF good stuff
F!! hell yeah
F** hell yeah

.. instead of

r.. extract method
R.. extract method
R!! extract method
R** clean stuff up
B.. oh no
B!! oh no
B** oh no
F.. good stuff
F!! hell yeah
F** hell yeah

Move one punctuation before the letter.

.r. extract method
.R. extract method
!R! extract method
*R* clean stuff up
.B. oh no
!B! oh no
*B* oh no
.F. good stuff
!F! hell yeah
*F* hell yeah

Single-character punctuation for less fuck.

r  extract method
R  extract method
R! extract method
R* clean stuff up
B  oh no
B! oh no
B* oh no
F  good stuff
F! hell yeah
F* hell yeah

Single-character punctuation with .

r. extract method
R. extract method
R! extract method
R* clean stuff up
B. oh no
B! oh no
B* oh no
F. good stuff
F! hell yeah
F* hell yeah

Space around single-character

r . extract method
R . extract method
R ! extract method
R * clean stuff up
B . oh no
B ! oh no
B * oh no
F . good stuff
F ! hell yeah
F * hell yeah

One, two, three! I love to count!

r   extract method
R   extract method
RR  extract method
RRR clean stuff up
B   oh no
BB  oh no
BBB oh no
F   good stuff
FF  hell yeah
FFF hell yeah

Risk first

.r extract method
.R extract method
!R extract method
*R clean stuff up
.B oh no
!B oh no
*B oh no
.F good stuff
!F hell yeah
*F hell yeah

Bring back TaB

r	extract method
R	extract method
R!!	extract method
R!!	clean stuff up
B	oh no
B!!	oh no
B!!	oh no
F	good stuff
F!!	hell yeah
F!!	hell yeah
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment