Skip to content

Franceshe/code-review-guide

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 

Repository files navigation

code-review-guide

Code review is essential to write clean and maintainable code. In large code base, most code is purposed to be read than written. The following are a summary of reference for code review in our team collaboration project.

General

General Code review guide by Google

Python

PEP 8 -- Style Guide for Python Code

  • Descriptive: Naming Styles: eg single_leading_underscore: weak "internal use" indicator.

Profiling python

Django

Read concise pydoc

pydoc django

Read and generate detail documentation

  • There is an official Django coding style which provides a recommended ordering for models:
  • choices
  • database fields
  • custom manager attributes
  • Meta
  • def str()
  • def save()
  • def get_absolute_url()
  • custom methods

For reusable app :App naming conventions

  • An app's name should follow Pep 8 Guidelines, namely it should be short, all-lowercase and not include numbers, dashes, periods, spaces, or special characters. It also, in general, should be the plural of an app's main model, so our posts app would have a main model called Post.
  • Reference by Django Best Practices: Projects vs Apps

Go

Effective Go

Scala for Spark

Clojure

Javascript/Typescript

Javascript style for Django

Git

How to ask question in a smart way

Save you and your teammates time:

About

Design and code review guide to write clean, maintainable code

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published