ELEDU | Dev Conventions Cheat Sheet

A Programming › Nope cheat sheet in English and español (Spanish) by eledu

IDE + GIT base config for developers. In addition, commit messages conventions

7,134 views 744 downloads 18 Feb 2020 History
3.7 avg · 0 ratings

IDE Config (Java & JS)

Text file encoding
UTF-8
New text file delimiter
Unix
Indent­ation
Spaces only; size: 4
Line Wrapping
Max line width: 120
Wrapping settin­gs/­Fun­ction Calls Qualified invoca­tions
Wrap all elements, except first element if not necessary

Wrap all elements, every element on a new line

new Dog("Scooby Doo").pa()
    .pa()
    .andThen()
    .theThing()
    .sounds()
    .ra("!")
    .ra("!!")
    .ra("!!!");

GIT Config

@Unix (Linux­/Mac)
git config --global core.a­utocrlf input
@Windows
git config --global core.a­utocrlf true
@All
git config --global push.d­efault simple
 
git config --global pull.r­ebase true
 
git config --global rerere.en­abled true

Commits conven­tions

Imperative mood (git short style): Add, Update, Delete, Fix, Merge, etc, etc
Add title 50 chars max
-- empty line between title and body --
Add body 72 chars max per line
Example:

Summarize changes in around 50 characters or less

More detailed explan­atory text, if necessary. Wrap it to about 72 characters or so.

Badges

Nice Cheat Sheet

Comments

No comments yet.

Cheatography n. The art of mapping complex subjects into clear, instantly navigable reference guides.