-
Boston Python Meetup (January 2013)
-
PyCon France 2013
Example: | |
Read this first: https://medium.com/@bchesky/dont-fuck-up-the-culture-597cde9ee9d4#.ayomrv98k | |
The legendary Netflix Culture deck http://www.slideshare.net/reed2001/culture-1798664 | |
http://hbr.org/2014/01/how-netflix-reinvented-hr/ar/1# | |
Real life experiece of the culture: | |
http://www.brendangregg.com/blog/2015-01-20/working-at-netflix.html | |
http://www.brendangregg.com/blog/2016-03-30/working-at-netflix-2016.html |
(import [os [listdir remove]]) | |
(import [os.path [isfile join]]) | |
(import [sys [argv]]) | |
; Path for tests | |
(setv test-dir "./tests") | |
; Extension for the tests | |
(setv test-ext ".qtest") | |
; List all the files in the test suit |
Lightning talk on PyCon 2013: | |
http://www.youtube.com/watch?feature=player_detailpage&v=1vui-LupKJI#t=975 | |
Boston Python Meetup (January 2013) | |
http://www.youtube.com/watch?v=ulekCWvDFVI | |
PyCon Canada 2013 | |
http://www.youtube.com/watch?v=n8i2f6X0SkU | |
PyCon France 2013 |
Guia para desenvolvimento de folhas de estilo no site do Quero Bolsa.
Utilizamos SASS no projeto.
Respeite os níveis de indentação.
defmodule Coalesce do | |
@moduledoc """ | |
Provides a "coalesce" macro. | |
This macro is partly inspired by the COALESCE function in the SQL-92 standard. | |
The original COALESCE function is a function that returns the first non-null | |
computed expression passed as one of its argument, or NULL itself if no such | |
expression is found. |
#include "fibs.h" | |
long fib(int n) | |
{ | |
if (n == 0) | |
return 1; | |
else if (n == 1) | |
return 1; | |
else | |
return fib(n-1) + fib(n-2); |
Node é single threaded, istoé, ele é incapaz de executar duas coisas ao mesmo tempo, com exceção de operaçes de IO.
Exemplos de operação não bloqueantes: Acesso à rede, acesso à arquivos etc.
Exemplos de açes bloqueantes: Loop num array, cálculos complexos etc.
Em node, o padrão é toda função assíncrona ter uma versão síncrona, por exemplo fs.readFile
e fs.readFileSync
.
As verses síncronas são úteis para aplicações que não dependem de concorrência, como scripts e programas de linha de comando por exemplo.
Via de regra usamos a versão assíncrona. Em uma API, por exemplo, qualquer operação bloqueante impede que novas requisiçes sejam processadas pelo servidor, por isso é importante sempre fazer chamadas não bloqueantes.