Skip to content

Instantly share code, notes, and snippets.

Avatar
This is not a verified profile. Or is it?

Juan Lopes juanplopes

This is not a verified profile. Or is it?
View GitHub Profile
View gist:7025dd8a17f09016b98f

Discussão iniciada no grupo tdd-no-mundo-real

Pessoal, desculpe a resposta longa mas esse assunto é muito interessante. Quem hoje em dia, pode acompanhar uma discussão entre grandes pioneiros de sua área que com certeza entrarão para a história da Engenharia de Software nos séculos seguintes? Somos muito afortunados quanto a isso.

Tenho acompanhado essas discussões pelos blogs do DHH e do Uncle Bob.

Achei que deveriam ter incluído o Uncle Bob no hangout. Como disseram que fariam outros episódios, creio que ele deve participar no próximo.

Resumindo o que tirei das opiniões deles:

View robot.js
var robots = new Array();
//FightCode can only understand your robot
//if its class is called Robot
var Robot = function(robot) {
};
Robot.prototype.start = function( ev ){
View robot.js
//FightCode can only understand your robot
//if its class is called Robot
var Robot = function(robot) {
};
Robot.prototype.onIdle = function(ev) {
var robot = ev.robot;
robot.clone();
View robot.js
//FightCode can only understand your robot
//if its class is called Robot
var Robot = function(robot) {
};
Robot.prototype.onIdle = function(ev) {
var robot = ev.robot;
robot.clone();
@juanplopes
juanplopes / robot.js
Created Dec 5, 2012 — forked from fabiopimentel/robot.js
[CAELUM TEAM]Megatron
View robot.js
//FightCode can only understand your robot
//if its class is called Robot
var Robot = function(robot) {
};
Robot.prototype.onIdle = function(ev) {
var robot = ev.robot;
robot.clone();
View 12361.cpp
//11512
//GATTACA
//Misc;String Matching;Suffix Array;Longest Common Prefix
#include <iostream>
#include <iomanip>
#include <cstring>
#include <string>
#include <sstream>
#include <cmath>
#include <set>
View License.cs
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Security.Cryptography;
namespace License
{
public class LicenseServiceImpl
{
@juanplopes
juanplopes / base_62.rb
Created Mar 26, 2012 — forked from gleicon/base_62.rb
base 62 encoding in ruby (versão devops)
View base_62.rb
# monkey patch to have base62 encoding over Integers and Strings
class Integer
def to_base62()
char = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz"[self%62,1]
return char if self < 62
return (self/62).to_base62 + char
end
end
@juanplopes
juanplopes / base_62.rb
Created Mar 26, 2012 — forked from gleicon/base_62.rb
base 62 encoding in ruby (versão funcional)
View base_62.rb
ALPHABET = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz"
def base62_encode(num, alphabet=ALPHABET)
base = alphabet.size
char = ALPHABET[num%base,1]
return char if num < base
return char + base62_encode(num/base, alphabet)
end
def base62_decode(string, alphabet=ALPHABET)
@juanplopes
juanplopes / gist:2003306
Created Mar 8, 2012 — forked from moreirayokoyama/gist:2002607
Mod 10 (declarative fashion)
View gist:2003306
function mod10(numbers) {
var M = [2,1];
var result = numbers.split('').reverse().map(function(v, i) {
return parseInt(v)*multipliers[i % M.length];
}).reduce(function(a,b){return a+b});
return (10 - result % 10) % 10;
}
You can’t perform that action at this time.