Search
How to Conditionally Add Attributes to Objects
16.10.2020
JavaScript is full of tricks that you don’t know you want until you … want … them. Or maybe just until you see them. One trick I recently realized was conditionally adding attributes to React elements. Of course this trick essentially boils down to conditionally adding properties...
Sports Data for Developers: SportdataAPI (Sponsored)
12.10.2020
Most of the side projects I consider starting revolve around sports, since I’m a huge sports fan. I spend my Saturdays watching soccer, Sundays spent watching soccer and NFL, and of course the mid-week Champions League and Europa League matches. One problem I’ve always had is not being...
39 Shirts – Leaving Mozilla
6.10.2020
In 2001 I had just graduated from a small town high school and headed off to a small town college. I found myself in the quaint computer lab where the substandard computers featured two browsers: Internet Explorer and Mozilla. It was this lab where I fell in love with Mozilla — a browser that...
Curate Custom Content with mediastack
6.10.2020
I used to have a personal aggregator of sites I enjoyed but maintaining it was a nightmare. I needed to grab each site’s RSS feed, categorize their contents, deal with errors and individual rate limits, etc. I had to tear the whole project down because it was a nightmare to manage. Fast...
How to Detect When a Sticky Element Gets Pinned
5.10.2020
The need for position: sticky was around for years before it was implemented natively, and I can boast that I implemented it with JavaScript and scroll events for ages. Eventually we got position: sticky, and it works well from a visual perspective, but I wondered how can we determine when...
[aktualita] Škoda Auto zařadila do osobních vozů zpravodajství ČTK
1.10.2020
Nový informační systém v osobních autech značky Škoda zobrazuje zpravodajství ČTK. Konkrétně jde o infotainment třetí generace v modelech Scala, Kamiq, Superb iV a vozech Superb, Karoq a Kodiaq modelového roku 2021. Uživatel má možnost si sám přidat až pět dalších zpravodajských kanálů dle vlastní...
Shoelace 2.0: A Forward-thinking Library of Web Components
29.9.2020
A few years ago, I released a lightweight alternative to Bootstrap affectionately named Shoelace. Shoelace was small and fast because of its minimal design and pure CSS approach to styling. It used CSS custom properties extensively to enable customizations, even when loaded via CDN — something...
How to Detect the Default Branch in a git Repository
28.9.2020
Over the past few years, many engineering teams have switched their default git branch name from master to a different, potentially less offensive term. I’m all for choosing to name your default branch whatever you’d like, but not having a universal default branch name can complicate...
How to Create an Async Function
24.9.2020
One thing I love about JavaScript is that there are many ways to accomplish the same task, one such example being creating functions. There are several patterns for functions; one of the last you see used is the new Function method: /* new Function(arg1, arg2 (...), body) */ const myFunction =...
Řidič Tesly za jízdy spal, jeho auto uhánělo po dálnici rychlostí 150 km/h. Čeká ho soudní proces
22.9.2020
9. července tohoto roku obdržela kanadská policie stížnost na nebezpečnou jízdu na dálnici číslo 2 poblíž obce Ponoka v provincii Alberta. Vyslala na místo hlídku, která zachytila Teslu Model S, jejíž řidič za volantem tvrdě spal a měl sklopenou sedačku, zatímco vůz jel v autonomním režimu,
Vital Web Performance
21.9.2020
I hate slow websites. They are annoying to use and frustrating to work on. But what does it mean to be “slow”? It used to be waiting for document load. Then waiting for page ready. But with so many asynchronous patterns in use today, how do we even define what “slow” is? The W3C has […]
The...
Remove the Search Input Clear(x) Icon
21.9.2020
I really appreciate the amount of different <input> elements we’ve received over the past decade. These elements don’t just bring a new semantic advantage, but also provide UI helpers, which in many cases are useful. In a recent case, I found a UI element not useful: the x (clear)...
Aston Martin nabízí automobilový simulátor, který vás zabaví během pandemie. Stojí jak opravdové auto
19.9.2020
Britská automobilka Aston Martin představila jeden z nejmodernějších závodních simulátorů. Jmenuje se ARM-CO1 a je reakcí na rostoucí zájem o elektronické závodění - to v mnoha disciplínách nahradilo reálné závody, jež byly zrušeny z důvodu pandemie onemocnění COVID-19.
Luxusní simulátor
Podnikavá Američanka získala směnným obchodem za obyčejnou vlásenku auto
15.9.2020
Podnikavá Američanka získala směnným obchodem za obyčejnou vlásenku auto
content-visibility: the new CSS property that boosts your rendering performance
14.9.2020
Una Kravets and Vladimir Levin:
[…] you can use another CSS property called content-visibility to apply the needed containment automatically. content-visibility ensures that you get the largest performance gains the browser can provide with minimal effort from you as...
5 Awesome JavaScript Promise Tricks
14.9.2020
The Promise API changed the game in JavaScript. We went from abusing setTimeouts and settling for synchronous operations to doing everything possible to leverage this new async API. Let’s check out a handful of awesome Promise API tricks! Cancel a fetch Request One problem we instantly...
Logical Assignment Operators
10.9.2020
I love JavaScript, it’s my favorite programming language, but I love dipping into other languages because they offer a new perspective on coding paradigms. There’ve been syntax additions to JavaScript that I’ve seen I found interesting (think ?? in optional chaining) and now...
Nejspolehlivější manažerské auto je Tesla Model 3, druhá je benzínová Škoda Superb, tvrdí britský průzkum
5.9.2020
Podle aktuálního britského průzkumu je nejspolehlivější auto vyšší střední třídy elektromobil Tesla Model 3, druhá v pořadí je benzínová Škoda Superb a na třetím místě skončila Mazda 3. Průzkum prováděl britský spotřebitelský magazín What Car? na vzorku 13 tisíc respondentů z řad majitelů aut dané
Japonský startup otestoval létající auto s člověkem na palubě
31.8.2020
Není to tak dávno, co jsme psali o ambiciózních plánech japonského startupu SkyDrive – a nyní se k tomuto tématu opět vracíme. Jmenovaná společnost totiž před několika dny uskutečnila letovou zkoušku svého eVTOLu (Electric Vertical Take-Off and Landing Aircraft) zvaného SD-03.
Zajímavá je
Tesla v režimu Autopilot nabourala policejní auto. Řidič se místo sledování provozu díval na film
30.8.2020
„Stokrát ohraná písnička“ – tak by se dala popsat další nehoda automobilu Tesla, ke které došlo ve středu 26. srpna ráno v americké Severní Karolíně. Opět v ní hraje roli funkce Autopilot a nepozornost řidiče, který se přiznal, že se místo sledování provozu díval na film, informuje web Ars