
Engineering
Ivan Akulov on Twitter: "21) /*#__PURE__*/ This is my favorite conference trick. If you have a function that you — call once, — store its result in a variable, — and then don’t use that variable – tree-shaking will remove the variable, but *not* the function. https://t.co/LfOwD59D2x" / Twitter
CSS Utility Classes and "Separation of Concerns"
Over the last several years, the way I write CSS has transitioned from a "semantic" approach to something more like what people call "functional CSS." In this post I explain how I got to this point and share some of the lessons and insights I've picked up along the way.
TypeScript: Low maintenance types
I write a lot about TypeScript and I enjoy the benefits it gives me in my daily work a lot. But I have a confession to make, I don’t really like writing types or type annotations. I’m really happy that TypeScript can infer so much out of my usage when writing regular JavaScript so I’m not bothered writing anything extra.
typescript - I get "Http failure response for (unknown url): 0 Unknown Error" instead of actual error message in Angular - Stack Overflow
I'm using Angular 4 HttpClient to send requests to external service. It is a very standard setup:
this.httpClient.get(url).subscribe(response = {
//do something with response
}, err = {
Converting Chart.js canvas chart to image using .toDataUrl() results in blank image - Stack Overflow
I am using Chart.js. I am trying to convert the chart to an image by getting a base 64 string. The tutorial (http://www.chartjs.org/docs/) devotes an entire 1 line on the topic:
The canvas element
Introducing Zero-Bundle-Size React Server Components – React Blog
2020 has been a long year. As it comes to an end we wanted to share a special Holiday Update on our research into zero-bundle-size React Server Components. To introduce React Server Components, we have prepared a talk and a demo. If you want, you can check them out during the holidays, or later when work picks back up in the new year. React Server Components are still in research and development. We are sharing this work in the spirit of transparency and to get initial feedback from the React…