Search
Avoid Heavy Babel Transformations by (Sometimes) Not Writing Modern JavaScript
20.5.2020
It’s hard to imagine writing production-ready JavaScript without a tool like Babel. It’s been an undisputed game-changer in making modern code accessible to a wide range of users. With this challenge largely out of the way, there’s not much holding us back from really leaning into...
Radio Buttons Are Like Selects; Checkboxes Are Like Multiple Selects
20.5.2020
I was reading Anna Kaley’s “Listboxes vs. Dropdown Lists” post the other day. It’s a fairly straightforward comparison between different UI implementations of selecting options. There is lots of good advice there. Classics like that you should use radio buttons (single...
WordPress Block Transforms
20.5.2020
This has been the year of Gutenberg for us here at CSS-Tricks. In fact, that’s a goal we set at the end of last year. We’re much further along that I thought we’d be, authoring all new content in the block editor¹, enabling the block editor for all content now. That means when...
Bitcoin’s Halving Is Nothing Like Quantitative Tightening
19.5.2020
The halving could both increase the rate at which bitcoin’s price rises and bring forward the point at which it crashes, says our columnist
Using BugHerd to Track Visual Feedback on Websites
19.5.2020
BugHerd is about collecting visual feedback for websites.
If you’re like me, you’re constantly looking at your own websites and you’re constantly critiquing them. I think that’s healthy. Nothing gets better if you look at your own work and consider it perfectly finished....
First Mover: Bitcoin Difficulty Adjustment Feels Like Post-Halving Easing Party
19.5.2020
Bitcoin mining is set to get easier, as the network undergoes an expected difficulty adjustment on Tuesday – the first since last week's reward halving
First Steps into a Possible CSS Masonry Layout
18.5.2020
It’s not at the level of demand as, say, container queries, but being able to make “masonry” layouts in CSS has been a big ask for CSS developers for a long time. Masonry being that kind of layout where unevenly-sized elements are layed out in ragged rows. Sorta like a typical...
Unprefixed `appearance `
18.5.2020
It’s interesting how third-parties are sometimes super involved in pushing browser things forward. One big story there was how Bloomberg hired Igalia to implement CSS grid across the browsers.
Here’s another story of Bocoup doing that, this time for the appearance property. The story...
From Buenos Aires to Beirut – Covid-19 Excuse Restricts Millions of Citizens from Withdrawing Their Own Money
18.5.2020
The coronavirus and the government-induced lockdowns have wreaked havoc on the global economy and millions of people can’t access their own money. Reports from financial stricken areas like Venezuela, Argentina, and Lebanon show that citizens are being stopped from accessing their...
P2P Bitcoin Trade Volumes and Inflation in Latin America Are on the Rise
16.5.2020
During the last two months since the March 12 crypto market rout, otherwise known as ‘Black Thursday,’ demand for cryptocurrencies seems to be on the rise in certain regions in Latin America. Various reports published this week have noted that countries like Colombia, Venezuela...
WTF is a Static API
15.5.2020
Just like there is a movement to make more websites (and more of websites) from pre-rendered static files (Jamstack), so to might we consider moving content-based APIs to be static. Sean C Davis:
A static API is simply a collection of flat JSON files that live on a content delivery...
Notion-Powered Websites
14.5.2020
I’m a big fan of Notion, as you likely know from previous coverage and recent video. It’s always interesting to see what other people do with Notion, and even how Notion uses Notion.
I’d say most usage of Notion is private and internal, but any page on Notion can be totally...
Digifinex Live AMA Hosts Bitcoin.com Chairman – Roger Ver Talks Stimulus, Useful Cryptocurrencies, Coronavirus
14.5.2020
On May 14, Bitcoin.com Executive Chairman Roger Ver sat down with Digifinex cofounder, Kiana Shek, for an ask-me-anything (AMA) session about the cryptocurrency ecosystem. Ver explained what he thinks about the central banks printing unlimited money, the government-induced lockdowns, and...
Reddit’s New Blockchain Community Points Can Be Controlled ‘Just Like Bitcoin’
14.5.2020
One of the largest online networks, Reddit, has announced a new community points system based on the Ethereum blockchain
Reddit Picks Ethereum For Its New Points, Offers 'Complete Control, Like Bitcoin'
14.5.2020
Following widespread speculation that the popular discussion forum Reddit is about to launch a new points system built on top of the Ethereum (ETH) blockchain, the forum itself has now finally confirmed a new system that allows users to “earn a piece of their favorite communities,” with the help...
Spotify-like Subscription Model Proposed For Collateral Payments
14.5.2020
A protocol funded by Web 3.0 Foundation aims to reduce crypto collateral by switching from a one-off relationship to a subscription model
Equal Width Columns in CSS Grid are Kinda Weird
14.5.2020
Everything is flexible these days. If you write grid-template-columns: 200px 200px 200px;, sure, you’d have equal-width columns, but that’s a rare day. What you usually mean is three columns of equal fluid width.
We’ve got fractional units for that, like grid-template-columns:...
React Single File Components Are Here
13.5.2020
Shawn Wang is talking about RedwoodJS here:
… it is the first time React components are being expressed in a single file format with explicit conventions.
Which is the RedwoodJS idea of Cells. To me, it feels like a slightly cleaner version of how Apollo wants you to do it with useQuery....
Why does writing matter in remote work?
12.5.2020
Talk to anyone who has an active blog and I bet they’ll tell you it’s been valuable to them. Maybe it’s opened doors. Maybe it’s got them a job. Maybe it’s got them a conference invite. Maybe they just like the thrill of knowing people have read and responded to...
How I Put the Scroll Percentage in the Browser Title Bar
12.5.2020
Some nice trickery from Knut Melvær.
Ultimately the trick boils down to figuring out how far you’ve scrolled on the page and changing the title to show it, like:
document.title = `${percent}% ${post.title}`
Knut’s trick assumes React and installing an additional library. I’m sure...