(find me on bl**sky)

san francisco
logging lets you travel through time debuggers let you travel through space
19
75
533
Timeless software engineering skills: 1. Not feeling scared to change code you didn't write 2. Empathy for your users and for your collaborators 3. Ability to communicate ideas clearly I'd hire someone with these skills any day.
97
1,511
6,415
no I actually did not want to search google for `localhost:8080`, thank you
55
406
4,978
life hack: console log function that auto-indents based on the depth of your call stack
65
1,111
5,095
Knuth check
92
234
4,756
To the YouTube commenters saying me being a “thing in a dress” takes away from the content of my keynote: I was React’s #1 committer for its first 5 years, and now I manage the team. This content wouldn’t _exist_ without me. Would be cool if you respected me as a person too.
205
583
4,537
365/365
113
81
3,938
concept: german bakery named Gluten Tag
55
263
3,638
Just got out of an interview during which the candidate searched Stack Overflow and copy-pasted some code… from an answer I wrote. (They didn’t notice.)
122
240
3,275
I have 10 years of react experience
66
118
3,294
788,887
Last week, I was promoted to head of engineering at work!

ALT woman displaying anxiety

123
20
3,180
Today's my last day at Facebook. I'm gonna miss working on React full time, but I'm excited to try something smaller and new: I'm joining @humuinc next week as an engineer.
198
132
3,038
Today's props go to Airbnb, who kindly edited my new name and pronouns into all the past reviews I've received from hosts – so new hosts who read them aren't confused. I feel appreciative of processes that aren't garbage to trans people.
13
199
2,256
My programming strategy: if something can be fixed or made better in less than 15 minutes, don’t file a task for later or for someone else: just do it!
82
477
2,102
Unpopular opinion: moving "constants" that are used once to the top of the file is often less readable/maintainable than leaving them inline
116
129
1,900
I’m 26 today! 🎂 happy birthday to me
243
16
1,774
The real “clean code” is code that is easy to understand, verify, and change. Which often means more repetition and less abstraction.
32
344
1,770
Don't listen to people who tell you your tools are bad. If you're happy with your tools and they're helping you build great stuff, that's all you need.
28
311
1,618
my rule for .reduce(): only use it when the result has the same type as the items and the reducer is associative, like .reduce((a, b) => a + b, 0) ✅ summing some numbers ✅ multiplying some numbers 🚫 building up a list or object 🚫 just about anything else (use a loop)
101
267
1,652
My one tip for organizing code: If two files are usually edited together, combine them into one. That is, organize your code to minimize the number of files (or directories) that the average commit needs to touch.
63
266
1,599
> aGkgdHdpd… me: I have no idea what this is > aGkgdHdpdHRlcg== me: oh it’s base 64
21
188
1,563
In this community we respect all people. If you have a problem with that, you don’t have to use React.
31
123
1,557
Simply have no feelings, write clean code, and you will be successful here
22
69
1,522
if I was starting a new company I’d seriously consider using Rails not because I agree with most of their technical decisions (I actually disagree with a lot of them!) – but because having a Polished, Proven Universe That Works is _super_ valuable
51
128
1,494
dinner with the @reactjs team!! first time I’ve seen the whole team in one place since 2016 💖💖
23
38
1,448
instead of frontend vs backend as the two Main Types Of Engineers maybe we should talk about low-level code vs high-level product vs infra external users vs internal users
26
143
1,399
Really excited to share with all of you: I'm trans! Today is a great day because I get to start being me. 💖 benalpert.com/2017/08/26/hi-…
135
45
1,332
Good API design is the hardest part of building libraries.
23
182
1,310
at facebook someone told me, “coding is the most important part of being an engineer, which is why 2/4 of the onsite interviews are coding”, which only seems like a worse and worse take as I think about it each passing year
32
55
1,240
Someone asked me today about the differences between Google’s and Facebook’s engineering cultures. Based on what I know, here’s what I said:
17
244
1,237
hey it’s been two whole years since I came out! 🥳💖🏳️‍🌈
33
5
1,118
Happy 5th birthday, React!
15
190
1,147
literally just got an email offering me $600 if I send a pull request to their project because of the visibility it’ll give them what is the world coming to
77
157
1,134
After getting back into app dev, I feel like the React team has * underestimated how much code in apps is related to data fetching/management * overestimated how complex data reqs for most apps are. At least, I did! Now feeling like a read only react-fetch pkg _would_ cover 95%.
46
101
1,106
he didn’t notice 500ms of latency in his own workflow; he was investigating the source of high sshd CPU usage reported in performance monitoring tools
5
40
1,027
38,683
you can see me today because it’s #TransDayOfVisbility! being me is one of the best things I’ve ever done 🏳️‍🌈
10
29
1,004
I think it's time for a new profile picture
36
4
995
google cloud support, week 1: are you sure you’re not using it wrong week 2: ok we’re looking into your problem week 3: we’re still looking week 4: still looking week 5: it’s been a month so we don’t have the logs any more to investigate. case closed! ✅
26
41
980
What you should take away from this: In a typical app, tons of components only rerender when there’s new data. This will let you run those components on the server instead. Which reduces client bundle size. A lot.
As 2020 comes to an end we wanted to share a special Holiday Update on our research into zero-bundle-size React Server Components. The demo is available now whether you want to play with it during the holiday, or when work picks back up in the new year. reactjs.org/server-component…
23
179
986
Returning from a 1-week vacation is the worst length because everyone will have just waited for you to come back instead of figuring their shit out another way…
12
34
929
That React Component Right Under Your Context Provider Should Probably Use `React.memo`
32
143
954
who do I need to bribe to make the next apple watch have a co2 sensor? it would be a gift to global public health
15
56
839
using a monorepo solves many code management problems, and in turn it does introduce some of its own. but ime, the problems caused by a monorepo can be tackled by a single centralized team, whereas the downsides of many repos end up slowing everyone on a team down slightly
37
144
876
Hi! Watch my talk from last week's React Conf! It's about how to build your own React renderer. React DOM? React Native? React <whatever you want>! piped.video/watch?v=CGpMlWVc…
28
144
883
Excited to say I'm now considering new job opportunities! I was an early user of React, managed the team at FB, and recently finished a VP Eng role at Humu. Now I'm looking to join a diverse, kind, hypercompetent team, with a role where I can empower and upskill engineers.
17
111
842
213,558
👀 Looks like the React Devtools extension on the Chrome webstore now has over 1,000,000 users. That's over a million developers using @reactjs! 🎉
18
137
849
Working at a 50-person startup, I feel like the most important things I can spend time on are building the right culture and habits on our team for the future. Feels way more important to me than any of the actual product decisions.
24
75
822
Using fancy words instead of simple, common ones makes things harder to understand. Your writing will be clearer if you stick with a small vocabulary.
40
151
822
I'm shocked global calendar optimization is still Not A Thing. * Need a room all day, but it has a 30min block already? * Need to meet w/ 7 people, but every slot has _1_ person with a conflict? * Back-to-back mtgs on opposite sides of an office? Computers should solve this. 🙈
31
52
773
TIL: `background-color: currentColor` pulls the element's text color! Works on all modern browsers (IE9+).
13
84
744
instead of making a rainbow logo for pride month, make it so people can easily change their name *everywhere* it appears in your products looking at you @Spotify with the unchangeable usernames 😠
14
73
672
my new favorite thing is how every language has its own little abbreviation of "for example" e.g. – English p.ej. – Spanish p.ex. – French z.B. – German
73
75
730
Some people seem impressive on the internet but are disappointing when you get to know or work with them. Dan's the real deal. A great person, and talented too. A++, would work with again
2
26
718
At Facebook we often ended up preferring GraphQL types based more around a "view model" rather than a pure, normalized "model" for a few reasons:
12
139
708
Replying to @sophiebits @TkDodo
good news re Suspense, just met w/ @rickyfm @en_JS @acdlite * we care a lot about SPAs, team misjudged how many people rely on this today * still recommend preloading but recognize not always practical * we plan to hold the 19.0 release until we find a good fix more to come
20
98
731
299,207
what
41
23
669
sure React 16.6 is good but just wait until you see what we’ve got for 16.7! I think I’m more excited about 16.7 than any release before it 😀
22
83
685
More than anyone else I know, I like to fix stuff. Especially in code I didn't write. In this post, I explain why and how. sophiebits.com/2018/12/03/ya…
30
104
677
luv 2 find a stack overflow answer I wrote 7 YEARS AGO that tells me exactly what I want to know
16
30
669
How to build a good test suite: 1. Every time you fix a bug, add tests that would have caught it 2. Wait a year or two (There is no step 3.)
10
224
665
Instead of Google forcing AMP on people, someone should make guidelines for writing fast webpages and a way to statically verify if pages follow them. Then G can add an icon in search results to mark fast pages. You could call that standard Accelerated Mobile Pages or something.
23
66
655
If we wrote official React guides with examples and “best practices” for topics like: animations, forms, error handling, data management… what would you most want us to cover? (More specific suggestions are better!)
132
62
657
Heading to Google HQ this afternoon to host a Q&A with their engineers about building with React!
26
52
629
If I have to choose between building a community that attracts (a) a diverse group that cares about the consequences of their words and actions, and (b) only people who aren’t offended by anything, I know I’ll choose the former every time.
24
81
594
Looks like about 1 in 4 developers (professional or not) use @reactjs according to the @StackOverflow survey. And 3/4 of them would happily use it again! 😎
18
60
623
ah yes, the six genders
12
51
599
Whenever a rule is added in a team, first ask: Will the existence of this rule discourage future people from using their human judgement to make smart decisions in nuanced situations?
9
141
600
people say “manager readmes” are cocky+prescriptive, but if I want to tell things like * your health is more important to me than your work, or * if you’re unhappy please lmk and I’ll try to help even if that means you leaving the team why _shouldn’t_ I write in a durable doc?
28
40
603
I’m really enjoying my new job, but I miss working on React a lot
15
4
618
good day to be a woman
9
2
586
oh yeah so you’re a feminist? go ahead, name three women
50
72
536
and may I present: the fix I just wrote.
28
48
596
25% of professional developers use @reactjs. At least, according to Stack Overflow's 2019 Developer Survey (17,800 out of 72,500). Wow.
12
71
597
You should apply for jobs that list some qualifications you don’t have. But also: if you do meet all of the preferred qualifications in a job ad, there’s a good chance you are overqualified.
8
118
595
is there anything worse than a mobile website that scrolls horizontally (just a little bit)
29
15
582
feeling grateful this weekend for all the amazing devs on my team. in alphabetical order:
11
27
589
new profile pic! photo credit @emilymhorsman
15
1
562
in uncertain times, remember to focus on the important questions
5
55
542
57,577
when you try out React 16.7 alpha I think you‘re gonna be totally hooked
21
54
578
I can’t believe I missed the date but: as of this past weekend, it’s been a year since I came out as trans! I’m much happier now. 💖 (Supporting trans folks is good and saves lives!)
12
5
545
Feelin' bored tonight so I just wrote and published a new post: why do code reviews?sophiebits.com/2018/12/25/wh…
16
179
560
13
42
558
What if React errors had the full props objects in each component stack?
32
18
555
I used to say "I believe in capitalism" to mean "I think markets are sometimes good at optimizing for things" but then I realized that most other people who say that mean closer to "if you're starving, you deserve it" – so I stopped saying it
15
33
519
tell me you use z-index without telling me you use z-index
13
21
530
if A players hire A players but B players hire C players… who hires B players?
65
50
543
is this what it feels like to be an influencer
11
3
511
¯\\\_(ツ)\_/¯ that's how you shrug in markdown
11
47
504
WTB a lint rule that detects const [processedData, setProcessedData] = useState(); useEffect(() => { let processed = /* do something with data */; setProcessedData(processed); }, [data]); and tells you to use useMemo instead.
15
57
522
the jar of pickles I just bought says Serving size: 1/2 pickle so I’m not convinced the person who wrote it actually knows what a pickle is
14
21
474
I wonder if React should warn against <button> without a type. it's type="submit" by default but that's often not what you want!
48
37
499
Email in my inbox. Think I should take them up on it? 🤔
22
17
495
Why does everyone claim GitLab is the obvious GitHub alternative? My mind goes to BitBucket.
65
65
472
Making your code unnecessarily general can really hurt maintainability because it's less likely to fit your future needs. Corollary: Third-party libraries, unless supremely well designed, also often hurt maintainability because you're likely to outgrow them.
14
96
485
1. first full year of being a manager (imo it went pretty well)! 2. first full year of being a lady (or rather, being treated as one)! 3. made some new friends (whom I love a lot)!
13
5
465
shot 2 ✅ please get it if you can – and I’m hoping that our government decides to offer help to folks in India and elsewhere who desperately need it
15
3
467
if you watch the position of the blue bubbles here, you can see they lag behind the window resizing 🙈 if you can, make your 'resize' handlers 60fps so you don't need to throttle!
18
40
473