Giter Site home page Giter Site logo

how-we-work's Introduction

How We Work

Formatting/Conventions

Base styles guides:

Our updates:

  • Limit lines to 110 characters, in order to remove horizontal scrolling on GitHub when we are doing code review
  • Align parameters like:
# not so bad
def send_mail(source)
  Mailer.deliver(
    to: '[email protected]', from: '[email protected]'
  )
end

# good
def send_mail(source)
  Mailer.deliver(to: '[email protected]',
                 from: '[email protected]',
                 subject: 'Important message',
                 body: source.text)
end

# good (normal indent)
def send_mail(source)
  Mailer.deliver(
    to: '[email protected]',
    from: '[email protected]',
    subject: 'Important message',
    body: source.text
  )
end
  • Use prefix _ for memo variables:
class TestObject
  attr_reader :attr_name
  
  def attr_name
    @attr_name ||= lazy_calculation_for_attr_name
  end
  
  def public_method_with_memo
    @_public_method_with_memo ||= public_method_with_memo_calculcations
  end
end

Working with Bugs

  • All bugs should be covered with tests and by TDD

Simplify Views

  • We use Decorators (in code we called them Carrier) as View and Form objects: introduction how to use them
  • We do not use full Presenters (TODO: add link to first post about them) with tag generations

Setup Development Environment

  • bin/setup - cold setup
  • rake setup
  • rake setup_sample_data

Delivery Flow

  • create PR
  • deploy PR to Heroku
  • ask verify, to code review and to merge

TODO/FIXME Notes

  • add issue on GitHub per each note
  • create TODO/FIXME note in the code
  • add in code's note link to GitHub's issue

General templates

Git/GitHub

Best Practices

Tutorials

Tools:

  • Collaboration:
    • Chat: Slack
    • Issues Plannings: Github, Trello and Waffle.io
    • Information board: Hackpad, Google Site, Trello
    • Screenshots: Skitch (OS X), Screencloud (Ubuntu, OS X)
    • Screencast: Kazam (Ubuntu)
  • CI:
    • TeamCity (self hosted)
    • CircleCI
  • Server Conf: Chef
  • Deployments: Capistrano
  • Assets and File Uploads CDN hosting: AWS, Cloudinary (Images Uploads)
  • PAAS for Isolated Staging Testing: Heroku (Rails apps), divshot.io (static HTML)
  • Cache: Memcached Cloud from Redis Lab
  • JavaScript Base Frameworks: jQuery, React.js, Angular.js, Backbone.js
  • SCM: Git on GitHub

how-we-work's People

Contributors

askel4dd avatar katlavan avatar mluts avatar pftg avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.