Show Menu
Cheatography

ELEDU | Dev Conventions Cheat Sheet by

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

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.
       
 

Comments

No comments yet. Add yours below!

Add a Comment

Your Comment

Please enter your name.

    Please enter your email address

      Please enter your Comment.

          Related Cheat Sheets

          C Reference Cheat Sheet
          ISTQB Test Automation Engineering Cheat Sheet