Twitter | Search | |
Jianhua Cheng
Frontend developer; Javascript; Golang(star to know it); React;
173
Tweets
286
Following
23
Followers
Tweets
Jianhua Cheng retweeted
Dan Abramov Jun 16
Replying to @dan_abramov
You might think only bigcos make custom tools. But a tool doesn’t have to be sophisticated. It can be a script you could write in a day. And at small and medium companies, even a little effort can yield a huge return. Because nobody optimized anything yet.
Reply Retweet Like
Jianhua Cheng retweeted
Dan Abramov Jun 16
Here’s a thing that I learned at FB that I wish I knew much earlier. Invest in building custom tools! For example, instead of waiting for an SPA build for an hour, you can cache partial build artifacts across the company.
Reply Retweet Like
Jianhua Cheng retweeted
Max Stoiber Jun 14
🎉 Super excited to announce styled-components v5 🔥💪💅 - 19% smaller bundle size ⚡️ - 18% faster client-side mounting 😱 - 17% faster updating of dynamic styles 💯 - 45% (!!) faster server-side rendering 🔥 - RTL support - No breaking changes! 🤩 👉 👈
Reply Retweet Like
Jianhua Cheng retweeted
Brian Holt Jun 14
I worked at a company that shipped microfrontends and I'd not recommend it. Even if you take great care it still leads to a lot of overhead and bloat. Their site now ships over 11MB of JS (1.7MB brotli'd). The worst part? The DX isn't even that great. Consistently problematic.
Reply Retweet Like
Jianhua Cheng retweeted
Jen Simmons Jun 12
I believe new HTML elements should go through a standards process, be debated by multiple parties (not one), be useful to most websites (pave the cowpaths), and be written in language that makes sense for HTML, especially for folks who don’t speak English well. So no on this.
Reply Retweet Like
Jianhua Cheng retweeted
Kent C. Dodds Jun 4
Assuming this code appears in a React function component, how many function allocations are happening with this code on each render? const a = () => {} And how many are happening with this code? const a = useCallback(() => {}, [])
Reply Retweet Like
Jianhua Cheng retweeted
Jeff Atwood May 31
Two scientists walk into a bar. The first says, “I’ll have H2O.” The second says, “I’ll have H2O too.” Now there's only one scientist.
Reply Retweet Like
Jianhua Cheng retweeted
Sarah Drasner May 10
I just learned about the <base> element, I didn't know about it so I thought I'd share: You can do like: <head> <base target="_blank"> </head> And use base to set properties for all links in the document. Here, every link will open in a new window:
Reply Retweet Like
Jianhua Cheng retweeted
Mathias Bynens Apr 9
In Chrome, any JavaScript files in a service worker cache are bytecode-cached automatically. This means there is 0 parse + compile cost for them on repeat visits. 🤯
Reply Retweet Like
Jianhua Cheng retweeted
Addy Osmani Apr 6
Native <img> lazy-loading is coming to the web! <img loading=lazy> defers offscreen images until the user scrolls near them. Shipping in Chrome ~75
Reply Retweet Like
Jianhua Cheng Mar 25
Wherever you place yourself, it's good to know more about what should a good tech leader do. It helps us build a clear career planning, we decide where we should go base on these great experiences of "the elder".
Reply Retweet Like
Jianhua Cheng retweeted
Tobie Langel Mar 23
I just published "W3C doesn’t help its invited experts. It should." on Medium:
Reply Retweet Like
Jianhua Cheng Mar 22
"The question isn’t open-source-vs-proprietary, but open-source-vs-business-focused."
Reply Retweet Like
Jianhua Cheng retweeted
Guillermo ▲ Mar 21
Pretty incredible: every member of your team *gets their own staging URL* for every `git push` or `now` deployment… No more "who broke staging", but also no more "please stage it". Fully automated.
Reply Retweet Like
Jianhua Cheng retweeted
Eric Elliott Mar 17
Deep experience with one language beats superficial experience with 5 languages.
Reply Retweet Like
Jianhua Cheng Mar 14
"But one can often be in doubt about the effect of a word or a phrase, and one needs rules that one can rely on when instinct fails. I think the following rules will cover most cases: Never use a metaphor, simile, or other figure of speech which you a..."
Reply Retweet Like
Jianhua Cheng Mar 4
How to master advanced TypeScript patterns
Reply Retweet Like
Jianhua Cheng Feb 28
Replying to @leihuang_dev
哈哈,好的 😆
Reply Retweet Like
Jianhua Cheng Feb 27
Replying to @leihuang_dev
冒昧打扰🤣 越了解的多越觉得应该好好学习数学了……这书适合自学嘛? 顺便分享下一个美妙的数学应用例子:
Reply Retweet Like
Jianhua Cheng Feb 19
This let me remember to react, the setState callback, the unstable_xx methods and so on. A well-designed system limits the abilities you can do for the sake of the overall effect it brought.
Reply Retweet Like