Search
A Guide to Console Commands
21.2.2020
The developer’s debugging console has been available in one form or another in web browsers for many years. Starting out as a means for errors to be reported to the developer, its capabilities have increased in many ways; such as automatically logging information like network requests, network...
Add Background Colors to SVGs Using the “rect” Element
20.2.2020
The advantages of using SVGs in web development are well known. SVGs are small in size, can be made quite accessible, are scalable while maintaining their quality, and can be animated. Still, there is a learning curve. Things, like the syntax of SVG, can be a little tricky and having to hand-alter...
Do This to Improve Image Loading on Your Website
20.2.2020
Jen Simmons explains how to improve image loading by simply using width and height attributes. The issue is that there’s a lot of jank when an image is first loaded because an img will naturally have a height of 0 before the image asset has been successfully downloaded by the browser. Then it needs...
monica.css
20.2.2020
Monica Dinculescu:
I don’t want every possible padding and margin and colour and flexbox configuration in the world. I just want the ones that I know I end up using in every project. So here is monica.css: my very own CSS framework, which I copy paste at the beginning of every CSS file and take...
Understanding Web Accessibility Color Contrast Guidelines and Ratios
19.2.2020
What should you do when you get a complaint about the color contrast in your web design? It might seem perfectly fine to you because you’re able to read content throughout the site, but to someone else, it might be a totally different experience. How can put yourself in that person’s shoes...
Same HTML, Different CSS
19.2.2020
Ahmad Shadeed covers the idea of a card component that has a fixed set of semantic HTML with some BEMy classes on it. There is a title, author, image, and tags. Then he redesigns the card into five totally different designs without touching any of the HTML just the CSS.
If this is an ah-ha moment...
Centering a div That Maintains Aspect-Ratio When There’s Body Margin
18.2.2020
Andrew Welch had a little CSS challenge the other day to make an ordinary div:
• centered vertically + horizontally• scales to fit the viewport w/ a margin around it• maintains an arbitrary aspect ratio• No JS
There's a video in that tweet if it helps you visualize the challenge. I saw Paul...
Solving Sticky Hover States with @media (hover: hover)
18.2.2020
Mezo Istvan does a good job of covering the problem and a solution to it in a blog post on Medium¹.
If you tap on something that has a :hover state but you don't leave the page then, on a mobile device, there is a chance that :hover state "sticks." You'll see this with stuff like jump-links used...
Web Component for a Code Block
18.2.2020
We'll get to that, but first, a long-winded introduction.
I'm still not in a confident place knowing a good time to use native web components. The templating isn't particularly robust, so that doesn't draw me in. There is no state management, and I like having standard ways of handling that. If...
Erik Voorhees: Within Five Years There Will Be a Major Financial Meltdown and Crypto Will Be Ready
18.2.2020
When ShapeShift implemented KYC requirements, Erik Voorhees lost 95 percent of his users. But he remains as committed to crypto as ever
Central Bank of China Pumps 300 Billion Yuan Into Financial System, Cuts Loan Rates
18.2.2020
The Chinese government has taken multiple steps so far to contain the economic fallout from the coronavirus epidemic, including interest rate cuts and financial injections worth billions of yuan. It did it again this week, extending the monetary easing provided by the central bank. With the budget...
Moving from Vanilla JavaScript to a Reusable Vue Component
17.2.2020
I recently wrote an article explaining how you can create a countdown timer using HTML, CSS and JavaScript. Now, let’s look at how we can make that a reusable component by porting it into Vue using basic features that the framework provides.
Why do this...
Blame the implementation, not the technique
17.2.2020
I'm not sure we've gotten much better at this since Tim Kadlec wrote this in 2012:
Stop me if you’ve heard this one before.
“Responsive design is bad for performance.”“User agent detection is bad. Don’t segment the web.”“Hybrid apps don’t work as well as native apps.”“CSS preprocessors shouldn’t...
Curious About Bitcoin, Nigerians See Increasing Opportunities to Buy and Spend Cryptocurrencies
17.2.2020
Higher prices since the start of the year have been restoring popular interest in cryptocurrencies. Google searches for “bitcoin” have increased since December to about half of those registered in June last year. There’s one country that sticks out as a benchmark for...
Listen to your web pages
16.2.2020
A clever idea from Tom Hicks combining MutationObserver (which can "observe" changes to elements like when their attributes, text, or children change) and the Web Audio API for creating sounds. Plop this code into the console on a page where you'd like to listen to essentially any DOM change...
“CSS4” Update
16.2.2020
Since I first chimed in on the CSS4¹ thing, there's been tons of more discussion on it. I'm going to round up my favorite thoughts from others here. There is an overwhelming amount of talk about this, so I'm going to distill it here down as far as I can, hopefully making it easier to follow.
Jen...
Bitcoin and Doomsday Preppers — Would Crypto Have Any Survival Value If SHTF?
14.2.2020
As so-called “doomsday prepping” grows in popularity thanks to news of coronavirus lockdown in Chinese cities, red flag gun laws and rampant Fed stimulus in the U.S., preparedness enthusiasts are asking about the viability of bitcoin in a SHTF situation. From cautious, light investor...
How to Recover Your Funds If You Lose Your Bitcoin Wallet
13.2.2020
Losing a phone or hardware wallet containing cryptocurrency is inconvenient, but it shouldn’t be fatal. Provided you’ve backed up your private key, recovering your coins is a simple exercise. Should you find yourself in such a predicament, however, there’s a few things you should...
2020 Stack
13.2.2020
In an article with the most clickbaity article ever, Joe Honton does a nice job of talking about the evolving landscape of web development. "Full-stack" perhaps had its day as a useful term, but since front-end development touches so many parts of the stack now, it's not a particularly useful term....
Altcoin Season Trending – LINK, XTZ, BSTX, HBAR Gain Up to 120% in 24h
12.2.2020
The last few days have shown bullish price activity across the list of top cryptocurrency markets. There’s been a lot of focus on coins like BTC, ETH, BCH, and EOS, but digital assets like HBAR (120%), STX (52%), XTZ (20%) and LINK (13%) have seen much larger gains this week. The cryptoconomy...