Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Innovative Academy Dev Sharing Session #2: Why ...

Innovative Academy Dev Sharing Session #2: Why We Should Use Code Styles

A brief presentation about what, why, and how to use code style

Avatar for Haydar Ali Ismail

Haydar Ali Ismail

February 02, 2017

More Decks by Haydar Ali Ismail

Other Decks in Technology

Transcript

  1. What is Code Style? - Code style, programming style, or

    coding conventions is a set of rules or guidelines when writing code. - The motivation behind creating code style is to make sure developers write based on the guideline thus it will be able to be read by other developers. - It is also helpful to avoid developers creating mistakes while writing code. - Usually there are more than one code style for a particular programming language or framework.
  2. 1. Python a. PEP-8 (https://www.python.org/dev/peps/pep-0008/) b. Google Python (https://google.github.io/styleguide/pyguide.html) 2.

    PHP a. PSR-2 (https://github.com/php-fig/fig-standards/blob/master/accepted/PSR-2-coding-style-guide.md) b. Pear PHP (http://pear.php.net/manual/en/standards.php) 3. Javascript a. Airbnb (https://github.com/airbnb/javascript) b. Mozilla (https://developer.mozilla.org/en-US/docs/Mozilla/Developer_guide/Coding_Style) Examples of Code Style
  3. Lint or a linter is any tool that flags suspicious

    usage in software written in any computer languages
  4. How to Install On Sublime Text: 1. Package Control: https://packagecontrol.io/installation

    2. SublimeLinter: http://www.sublimelinter.com/en/latest/ On Atom and Visual Studio Code There is no prerequisite step!