Creează un cont pentru a te abona la acest blog și a-i urmări articolele pe pagina Lectură.
-
This week a colleague taught me about Simplified Technical English in the context of agentic software development.
-
A while ago, I wrote that you can use .toString() to reflect about user-defined functions in the JavaScript runtime.
-
Node has a key process.versions that can tell us a lot about itself.
-
In JavaScript reflection with .toString(), comments are preserved. const hello = () => { // returns "Hello" return 'Hello'; }; hello.toString(); // '() => {\r // returns "Hello"\r return "Hello";\r}' Note the comment in the returned string.
-
This page summarizes my usage of AI on this website.1
-
Git hooks are scripts that run at key moments in the version-control lifecycle.
-
Today, after waiting for an album review to load, I built something small: my own take on the Pitchfork aggregate review loading experience.
-
When developing a local Node module, we might want to point another project’s package.json at the local module.
-
Today I learned what tsc --watch is really for.
-
I’ve written about lpr before; to me the ability to send a file to my printer from the command line is a magic trick.
-
Today I built a system to read a markdown file from one location in my Hugo project into another.
-
npm init is a nice tool for initializing a package.json.
-
This Summer I wrote a number of blog posts for my TypeNotes project.
-
Something I put off until a bit into a personal project is adding an icon library.
-
We can open Vim in read-only mode in two ways: vim -R <file> Or: view <file> A use case could be a file on a server with credentials that we want to read but be sure not to change.
-
Today I got to try the experimental if/else syntax in CSS: /* Component.module.css */ img { transform: if(style(--isZoomed: true): scale(2) ; else: scale(1)); } I used it to pass a variable from React state to the stylesheet: // Component.tsx <img style…
-
A goal of modular CSS is to scope styles to components.
-
A developer experience and quality control measure I take on programs I’m building, even small ones, is always to write at least one test.
-
There are a few ways to know that a file is a symlink.
-
It’s been a bit since I was typing SQL into a REPL.
-
I use Ripgrep as my command-line search tool.
-
For each way you can map something in Vim, you can inspect those mappings.
-
We can save all evaluated commands from our TSX REPL session to a file: $ npx tsx > const name: number = "Jake" undefined > .save output.ts Session saved to: output.ts
-
Want to get better at technical writing?
-
In the next twelve months, I’m launching twelve software startups.
-
Today I discovered tsx, a REPL that evaluates TypeScript.
-
For the golfers out there, we can combine these two lines into one: const items = await getCollection(); return items.sort(); This doesn’t work because sort() is being called on the promise returned by getCollection(): return await getCollection().sort();
-
Today I’d like to highlight something I built with some colleagues that I think is cool: the dynamic paths of Hashrocket’s daily learning site, Today I Learned (TIL).
-
Astro’s default port is 4321.
-
Node Timeout timers have a private boolean attribute called _destroyed.
-
Today I used JavaScript to mass-unsubscribe from a website’s email notifications.
-
Reflection is an important tool in programming; it lets us examine a language’s structure.
-
A vital testing skill is focusing a test.
-
JSDoc has a @deprecated tag that you can use in TypeScript, too.
-
I’m reading How to Open Source by Richard Schneeman (fantastic) and one of his tips is to show documentation code like this (consider documenting ls): ls <desired-path> Rather than the common: ls /your/path/here
-
When upgrading a dependency for a security issue, we might upgrade and move on: npm install <dependency>@<version> But wait!
-
Today while reading the Rust Documentation, I encountered a fantastic UX touch.
-
Images in Hugo can be a bit tricky.
-
Sometimes I want to iterate on an alias.
-
Today I discovered these two Vim flags: vim -w log.txt file vim -s log.txt file The -w flag sends all keystrokes in your session to log.txt.
-
I’ve been writing some non-printing characters to a file.
-
I was doing a Vite demo last week, I changed some markup, and visited the local web server.
-
Prettier formats code in fenced code blocks!
-
If you’ve been writing TypeScript for a while, you might have written code like this: // utils.ts export type Color = 'red' | 'blue' | 'green'; // app.tsx import {Color} from '.
-
New Vite TypeScript/React apps create themselves like this: createRoot(document.getElementById('root')!).
-
I often reflect on a conversation from years ago with a former Army boss.
-
Vite’s default port, 5173, is leet code for the project’s name: 5 = “V” (Roman numerals 😉) 1 = “I” 7 = “T” 3 = “E”
-
To load Cursor with context of the current directory, use: cursor .
-
Today I learned about the Outbox Pattern.
-
Always leave something behind.