Something about
the future of JS

Luiz Tiago

Como prever o futuro?

Problema real

Consumir um search do twitter e montar uma lista com os últimos tweets.

Proposta 01

$.ajax({
	url: 'api_url',
	type: 'post',
	dataType: 'html',
	success: function (data) {
		jQuery('#tweets').html(data);
	}
});
				

Proposta 01 - Pontos positivos

Proposta 01 - Pontos negativos

Proposta 02

$.ajax({
	url: 'api_url',
	type: 'post',
	dataType: 'json',
	success: function (data) {
	    var tweets = data.tweets;
	    $.each(){
	        $('.template-tweet').clone();
	        ...
	    });
	}
});
				

Proposta 02 - Pontos positivos

Proposta 02 - Pontos negativos

Web Components

Web Components

Proposta 03

Proposta 03 - Pontos positivos

Proposta 03 - Pontos negativos

FEED

Tentativas

Design

IE

Ant v0.1

Ambient Light Events

Ambient Light Events

window.addEventListener('devicelight', function(event) {
	console.log(event.value);
	// Retorna um inteiro de 0 a 10000 (lux)
});
				

Ant + Ambient Light Event

"Fear Ant"

Como se manter atualizado?

Obrigado, Pernambuco.JS!