Sintaxe de programação, um conceito por vez.
Guias focados em variáveis, tipos de dados, controle de fluxo, funções, classes e biblioteca padrão: referências curtas que você lê e copia enquanto trabalha.
- Guias de sintaxe
- 3.860+
- Temas
- 14
- Ferramentas
- 15
from dataclasses import dataclass
@dataclass
class Guide:
topic: str
minutes: int
def total_minutes(guides: list[Guide]) -> int:
return sum(guide.minutes for guide in guides)Dataclasses and type hints
Open guideFerramentas de desenvolvimento no navegador
15 utilitários que rodam totalmente no seu navegador, sem enviar nada a um servidor.
Guias de sintaxe mais recentes
Os quatro guias mais recentes, direto da biblioteca.
O texto é em inglês
Os mais de 3.860 guias de sintaxe da biblioteca são publicados em inglês. As ferramentas abaixo estão totalmente traduzidas e cada link de guia abre o original em inglês.
Git Push Rejected GH001: Large Files and History Rewrite
The 100 MB limit applies to every blob in the pushed history, so deleting the file does not help. Find the object, rewrite with filter-repo, or migrate to LFS.
Rust Tokio: Blocking the Runtime and spawn_blocking Fixes
A synchronous call inside an async fn stops the worker that drives every other task on it, timers included. Detection, spawn_blocking, and the guard-across-await trap.
Go http.Client: unexpected EOF and Connection Reuse Leaks
A body closed without being read cannot be reused, and descriptors pile up. Idle timeouts shorter than the upstream's, MaxIdleConnsPerHost and safe retries.
Node.js JWT invalid signature: JWKS Rotation and Clock Skew
One message covers three bugs: the wrong key type for RS256 or ES256, a JWKS cache that never refreshes after a kid rotation, and a clock that drifted.
Explorar por tema
Todas as categorias da biblioteca e quantos guias cada uma tem.