Programador, consultor e instructor de programadores desde el siglo pasado. Creador de https://xitter.cf/t.co/9CiRF4hQoW

Here to help 👉🏼
Joined December 2010
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 🧵
5
5
1
13
4,745
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…
132
483
190
4,491
501,980
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 👇
1
156
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 👇
1
40
- ¿Y los fallos? Se arreglan cuando surjan. - ¿Y se agregan las soluciones como reglas? No, porque eso es lo que tratamos de evitar - ¿Entonces volverá a fallar mañana? Sí, pero menos. - ¿Por qué? Porque tendrá mejor código de ejemplo. Aprenderá copiando. Lo que mejor hace. Fin.
29
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.
2
1
3
430
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
1
3
64
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.
1
1
277
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…
2
3
227
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
196
Alberto Basalo // AI code quality retweeted
Mejor hecho que perfecto. El momento ideal no existe.
1
3
25
1,837
Alberto Basalo // AI code quality retweeted
2
238
1
2,140
17,305
Alberto Basalo // AI code quality retweeted
Fixed it
312
231
68
2,417
99,119
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
1
207
"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
1
78
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/
46
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…
1
2
115
39,465
El paseo de ayer me permitió pasar rápidamente por las fases del duelo, así que ya estoy en aceptación. Cualquier software que piense crear, otro lo hara antes y mejor. Sobre todo si ese otro es un gigante. Y ahora hay muchos. Hay hordas de gigantes.
3
345
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».
1
8
498
Los que os habéis pasado a oxlint y oxfmt ¿qué usáis para atacar solo a fichero staged o modificados durante un turno?
153