Coding 🤯 of the day - GNOME terminal and iTerm2 support making links in the browser. And ofc there is an NPM package for that: https://t.co/7bCwplle3q
#nodejs#terminal#readcode
An nice way to disable the Live Reload (when it is needed it is really needed). It’s good to keep in mind the dynamic nature of JS. Also for being extra cautious with user’s content and XSS as potentially anything can be overridden / intercepted. On GH: https://t.co/iOTtK1tu72
@mrousavy Your layouts work the same on different iOS versions. In SwiftUI things can break/change on each iOS update. For example: https://t.co/6Z1dBuOlC8
Q: How would you keep the content of your template literal indented as if it is a part of your code, but then print it without extra spacing? A: `dedent`! .. Storybook’s code uses this implementation in TS: https://t.co/wA4VKDd7wt #readcode#typescript
If you need to print Webpack config (or any other complex data) to the console, you don’t need to import a new package which can serialize `RegExp` - actually `console.dir` can handle that. 💪
A good pattern to keep in mind to balance increasing complexity. Structure the code in "core" which provides the most basic functionality and "add-ons" which provide different enhancements to the core and can be switched on and off.
https://t.co/kemfJR1CDI
@Kelset@notbrent RN 63. Brownfield app with a zoo of Native, WebView and later RN. Some patches around the RN lib code. Feature teams are focused on product goals (and bug fixes). Platform team works on different improvements, not a high badwidth for RN version update. Upgrade in progress to 66.
Pretty cool trick with Gatsby - using a **remote** MD file (or any file) as a source node in addition to the files in the project. So you can reuse some README for your docs site or some output from some CMS. Neat.
https://t.co/Q7ZWY7DC4P
But in general this is quite nice trick. If you have some shared always increasing counter to make unique indexes, but then if you don't want to print the number, you can turn it to a "cool hash" by doing a base-52 conversion. 👍 (noted)
A little cute gem from the source of `styled-components`. Taking care to prevent some crazy ad blockers from removing your element just because there is an "Ad" in the className. Such things can only happen on Web 😄❤️
The good thing about learning a new technology while visiting an exotic place is that mental connection that may arise as a result. When I do some Android Native, I often remember Malaysia, where I was doing a course from Google on Android.😌😀
Nice little trick with React spotted while checking out source code of OSS. Using React Portals to put `meta` tag to the `head` while the component is mounted. #learningneverstops#readsourcecode
Testing Brave Search, liking it so far..
https://t.co/5JUJ6A20iW
With DuckDuckGo it was about 80/20, sometimes I didn't get good results on my search requests about coding, and checking the same request with Google gave me a useful link on the top of the list.