Guides, rants, and other scribbles.
Say that the world is changing, and you're the new stuff
Andy Raskin's brand framework paints a divide, prompts action, and is dead simple to retell.
Time zones: It's not just «use UTC, man»
«Hi. This is my first time at Developers Anonymous. My name is Tomas, I'm a coder and I've built a calendar»... Time zones are f***ing hard. The last 6 months I've reported and fixed bugs in Moment, dayjs, date-fns-tz and React Aria.
Don't abbreviate variable names
Variable name: don't make them short and cryptic – let them be as long as they really are. Sidenote: Subscribe to that channel, it's great.
Don't write comments
There is a consistent way of describing how a program should work, it is called writing code. Writing comments that describe how code work is usually an excuse for writing bad code. Exceptions: documentation/issue links, and sometimes bad code is required.
Test "commit driven development"
Writing smaller commits is a constant practice that I feel often pays off. The Primeagen's reflections on the topic is worth seeing (from 11:16, earlier parts are so so). Challenge: for your next feature, write commit messages first!
React.js: The Documentary
React.js: The Documentary is a 2015 documentary film about the React.js JavaScript library. Bring popcorn?
create-t3-applib
The easiest way to get started with the best tools for building a modern web app.
astro.buildlib
Build islands of interactive Svelte, React++ apps inside a static site. Perfect for building personal sites.
Typescript: don't use interfaces
Use types instead of interfaces in Typescript. Except when you have to use interface.
Typescript: do not use enums
Typescript enums are bad. Never use them, use a record as const instead. Note: This still applies after the 5.0 release with enum improvements (they are now bad instead of terrible).
No more CSS-in-JS
A foreshadowing about stitches, emotion and styled components dying off, and tailwind becomes emperor.
react.emaillib
Amazing. Crafting e-mails has been a remarkable pain in my butt several times. This looks like it could be a game changer.
State of JS 2022
Superb stats on the state of JavaScript. TLDR: NextJS still nice, Svelte is great, and watch Solid. Vite or Turbopack replaces Webpack. Playwright replaces Cypress. Turborepo replaces Lerna.
React Query, the complete tutorial
Comprehensive, well-written writeup of React Query. I've learned a lot about my favourite data fetching library.
The Grug Brained Developer
Hilarious text, just to the point on why thinking stupid about code is being very smart. HARD RECOMMEND.
The job of my boss: make me feel trusted
Extend the circle of safety to the outer parts of the organisation. When employees feels safe and trusted, they can spend their energy being creative and productive.
Take initiative beyond what is expected of you
«Guest leadership» is about taking responsibility to try to solve a problem or task that is not your own (alone), without needing an invitation to do so. Increase trust and ownership by giving your team the freedom to own the outcome and trust to solve things their way.
Always say what we try to accomplish
A good leaders repeats why and what we try to accomplish. So should issue trackers and code tools. Here's a short guide on integrating ClickUp with GitHub, so exactly that becomes simpler.
A Prettier JavaScript Formatter
While ESLint eliminated the need for people to talk about code conventions, Prettier can eliminate the need for people to think about code formatting. 10 000 thumbs up! I will never work for a company without autoformatting again.
React Conf 2017: A Prettier Printer
While ESLint eliminated the need for people to talk about code conventions, Prettier can eliminate the need for people to think about code formatting. 10 000 thumbs up! I will never work for a company without autoformatting again.
GraphQL: Designing a Data Language
GraphQL will replace REST, and the world will be a better place with end-to-end typing safety.
Chromes Awesome Developer Tools
A tour of the Developer tools: emulate network speed. emulate devices. JS debugger. console log timing. profiler.
slides.comlib
This replaces PowerPoint for me: native to the web, simpler, with an open-source variant.
Building a better Bootstrap
Many mini nuggets on CSS systems. cssstats.com, atozcss.com, sassmeister.com, thesassway.com
7 ineffective coding habits
Don't write comments, don't write off the line, don't make complex methods with many parameters, don't make complex methods with many parameters, don't do lousy encapsulation, testing should be a reflection of your functions.
Clean Code III: Functions
Functions should do 1 thing. And be short. With few args. Without comments.