This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public static IEnumerable<IList<T>> BatchAggregate<T>(this IEnumerable<T> source, int batchSize) | |
{ | |
var list = new List<T>(batchSize); | |
using (var enumerator = source.GetEnumerator()) | |
{ | |
while (enumerator.MoveNext()) | |
{ | |
list.Add(enumerator.Current); | |
if (list.Count == batchSize) | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Reference: Microsoft.TeamFoundation | |
// Reference: Microsoft.TeamFoudnation.Client | |
// Reference: Microsoft.TeamFoundation.Common | |
// Reference: Microsoft.TeamFoundation.Framework.Server | |
// Reference: Microsoft.TeamFoundation.Server | |
// Reference: Microsoft.TeamFoundation.WorkItemTracking.Client | |
// Reference: Microsoft.TeamFoundation.WorkItemTracking.Server.Dataaccesslayer | |
// Reference: Microsoft.TeamFoundation.WorkItemTracking.Server.DataServices | |
// Copy resulting DLL to %PROGRAMFILES%\Microsoft Team Foundation Server 2010\Application Tier\Web Services\Bin\Plugins |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
É bem útil conceituar forte e explicitamente a diferença entre Resolver/Eliminar um problema | |
e Contornar/Gerenciar um problema. | |
Exemplo de Problema: "Tá um inferno gerenciar os bugs do nosso sistema." | |
Contornar/Gerenciar: "Vamos subir um bug tracking tipo Jira/BugZilla da vida!" | |
Resolver/Eliminar: "Vamos melhorar a qualidade do código até reduzir em 98% o surgimento de | |
bugs." |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var http = require('http'); | |
http.createServer(function (req, res) { | |
res.writeHead(200, {'Content-Type': 'text/plain'}); | |
res.end("Não tem que ser dificil!\n"); | |
}).listen(1337, "127.0.0.1"); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Text; | |
using System.Text.RegularExpressions; | |
using System.Threading; | |
using NUnit.Framework; | |
using OpenQA.Selenium; | |
using OpenQA.Selenium.Firefox; | |
using OpenQA.Selenium.Support.UI; | |
using OpenQA.Selenium.IE; |
Recentemente eu comentei sobre a migração que fizemos no [Myfinance][mf] saindo do [Heroku][h] e indo para a [Amazon Web Services][a] e diversas pessoas me perguntaram as razões pela qual fizemos essa mudança. O objetivo desse post é apenas explicar a decisão que a nossa equipe tomou, como foi e as conseguências dessa migração.
Antes de começar eu gostaria de deixar claro que o objetivo desse texto não é comparar hospedagens e nem dizer que uma é melhor do que a outra. Trata-se apenas do relato de uma experiência.
Antes de explicar a motivação por trás da migração é interessante mostrar como era a nossa estrutura.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Pessoal, gostaria de saber como vocês endereçam as questões que farei após explicar o cenário | |
abaixo. Pra mim, é muito claro que todas podem ser respondidas com um belo "depende", contudo, | |
vamos focar as respostas no que atenderia a maioria dos casos (lembrando que esse é um cenário | |
muito simplório). | |
-- CENÁRIO ----------------------------------------------------------------------------------------- | |
Um desenvolvedor codificou inicialmente a classe (escrita em C#) no gist "exemplo_antes.cs". | |
Após aplicar um refactoring, ele chegou no resultado mostrado no gist "exemplo_depois.cs". | |
Algumas métricas foram coletadas antes e depois do refactoring (vide gist "métricas.txt"). |
create different ssh key according the article Mac Set-Up Git
$ ssh-keygen -t rsa -C "your_email@youremail.com"
OlderNewer