Everything you wanted to know about using Flow in a React/Redux stack β
Juriy Zaytsev 
@kangax
Ever tried, ever failed, no matter. Try again, fail again, fail better.
Juriy Zaytsev πΊπ¦βs Tweets
Gen-Z programmers are always chasing the new shiny thing like Tailwind and Svelte instead of learning CS fundamentals, like React
132
477
4,512
Show this thread
Logpoints in are great. Log messages to Console without console.log() calls in your code - persists across page reloads too!
0:16
154.9K views
29
642
3,220
As a blind person QR code menus have made my life 1000% easier. Please, please keep them as an accessibility option even if you return to having paper menus. I can actually read menus now.
Quote Tweet
Hear Hear. | Opinion: QR code menus are the death of civilization washingtonpost.com/opinions/2022/
74
2,697
13.1K
Show this thread
JavaScript version:
const arr = [7, 1, 4, 3, 2];
for (const elem of arr) {
setTimeout(() => console.log(elem), elem);
}
Output:
1
2
3
4
7
Quote Tweet
36
104
633
Show this thread
The new VS Code version comes with an experimental "sticky" mode and I quite like it! π
`"editor.experimental.stickyScroll.enabled": true`
Video alt: Scrolling in VS Code showing that function signatures are sticky.
0:17
234.3K views
142
1,517
8,521
Show this thread
Topics to follow
Sign up to get Tweets about the Topics you follow in your Home timeline.
Carousel
I wrote unit tests. And did indeed find a bug. In my unit tests.
38
91
1,594
Lmao. People are requesting Microsoft add a feature to the terminal (really just an env var you can set to disable an old annoying behaviour). And the replies from MS devs are killing me. π€£π€£
16
120
241
gonna steal this image and use it _constantly_. the life of an OSS maintainer
Quote Tweet
Replying to @saibotsivad and @Rich_Harris
nice yeah, great changes, and I really appreciate the motivations and communication
9
23
246
Every time I discover that zsh/oh-my-zsh has auto path expansion on TAB, I'm so amazed.
But it somehow doesn't stick. Maybe this time!
Video alt: terminal command "cd p/g/s/d" which expands to "cd Projects/github.com/stefanjudis/dotfiles" after pressing tab.
0:08
4.3K views
3
25
94
A tiny, but cool productivity boost tip in DevTools (Chrome/Edge):
π« Automatically generate and copy the `document.querySelector()` expression, with the right CSS selector for any nodeπ«
β‘οΈ Right-click the node > Copy > Copy JS Path.
β‘οΈ devtoolstips.org/tips/en/copy-e
read image description
ALT
10
17
ECMAScript excitement π
Congrats to on advancing the Hashbang Grammar proposal to Stage 4 today π
#!/usr/bin/env node
This makes engines ignore leading hashbangs in source text so runtimes don't have to.
Thanks to for championing this work π
1
16
84
Show this thread
Heads up everyone, it's Ninja Turtle weather
Quote Tweet
11:32am CDT #SPC Day1 Outlook Slight Risk: Across the Ozark Plateau through the Ohio River Valley go.usa.gov/YWq5
491
33.4K
312.1K
Show this thread
1
19
75
Stunning transcript proving that GPT-3 may be secretly a squirrel.
GPT-3 wrote the text in green, completly unedited!
read image description
ALT
70
1,086
4,728
Show this thread
Tired of having to wait for bundlers to update the page when adding console.logs?
Chrome has your back! You can dynamically insert console.logs without touching your code.
Just right-click on the line and choose "logpoint", enter the variables you want to log and hit Enter π€―
read image description
ALT
read image description
ALT
read image description
ALT
read image description
ALT
24
409
1,678
I want to start a twitter account that tweets quotes from specs.
Things like "The shadow-including root of an object is its rootβs hostβs shadow-including root, if the objectβs root is a shadow root; otherwise its root."
(source: dom.spec.whatwg.org/#concept-shado )
π₯΄π΅βπ«
17
13
127
If you are caught, just act natural and walk out of the room like nothing happened. ππΆπ€
0:09
4.5M views
From
Robert C Stern
163
2,534
9,057
Have you try out the full page-accessibility tree in yet?
Use that to understand what the browser actually presents to the screen reader.
Learn more:
π DevTools: developer.chrome.com/blog/full-acce
πΆπ½ Intro to a11y tree: web.dev/the-accessibil
0:27
19.2K views
7
152
574
An annoying thing some smart people do is to make a strong assertion about something when in reality they donβt really have strong feelings about it and they just want to learn from peoples counterpoints
26
8
146
Show this thread
is our ruling class made up of cruel sociopaths: yes. but are they huge dumbasses? also yes
Quote Tweet
Howard Schultz just unveiled his big plan to win back unionizing Starbucks workers: "We are going to be in the NFT business."
Show this thread
5
169
896
Quick HTML tip: I just discovered that `li` elements support a `value` attribute to configure the start of an ordered list.
read image description
ALT
21
368
2,687
Show this thread
PSA: please stop using strings concatination to create and edit URLs in JS
All major browsers have great built-in functionality for URL parsing & manipulation:
47
790
4,410
Show this thread
What to focus on during a code review? Don't waste your time with automatable formalities like code style. Rather spend your review budget on those aspects which will be hard/expensive to change later on. The "Code Review Pyramid" provides some guidance on what to look for.
29
795
2,256
Where do you see yourself in 5 years?
13
614
2,563
I love the Russian people. That is why I have to tell you the truth. Please watch and share.
The following media includes potentially sensitive content. Change settings
View
From
attn
44.5K
477.9K
1.3M
Show this thread
Holy shit. The Senate just unanimously passed a bill making daylight savings time permanent.
If this clears the House, no more changing the clocks twice a year.
Quote Tweet
Passed by Unanimous Consent, S.623: Sunshine Protection Act, as amended (to make Daylight Saving Time permanent) @SenRubioPress / @SenWhitehouse / others
924
6,046
21.3K
Show this thread
Could we have TypeScript with no build step? Could we have types in JavaScript? Maybe!
We're exploring bringing optional type syntax into the JavaScript language!
159
2,159
5,794
Show this thread
Oh, this is wild. Here's my native-speaker-but-not-a-lawyer translation - Russian websites will be effectively locked to Russian infrastructure (domains, hosting, resources) and forbidden from embedding any non-Russian JS (even if there's no alternative?)
twitter.com/krisnova/statu
read image description
ALT
read image description
ALT
This Tweet is unavailable.
7
19
48
Show this thread
GitHub uses the JavaScript library Mermaid (*) to render diagrams described via a text-based syntax.
(*) github.com/mermaid-js/mer
read image description
ALT
Quote Tweet
GitHub Markdown now supports diagrams! github.blog/2022-02-14-inc
2
38
149
nostalgic for how much of a pain it was to do arrays in javascript before we got the babel transform to use []
34
72
854
Show this thread
π‘ TIL β there's a new global JavaScript method to report exceptions to global error handlers.
If you're knee deep in your call stack you can handle exception so that things don't blow up, but also trigger global event handlers for e.g. error monitoring. π
#devsheets
read image description
ALT
9
93
484
Show this thread
distraction, focus
38
820
5,256
Show this thread
β Still using [].join(', ') for your strings?
β
Use Intl.ListFormat instead π
developer.mozilla.org/en-US/docs/Web
59
1,128
5,682
Finally!
Chrome 99 will ship with the HTMLInputElement showPicker() method, a canonical way to show a browser picker not only for dates, but also time, color, and files.
π developer.chrome.com/blog/show-pick
π² show-picker.glitch.me/demo.html
0:13
14.1K views
9
72
238
Show this thread







































