Those are my coding principles.
In this precise order.
1️⃣ - Do only what you need to do.
2️⃣ - Do it in the simple way you can.
3️⃣ - Do it once.
Rationale 🧵
Alberto Basalo // AI code quality retweeted
Introducing tsrs: a Rust port of the TypeScript compiler 🦀
We are not forking TypeScript!
◆ In close collaborating with the TypeScript team
◆ Up to 8x faster than TS 7.0 & ~70% less memory
◆ Runs in WASM, so it works in your browser & on Workers
◆ Soon part of the Oxc toolchain
npx tsrs
blog.cloudflare.com/typescri…
Sobre reglas de codificación para agentes:
- nombrado de variables y funciones,
- scaffolding de carpetas y ficheros,
- dependencia entre capas lógicas,
- complejidad y tamaño de funciones y módulos,
- gestión de errores. monitorización...
y lo que se te ocurra..
Sigue 👇
La alternativa es dejar que lo haga a su aire (pero funcionalmente bien) y corregir después.
+ Llevar cuantas más reglas mejor a comprobaciones deterministas post-mortem (digo post-generation)
+ Lo que no pueda ser programado se hará en modo review por otro agente.
Sigue 👇
Con la facilidad para generar pruebas unitarias... la carga de la prueba se mueve hacia los tests de aceptación.
No es cuestión de abandonar los units, pero hay que prestar mucha más atención a los e2e.
Alberto Basalo // AI code quality retweeted
Nuevo curso: Testing IA con Playwright en TrainingIT.
𝗕𝗼𝗻𝗶𝗳𝗶𝗰𝗮𝗯𝗹𝗲 𝗽𝗼𝗿 𝗙𝗨𝗡𝗗𝗔𝗘 si vienes de empresa.
Profesor: @AlbertoBasalo
🔗 trainingit.es/producto/testi…
#TestingIA #Playwright #ClaudeCode #FUNDAE #TrainingIT #Testing #IA #Cursos #Formación
Hoy me he levantado con la idea de usar vibespec en detrimento de vibecode
Es decir, conversar, chatear, discutir con el modelo la especificación de lo que se hará.
No el código, la spec.
Me he currado un arquetipo para hacer CLIs en typescript que te puede valer para no empezar de cero.
Viene con todo el linting, formatting y testing preconfigurado. Ideal para usar con IA.
Además ya gestiona configuración y monitorización.
github.com/AIDDbot/archetype…
1️⃣First make it work, then make it right
2️⃣Revertir la pirámide de testing: - Unitaria a + E2E
3️⃣Guiar en el QUÉ (Specs), no en el CÓMO (Reglas)
4️⃣Entender la diferencia con un desarrollador humano
5️⃣Priorizar el valor funcional sobre el purismo
how do you trust your agents' work more? copy this post/link and give it to your @bot or agent!
1. codebase improvements: this is just good software engineering - better architecture, stronger types and invariants, clear boundaries. agents love to copy what exists and take the shortest path, so make the easy thing the right thing. categorically eliminate problems through code and you won't need to think about it again.
2. static analysis: lint rules, tests, CI, verification (eg TLA+). very token efficient ways to catch issues ahead of time.
3. prose: comments, rules, AGENTS.md, skills - anything that can't be enforced and requires agent judgment. use it minimally, but do use /create-verification-skill.
4. human review: the hardest to scale. at the rate agents land code, it's pretty much impossible to thoroughly review every PR, so spend that effort on the highest leverage point, designing an environment where agents do the right thing by default.
this forms an inverse pyramid: you want most of your effort at the top, least at the bottom. codebase improvements are deterministic, making it more token efficient, and lets you sleep more soundly at night.
install github.com/cursor/plugins/tr… and create a new Project:
1. look through my slack/chat messages and code review comments where i've given feedback on PRs, code, architecture
2. use /recall on my past transcripts to learn how i steer agents
3. /poteto-mode use /correct and /architect on past commits to find the most common pitfalls agents fall into, then propose a plan to rearchitect the code i own so it's more agent friendly. answer open questions with prototyping rather than defer to me, and back the plan with real data.
4. before you begin, use /sharpen + /in-your-own-words and confirm this prompt with me
Vite, qué buen que vinite!
Perdón por el chiste del orto...
Pero es que que Vite+ es que es una locura
En serio, probadlo y me lo agrraecereis.
Debajo os dejo una config minima para empezar
"scripts": {
"start": "node src/app.main.ts",
"test": "vp test run --project unit"
},
"devDependencies": {
"@types/node": "^26.6.5",
"vite-plus": "^1.2.0"
}
y el config de vite
export default defineConfig({
staged: {
"*": "vp check --fix",
"*.ts": "vp test related --run --passWithNoTests",
},
fmt: {
ignorePatterns: ["**/*.md"],
},
lint: {
options: { typeAware: true, typeCheck: true },
},
}
Más info: viteplus.dev/
Levanto las manos del teclado y me voy a dar un paseo por la playa.
Esto de abajo es justo lo pensaba hacer para noviembre.
github.com/anthropics/claude…
Alberto Basalo // AI code quality retweeted
Infoxicación.
Alfons Cornella acuñó el término para referirse a la exposición ininterrumpida a la información que nos mantiene confundidos, ansiosos, incluso angustiados.
«Devenimos "comepalabras" antes de que podamos saborearlas. Leemos demasiado y entendemos muy poco de lo que leemos».















