Open digawp opened 9 years ago
Here's my recommendation. Unless otherwise specified, follow these conventions:
For Django & Python,
For HTML & CSS:
Satu hal yang gw concerned (for now) sih cuma indentation. Buat JS ama HTML, gw merasa 2 space (Google standard) is too small (CS2103 standardnya 4 space) but I know HTML bisa super deeply nested element nya, so I don't know haha.
JS juga ada high chance deep nesting, tapi kalo JS kita bisa refactor (SLAP! CS2103 much lol) Jadi mau turutin Google 2 space or....?
Terus I think mending kalo kita bikin consistent between JS and Python codes, atau beda aja gpp? (menurut those docs, Python 4 space tab, kalo JS 2 space tab)
HTML may be very deep, I think to use 2 spaces for HTML. However for JavaScript, I think 4 spaces is preferable to avoid deep nested code.
Was looking through the html coding standard, there isn't any limit to the no of chars in a line for html, is there?
No hard limit other than your own computer screen.
However, I always follow my own conventions to achieve at most 79 char/line for everything I wrote. There are historical reason why this number, but for me because it fit my Vim Editor when I am on Linux. (*readability)
Coding standard, unless otherwise specified:
TODO: