#Javascript
113 notas · última:
Build a JavaScript Particle System in 200 Lines
The article shows how to build a flexible particle system with vanilla JavaScript, using a canvas, an animation loop, vectors, emitters, particles, and fields that attract or repel.
3 Essential Sublime Text Plugins for Node & JavaScript Developers
The post recommends three Sublime Text plugins for JavaScript and Node work: JsFormat for formatting, JSHint for detecting errors and enforcing conventions, and JavaScriptNext for improved syntax highlighting.
Why The JavaScript World Is Still Waiting For Node.js 1.0
Node.js project lead TJ Fontaine says the team is delaying 1.0 to avoid locking the ecosystem into an early release. The article frames 1.0 as a signal of maturity for business users and production teams.
Seven Things You Should Stop Doing with Node.js
The post lists seven Node.js habits to avoid: nested callbacks, wildcard versions, console.log debugging, using GET and POST for everything, semicolons, comma-first style, and the default maxSockets limit.
An Open Letter to JavaScript Leaders Regarding Semicolons
The post argues that JavaScript semicolon rules are understandable, that minimal-semicolon and comma-first style is safe, and that leaders should stop spreading fear about ASI.
Web Components é uma Revolução?
O artigo avalia Web Components como uma evolução útil para isolar estilos, reusar elementos e empacotar widgets, mas sem ruptura real para o usuário final ou solução completa para o ecossistema.
Patterns for Asynchronous Programming with Promises
The post shows promise-based patterns for running asynchronous work in parallel or in sequence, using map, Q.all, each, and reduce to control order and collect results.
Write Better JavaScript with Promises
The article shows how promises make jQuery code easier to read, let APIs return values instead of callbacks, support chaining, and combine multiple requests with `when`.
A Javascript router in 20 lines
The post builds a simple client-side router with hash URLs, route registration, and load/hashchange handling. It then adds one-directional data binding with Object.observe to rerender the view when controller data changes.
10 reasons the browser is becoming the universal OS
The article argues that HTML, CSS, and JavaScript have turned the browser into the main software platform because web apps, plug-ins, openness, portability, shared libraries, competition, graphics, and Node.js keep moving work into the browser.
Making a Collaborative Piano Using Functional Reactive Programming (FRP)
The post explains FRP through a collaborative piano built in CoffeeScript, where clicks, keypresses, and WebSocket messages are merged into one event flow and mirrored across clients.
Building Multiplayer Games with Node.js and Socket.IO
The article explains how Anagrammatix uses Node.js, Express, and Socket.IO to run a real-time multiplayer word game across a host screen and mobile controllers, with server-managed rooms and events.
Functional Reactive Programming in JavaScript
The post introduces FRP as a way to reduce complexity in user input and asynchronous work, then shows Bacon.js streams and properties in a simple Wikipedia search example.
Does CoffeeScript Have a Future?
The post says CoffeeScript is widely supported and still useful, but JavaScript remains the common language, keeps changing, and may absorb enough CoffeeScript features to make CoffeeScript harder to justify over time.
Callback Hell
The page explains how callback-heavy JavaScript becomes hard to read when functions stay anonymous and deeply nested, and it recommends naming functions, keeping code shallow, and splitting code into modules.
11 Useful JavaScript Tools for Developers
The page gathers 11 JavaScript tools and describes how they help with counting text, chat, linting, responsive menus, maps, task running, CSS processing, and visual design.
Developing Backbone.js Applications
A guide to building client-side apps with Backbone.js, covering MVC and MV*, models, views, collections, routers, REST sync, modular development, testing, and common patterns.
JavaScript: o que fazer e aprender para se tornar um desenvolvedor melhor?
O artigo indica caminhos para estudar JavaScript: aprender a linguagem, entender escopo, closures, eventos, protótipos, performance, debug e acompanhar a especificação ECMAScript.
Mikko Ohtamaa: Javascript autocompletions and having one for Sublime Text 2
The article explains why JavaScript autocompletion is difficult, then surveys ways to add type information and build completions in Sublime Text 2 with JsDoc, TypeScript, CodeIntel, CTags, or custom scripts.
Parallax Scrolling
O texto explica o que é paralaxe, como o efeito foi usado no webdesign e quais cuidados são necessários antes de implementá-lo com o plugin stellar.js, para evitar poluição visual e uso sem propósito.
Criando um plugin JavaScript (sem jQuery!)
O artigo mostra como montar um slider de imagens com JavaScript e CSS3, sem biblioteca, usando prototypes, querySelectorAll, createElement e navegação entre páginas.
Writing Fast, Memory-Efficient JavaScript
The article explains how V8 and garbage collection affect JavaScript performance, then gives practical rules for objects, arrays, closures, timers, DOM work, benchmarking, profiling, and leak detection.
Jump into Game Development with the Tower Defense Genre
The post argues that tower defense is a good entry point for new game developers because it fits touch devices, supports simple resource-and-placement gameplay, and can be built with existing HTML5, JavaScript, or open-source tools.
Identificando os IEs
A página mostra como identificar versões antigas do Internet Explorer e adicionar uma classe específica na tag HTML para tratar erros com JavaScript, jQuery ou comentários condicionais.
Assegurando a qualidade do seu código JavaScript
O texto reúne ferramentas de lint para verificar sintaxe e padrões em JavaScript, explica que elas não validam a lógica do programa e compara JSLint, JSHint, Closure Linter e jQuery Lint.
Qual é exatamente o problema com eval()
O texto questiona os argumentos comuns contra eval() em JavaScript, dizendo que performance e segurança costumam ser exageradas e que o problema mais sério está na qualidade do código e na dificuldade de debugar.
Create a transparent TabbedBar for Titanium Mobile
The snippet builds a semi-transparent Titanium Mobile TabbedBar by layering a bar background, an empty TabbedBar, and visible labels inside one reusable view.
Série Backbone.js: Parte 01 - Introdução
Apresenta o Backbone.js como um framework para organizar aplicações web com Models, Collections e Views, e mostra um Hello World com uma View renderizada no body.
JavaScript: A Menos Entendida Linguagem de Programação do Globo!
Douglas Crockford argumenta que JavaScript é amplamente usado, mas mal compreendido, e explica seu nome, sua proximidade maior com Lisp do que com C, seu modelo de objetos e seus problemas de padronização e documentação.
Boas práticas com JavaScript e jQuery: código não-obstrusivo
A página defende separar HTML, CSS e JavaScript, ligar comportamento por eventos da DOM ou do jQuery e evitar onclick inline e links com href="#".
We're Doing It Wrong
The page explains how Array#sort behaves across browsers, why stable sorting and locale-aware string comparison matter, and how mapping values first can reduce comparison cost.
html2canvas: captura de tela do navegador
O texto explica como o canvas do HTML5 permite capturar telas com javascript usando html2canvas, mostra o fluxo Preload/Parse/Render e um exemplo com proxy para um site externo.
Padrão de projeto de software - JavaScript: Observer
O texto explica o padrão Observer em JavaScript, compara os modos push e pull, mostra exemplos de código e aponta usos comuns em eventos DOM e plugins jQuery.
