Twitter | Search | |
Serg Hospodarets
Senior Engineering Manager, speaker, and JavaScript / CSS enthusiast.
1,480
Tweets
443
Following
6,553
Followers
Tweets
Serg Hospodarets Aug 5
Replying to @simevidas @_baxuz
Hm, Polymer version 1 is used on Youtube, version 2 on version 3 is available ...
Reply Retweet Like
Serg Hospodarets retweeted
Jason Laster Jul 26
OMG! just got time travel debugging. Best birthday present ever! 🎂 🦊 Here are all the deets. Can't wait to hear what you think!
Reply Retweet Like
Serg Hospodarets Aug 3
Handy way to import Lodash library runtime using the power of ES modules. Just invoke the: "const _ = await import(``)" Useful for debugging/development. It loads all Lodash functions as ES Modules. Based on idea.
Reply Retweet Like
Serg Hospodarets Aug 1
Replying to @chicoxyzzy
Promise.race can be used for your first case My favorite use-case is to find out a connection to which CDN is the fastest.
Reply Retweet Like
Serg Hospodarets Aug 1
Promise.allSettled proposal added to TC39 process. The key feature- to have a callback when all the promises are settled (fulfilled or rejected), as Promise.all will be rejected as only one of the promises is rejected (even if some others are not finished)
Reply Retweet Like
Serg Hospodarets Jul 31
Replying to @RReverser
It gives you the API missed in PWA comparing to e.g. Electron. Similar to: - Record the user's screen - Define global keyboard shortcuts
Reply Retweet Like
Serg Hospodarets Jul 31
Intent to Implement in Chrome: Badging API. Allows installed Progressive Web Applications to set a badge, shown in an operating-system-specific place. Useful for chats. One of the APIs missed in PWA, so Electron is used (Slack etc.)
Reply Retweet Like
Serg Hospodarets Jul 30
2 ways to create animated terminal presentations: 1) Set the input/output commands content and export to an image/GIF: 2) Record your terminal to a GIF:
Reply Retweet Like
Serg Hospodarets Jul 29
CSS only double-click behavior: … The trick is in the combination of "animation-delay" and "transform:-100%" of the forward (green in the debug mode) layer on ":focus" (which is triggered on click, as it's an HTML link <a />). Tricky but clever.
Reply Retweet Like
Serg Hospodarets retweeted
JavaScript Daily Jul 23
Native JavaScript Modules:
Reply Retweet Like
Serg Hospodarets retweeted
JavaScript Daily Jun 8
Using the Experimental ES Module Support in Node 10:
Reply Retweet Like
Serg Hospodarets Jun 8
Replying to @tobiasbu @simevidas
Unfortunately, it's not, as modules are exscuted in strict mode, without specific behavior in this case:
Reply Retweet Like
Serg Hospodarets Jun 7
Surprisingly, you still can redefine `undefined` in JavaScript even in Strict mode, using let/const/class. ECMAScript issue:
Reply Retweet Like
Serg Hospodarets Jun 6
Till native color functions arrived in CSS, you can use the hsl() color format, providing colors via CSS Custom Properties and modifying them using --darken property similar to lighten() / darken() Sass color functions
Reply Retweet Like
Serg Hospodarets Jun 5
Great list of algorithms and data structures implemented in JavaScript, which can be easily reused during the implementation. Also includes descriptions, explanations, and links to further readings.
Reply Retweet Like
Serg Hospodarets Jun 4
Chrome is adding srcset and imgsizes attributes on <link rel=preload> needed to instruct the browser to only preload the most appropriate resource from a set of images
Reply Retweet Like
Serg Hospodarets retweeted
Axel Rauschmayer Jun 3
Microsoft has reportedly acquired GitHub
Reply Retweet Like
Serg Hospodarets May 31
Chrome DevTools started showing the autocomplete drop-down with available CSS Custom Properties for the current element. Which makes debugging/theming development much easier.
Reply Retweet Like
Serg Hospodarets May 26
Good summary on the current React architectural patterns and paradigms, including presentational and container components, high-order variations, Redux and new Context API, styling etc. in one short cookbook "React in patterns":
Reply Retweet Like
Serg Hospodarets May 26
Recently I was asked what JavaScript API I'm waiting for. Here it is- ECMAScript First-Class Protocols (aka Interfaces) Proposal. Inspired by Haskell, similar to Java. At Stage 1 of the TC39 process.
Reply Retweet Like