Scott Warren (@realscottwarren) 's Twitter Profile
Scott Warren

@realscottwarren

Frontend Engineer

ID: 278437133

linkhttps://scottwarren.dev calendar_today07-04-2011 08:24:49

1,1K Tweet

80 Takipçi

196 Takip Edilen

Cory House (@housecor) 's Twitter Profile Photo

I review a LOT of React code every day. Half my job is repeatedly saying two things: 1. "This state isn't necessary. The values can be derived from other state/props." 2. "This useEffect isn't necessary. The values can be derived on each render instead."

Shayan (@imsh4yy) 's Twitter Profile Photo

You probably never heard of `ws4qlite` before. It turns SQLite into an HTTP server and gives you a RESTful API to interact with your database. It comes with auth + backups and much more out of the box. I wrote a guide for it: selfhosthq.com/sqlite/ws4sqli…

You probably never heard of `ws4qlite` before.

It turns SQLite into an HTTP server and gives you a RESTful API to interact with your database. It comes with auth + backups and much more out of the box.

I wrote a guide for it:
selfhosthq.com/sqlite/ws4sqli…
Matt Pocock (@mattpocockuk) 's Twitter Profile Photo

TS 5.5 makes your type guards SO much more composable. Writing an 'isArrayOfStrings' function before 5.5 came out would have been MUCH more verbose.

Seb ⚛️ ThisWeekInReact.com (@sebastienlorber) 's Twitter Profile Photo

Using components like <Card.Body> ? ❌ Avoid this: code can't tree shake 😅 - Card.Body = function() {...} - Object.assign(Card,{Body}) ✅ Use ESM-named exports instead! - export function Body() {} - import {Body} from "./card" Libs doing this well: Chakra, Radix

Using components like &lt;Card.Body&gt; ?

❌ Avoid this: code can't tree shake 😅
- Card.Body = function() {...}
- Object.assign(Card,{Body})

✅ Use ESM-named exports instead!
- export function Body() {}
- import {Body} from "./card"

Libs doing this well: Chakra, Radix
Fernando Rojo (@fernandotherojo) 's Twitter Profile Photo

To make your TypeScript server auto-restart for things like codegen'd files, add this to your .𝚟𝚜𝚌𝚘𝚍𝚎/𝚜𝚎𝚝𝚝𝚒𝚗𝚐𝚜.𝚓𝚜𝚘𝚗 and thank me later: "𝚝𝚢𝚙𝚎𝚜𝚌𝚛𝚒𝚙𝚝.𝚝𝚜𝚜𝚎𝚛𝚟𝚎𝚛.𝚠𝚊𝚝𝚌𝚑𝙾𝚙𝚝𝚒𝚘𝚗𝚜": { "𝚠𝚊𝚝𝚌𝚑𝙳𝚒𝚛𝚎𝚌𝚝𝚘𝚛𝚢":

sunil pai (@threepointone) 's Twitter Profile Photo

2 minute rant about how senior engineers should care more about the construction of the business than the implementation du jour