Swizec Teller Profile Banner
Swizec Teller Profile
Swizec Teller

@Swizec

Followers
16,526
Following
1,493
Media
10,133
Statuses
87,307

Writing Scaling Fast,a book on lessons learned from ~15 years of engineering in tech startups. blog ⏵ latest book ⏵

San Francisco
Joined July 2008
Don't wanna be here? Send us removal request.
Explore trending content on Musk Viewer
Pinned Tweet
@Swizec
Swizec Teller
2 years
Ignore the framework wars, learn: - data modeling - domain modeling - system design - managing complexity - syncing state - teamwork
30
55
401
@Swizec
Swizec Teller
5 months
Unpopular opinion: Telling young people to work-life balance is actively harmful. Your 20’s are the best time to grind. You have lots of energy and few responsibilities. a good 20’s grind creates the space to chill in your 30’s and beyond
305
250
3K
@Swizec
Swizec Teller
3 years
Scar a developer with 1 word, I'll start timezones
612
177
2K
@Swizec
Swizec Teller
1 month
Nothing teaches you software architecture like dealing with your own crap from 3+ years ago.
Tweet media one
30
181
2K
@Swizec
Swizec Teller
4 years
this is how developers solve problems
Tweet media one
34
211
2K
@Swizec
Swizec Teller
23 days
this is the stack I would bet on for the next 10 years works great, is boring, lots of companies use it
Tweet media one
164
82
2K
@Swizec
Swizec Teller
2 years
This one weird trick reduced a #javascript library from 160MB to 64KB 🤯
Tweet media one
21
151
1K
@Swizec
Swizec Teller
4 years
The curse of the format A blog is free A pdf is an email A book is $30 A course is $300 A coaching is $3000 A consulting is $30000 They all have the same content
32
159
1K
@Swizec
Swizec Teller
2 years
What if software engineering paid royalties? Like $0.00001 every time your function is called 🤔
151
51
884
@Swizec
Swizec Teller
2 years
I wish more engineers thought of APIs as abstractions instead of pass-thru access to the database
22
90
799
@Swizec
Swizec Teller
1 month
Why are engineers so surprised to learn that they're meant to deliver business results bigger than their salary?
50
36
800
@Swizec
Swizec Teller
2 years
The easiest way to write unreadable code is by splitting your functionality across 20 clean small functions.
52
80
752
@Swizec
Swizec Teller
8 months
It's amazing how often the senior engineer special sauce is that they read the docs.
26
65
718
@Swizec
Swizec Teller
5 years
OH: We bend over backwards for the 1% that uses IE11 and we do nothing for the 5% using assistive devices #a11y 🤔
10
238
709
@Swizec
Swizec Teller
4 years
The hardest skill to learn as a software engineer is leaving bad code unfixed because you're working on bigger things right now.
16
100
685
@Swizec
Swizec Teller
2 years
Your code doesn’t matter. But your architecture, domain modeling, data structures, and organization do. this isn’t poetry, it’s a 12 book epic saga
14
70
646
@Swizec
Swizec Teller
5 months
How do you maintain a high quality engineering culture without relying on a few caring individuals burning out?
76
51
637
@Swizec
Swizec Teller
3 years
Databases are snake_case! API layer is snake_case! JavaScript is camelCase! How many engineer decades have we lost as an industry on converting between these formats for zero benefit?
54
50
600
@Swizec
Swizec Teller
2 years
this line of code beats any slugify library I ever tried
Tweet media one
14
41
565
@Swizec
Swizec Teller
3 years
Are there any web developers left on twitter who *dont* create tutorials and courses on the side?
85
10
565
@Swizec
Swizec Teller
3 years
Today is my birthday which means I've been coding for 25 years. A quarter century 😱 Here's 25 lessons I've learned about code. In no particular order. 👇
18
98
558
@Swizec
Swizec Teller
4 years
You think the American dream is dead? 🇺🇸 5 years ago I came here with a 60k salary, 5k in the bank, and $0 side hustle. Total leap of faith. Now I have a 175k base, 6 months in the bank, a 60k side hustle, and 130k savings. 💪 Shut up and work.
Tweet media one
116
28
548
@Swizec
Swizec Teller
4 years
Screw web performance, just wait a little 😈 This is the same React project running 4 years apart. Didn't even update dependencies✌️
10
56
551
@Swizec
Swizec Teller
3 years
The weird thing about TypeScript is how easy it is to learn. Spend an afternoon to read the docs and you’re ready. No gotchas, no weird stuff. Add 2 weeks of using TS on a real project and you can’t imagine ever going back to plain JavaScript.
26
56
524
@Swizec
Swizec Teller
2 years
TIL about <datalist> This bit of HTML gives you a full featured accessible typeahead search field 🤯
Tweet media one
16
50
512
@Swizec
Swizec Teller
3 years
Achievement unlocked: Zero to 6-figure savings in 4 years 🤘 🎉 Yes I know this is in bad taste but fuck it I get to celebrate my life achievements even in 2020
Tweet media one
35
1
478
@Swizec
Swizec Teller
2 years
but tell me again how web metrics are vital
Tweet media one
19
58
457
@Swizec
Swizec Teller
4 years
Tweet media one
6
27
434
@Swizec
Swizec Teller
5 months
Beginners, please, just build stuff. Any stuff. That’s all you need. Learn just enough to make the next step in your project. Forget learning paths, they’re all dumb. Reality doesn’t work that way. Enjoy the mess.
@AdamRackis
Adam Rackis
5 months
There’s a variation on this theme where people tell devs trying to land their first job to “start contributing to open source” I’m always stunned how terrible that advice is Hungry newbies should be hitting up local recruiters, not hanging around OSS repos (unless they want to)
17
17
207
8
62
353
@Swizec
Swizec Teller
2 years
My sister got into Joe Rogan and stuff, became vaccine sceptical, and mentioned the other day that “It’s not entirely clear who’s the bad guy in this Ukraine thing” And like … what do I do? How do you fix a person on this path?
68
11
369
@Swizec
Swizec Teller
11 months
whoa I legit did not think this worked 🤯 time to replace a bunch of useEffect with update-state-during-render
Tweet media one
19
12
363
@Swizec
Swizec Teller
3 years
React components are views Hooks are controllers React query (or graphql) is models 🤔
15
30
363
@Swizec
Swizec Teller
5 years
Omg I just built the simplest way to add authentication to your React app. Should seriously open source it Handles everything for you. Users, login forms, redirects, sharing state between components. Everything
Tweet media one
15
29
357
@Swizec
Swizec Teller
4 years
6 months of building your own app on the side will teach you more about software engineering than 6 years at a job Especially about what's important.
20
54
341
@Swizec
Swizec Teller
5 months
Wanna see something wild? This is a search-as-you-type that uses navigate() on every keypress. Keeps all important state in the URL. Page reload and browser navigation always works. thanks to TanStack Router 🤘
35
12
340
@Swizec
Swizec Teller
2 years
Immutability isn't free – or how we took an API endpoint from 16s to 3s 🤘 and you thought low level #JavaScript array performance doesn't matter. HA!
12
54
331
@Swizec
Swizec Teller
6 months
You're building a new greenfield React app. You can't use NextJS because it would make your devops team cry. What do you use?
220
14
332
@Swizec
Swizec Teller
3 years
A hill I will die on 👉 stop using CONSTANT = 'constant' Use the type system instead.
Tweet media one
34
26
325
@Swizec
Swizec Teller
1 year
If anyone asks you about .apply vs .call in an interview, ask if that's important in their codebase. if yes, get up and leave
13
15
325
@Swizec
Swizec Teller
2 years
Why doesn't URLSearchParams drop undefined values? would be nice
Tweet media one
22
16
311
@Swizec
Swizec Teller
2 years
This is your code on /utils not even once
Tweet media one
17
31
302
@Swizec
Swizec Teller
2 years
OMG LOOK WHAT I GOT IN THE MAIL! It’s my actual green card, permanent residence and all 🥳🥳🥳
Tweet media one
26
1
294
@Swizec
Swizec Teller
4 years
Postgres is the perfect database All it needs is an ORM for Node/JS so people can get off Mongo and join us in the future
41
19
285
@Swizec
Swizec Teller
5 months
For the record: When I say "grind" I mean on things that are beneficial to your long-term goals. Not staying at the office late on Friday writing bugs nobody wants.
14
11
270
@Swizec
Swizec Teller
5 years
Omg I just opensourced the simplest way to add authentication to your React app. Handles everything for you. Users, login forms, redirects, sharing state between components. Everything 👉 github 👉 try 👉
Tweet media one
16
46
264
@Swizec
Swizec Teller
1 year
Yes.
Tweet media one
9
24
251
@Swizec
Swizec Teller
2 years
TypeScript is a unit testing framework in disguise.
19
15
248
@Swizec
Swizec Teller
5 months
Another win for tanstack/router This modal has a URL. You open and close the modal by navigating 😍
35
10
246
@Swizec
Swizec Teller
2 years
TIL this works #javascript
Tweet media one
13
29
235
@Swizec
Swizec Teller
4 months
What "data driven" looks like in practice
Tweet media one
3
23
230
@Swizec
Swizec Teller
2 years
Tweet media one
3
9
225
@Swizec
Swizec Teller
2 years
Funfact about conspiracy theories (also religions): They largely exist because humans would rather believe someone, anyone, is in charge than accept that reality is inherently random and uncontrollable. Alas I can’t remember where I read that
11
11
228
@Swizec
Swizec Teller
4 years
A guy once asked for a refund because "$49 is way too much for material I blazed through in 1 hour" Dude, that's years of experience you absorbed in 1 hour ... Who are these people that find $49 isn't worth saving hundreds of hours? 🤨
17
10
221
@Swizec
Swizec Teller
1 year
Is Staff Engineer just what Senior Engineer used to mean 20 years ago 🤔
22
4
221
@Swizec
Swizec Teller
3 years
TIL you can use optional chaining on function calls 🤯
Tweet media one
12
26
210
@Swizec
Swizec Teller
4 years
Tweet media one
5
17
208
@Swizec
Swizec Teller
1 year
why engineers avoid state machines
Tweet media one
8
17
207
@Swizec
Swizec Teller
5 months
There is some math to support this. A person who saves $1k/mo for 7 years then stops saving and waits 20 years, will have more money than a person who waits 7 years then saves $1k/mo for 20 years. compound interest is weird like that
17
6
195
@Swizec
Swizec Teller
4 years
✍️ 5 years of books & courses, or how I made $369k on the side Includes what worked and what didn’t — mindsets, tactics, and strategies. Everything I tried plus how much it cost and the time it took. No bullshit enjoy ❤️
18
14
200
@Swizec
Swizec Teller
5 months
I think @tannerlinsley has done it again. TanStack Router is the modern React for the rest of us. All the power of a Remix or a NextJS with none of the server-side headache (unless you want it) 🤘
3
14
198
@Swizec
Swizec Teller
2 years
avoiding edge cases is an under-rated skill
Tweet media one
10
17
192
@Swizec
Swizec Teller
3 years
Writing an article about using React Query for client-side computation and something clicked: you can use fetch() to parse data urls 🤯 no HTTP request
Tweet media one
4
14
193
@Swizec
Swizec Teller
2 years
It’s a JavaScript framework, not an identity.
8
7
186
@Swizec
Swizec Teller
4 years
🤔 Anyone ever seen an API that follows this part of REST?
Tweet media one
57
22
187
@Swizec
Swizec Teller
2 years
it me
Tweet media one
1
20
188
@Swizec
Swizec Teller
2 years
important video
9
24
181
@Swizec
Swizec Teller
2 years
@MatanLurey I mean “can you write html” is pretty crucial to implementing webapps
6
0
179
@Swizec
Swizec Teller
5 years
Some fun stats from product sidehustle land 👇 Since March 2015 2695 hours 1.8 hrs/day average 3-ish products ~2800 sales $139,208 revenue post fees $81,767 expenses $21/hour 🤔 This must be why most people share only the revenue numbers #open
15
20
170
@Swizec
Swizec Teller
5 months
I tried something dumb and it didn't work 🥳 Did you know Vercel has a 14kb limit on URL length? I know that because I'm a bad person Gzipping your params doesn't work. The stringified binary gets even longer than the original input. I'm gonna have to rearchitect the app 😅
Tweet media one
25
2
173
@Swizec
Swizec Teller
2 years
TypeScript syntax is easy to learn. But the value of #TypeScript comes when you use it to describe your domain model. You can't learn that from a tutorial.
3
21
166
@Swizec
Swizec Teller
2 years
@diegohaz @AdamRackis The lack of excitement you see means that React has won. It crossed the chasm. Hard. No longer the exciting toy for early adopters, React has morphed into a reliable workhorse for the pragmatic developer who has a job to do. Like Java.
9
4
168
@Swizec
Swizec Teller
3 years
As promised, a working demo of React 18's new startTransition feature ✌️ Now with more insight into WHY this feature is so exciting and how it improves your apps. Enjoy ❤️ read 👉 try 👉
6
38
164
@Swizec
Swizec Teller
3 years
Folks this is it, Serverless Handbook is available on Amazon 🚀 👉 If you've been thinking about diving into modern backend, this is the book for you thread for details 👇
18
34
157
@Swizec
Swizec Teller
4 years
It's crazy how many engineers see their job as "Get spec, write code" NO! Your job is to work with domain experts, add software expertise, and design solutions to fuzzy problems. Writing code is the boring part.
11
31
165
@Swizec
Swizec Teller
2 years
A tech career lasts 30 to 40 years. Why do we only talk about the first 5?
24
14
161
@Swizec
Swizec Teller
7 years
Great description of entrepreneurship
Tweet media one
2
110
161
@Swizec
Swizec Teller
3 years
"types are documentation" yeah right
Tweet media one
11
4
159
@Swizec
Swizec Teller
2 years
Can’t stop thinkint about that graph @swyx shared in his talk .. 84% of production #javascript is jQuery
15
5
159
@Swizec
Swizec Teller
4 years
How to become a millionaire if you can code 1. Get coding job 2. Quit and new job every 2 years – 30% raise 3. Put 20% in index funds 4. Wait 16 years Start wealth: $0, start salary: $100k End with $1,238,883 Start at 25, retire by 41. But ain't nobody talk about *that* 🤔
Tweet media one
23
27
153
@Swizec
Swizec Teller
4 years
GraphQL solves every problem you've ever had talking to APIs on the frontend. Try to switch to GraphQL and your team thinks it's a joke. Rewrite our entire app? oh you jokester. 🤣 React Query is the perfect middle ground ❤️ thanks @tannerlinsley
10
22
153
@Swizec
Swizec Teller
8 months
🤨
Tweet media one
30
12
153
@Swizec
Swizec Teller
2 years
This comment is the best. There’s always something you can do
Tweet media one
1
36
149
@Swizec
Swizec Teller
3 years
Friend of mine just went from €28k to €116k by switching jobs to a remote first US company. And Europe wonders where all the engineers at 🤣
8
5
147
@Swizec
Swizec Teller
3 years
@tannerlinsley @kentcdodds That's because ISO strings are in UTC. Looks funny but it's one of the most consistent APIs in JavaScript. Dates are local time, ISO strings are ISO strings.
5
3
142
@Swizec
Swizec Teller
2 years
When and why did border: 1px solid red become the console.log of CSS?
38
9
144
@Swizec
Swizec Teller
2 years
officially a tech lead 🥳
13
0
137
@Swizec
Swizec Teller
2 years
When my girlfriend isn’t around to keep me normal I start reading research papers in public like some weirdo
Tweet media one
10
3
138
@Swizec
Swizec Teller
4 years
Developers: Hey Swiz why don't you like Vue? Me:
Tweet media one
37
12
137
@Swizec
Swizec Teller
3 years
Why are engineers so afraid of using state machines? is this really easier 🤨
Tweet media one
18
13
136
@Swizec
Swizec Teller
3 years
Uncomfortable truth: What gets you a junior job, won't get you a senior job. 90% of advice online is for juniors
5
7
136
@Swizec
Swizec Teller
3 years
My course helped someone go from $15/h to $175/h 😱
Tweet media one
3
2
133
@Swizec
Swizec Teller
5 years
About to send this email to 10,000 software engineers. Wish me luck
Tweet media one
3
16
132
@Swizec
Swizec Teller
3 years
@jlongster Just the difference in the culture of "PR is a core, if not most important, part of my job" versus "PR is that shit I do for others" makes a huge difference
3
6
134
@Swizec
Swizec Teller
6 years
LEARN WHILE YOU POOP: Why you should learn React 🧐 Hi 👋 I’m trying something new and need your feedback. What do you think of this as a format for a daily 2min video? No pressure learning at 2 minutes per day.Start with WHY React all the way to a React 16.3 master in a month.
11
17
133
@Swizec
Swizec Teller
1 year
Are you sure your app needs horizontal scaling when a consumer *laptop* with 96GB of RAM exists for $4k?
Tweet media one
13
6
132
@Swizec
Swizec Teller
3 years
Unpopular opinion: You're hired to get results, not to do work.
9
9
133
@Swizec
Swizec Teller
1 year
8 years ago today I moved to USA with 1 suitcase, 1 carry-on, a teddy bear, and a 6mo business visa. The plan was simple: “I’ll figure out how to stay when I’m there” so far so good
Tweet media one
8
3
131
@Swizec
Swizec Teller
7 years
I'm turning 30 😱 So for 1 day 👉 Learn everything I know about React, Redux, D3v4, MobX, ES6+ and more for just $30
14
28
123
@Swizec
Swizec Teller
2 years
”Should I quit my coding job to learn a new stack?” No. You will learn more in a year of solving real problems with real stakes than 2 years of pet projects.
6
6
124