Skip to content

Instantly share code, notes, and snippets.

###Code Review

É uma técnica onde o desenvolvedor tem seu código revisado por outro desenvolvedor antes de commitar o código.

O commitador deve explicar cada arquivo que está sendo commitado, tanto do ponto de vista técnico quanto de negócio.

Cada trecho de código apontado como alteração pelo "diff" deve ser devidamente explicado ao revisor.

É papel do revisor questionar sobre o código, sugerir melhorias e exigir detalhes sobre a regra de negócio.

@airton
airton / git-rebase.markdown
Created May 18, 2017 14:48 — forked from tmcgilchrist/git-rebase.markdown
Git rebase workflow

Checkout a new working branch

 git checkout -b <branchname>

Make Changes

 git add
 git commit -m "description of changes"

Sync with remote

@airton
airton / scroll.js
Created February 2, 2017 16:30
es6 scroll module
/**
* Scroll Handling & Smooth Scroll
*/
let scroll = {
/**
* Fires a function on scroll with request animation frame
* @param {Function} fn Function to fire on scroll event
*/
on: (fn) => {
window.addEventListener('scroll', () => window.requestAnimationFrame(fn))
@airton
airton / favicon-interceptor.js
Created February 19, 2016 14:05 — forked from kentbrew/favicon-interceptor.js
How to short-circuit those annoying favicon requests in node.js
// early experiments with node had mysterious double requests
// turned out these were for the stoopid favicon
// here's how to short-circuit those requests
// and stop seeing 404 errors in your client console
var http = require('http');
http.createServer(function (q, r) {
// control for favicon
@airton
airton / vanilla-js-vs-jquery.md
Last active February 24, 2016 20:23 — forked from liamcurry/gist:2597326
Vanilla JS vs jQuery

Moving from jQuery

Events

// jQuery
$(document).ready(function() {
  // code
})