Search
Wednesday's Best Deals: New M1 MacBooks, Xbox Game Pass Ultimate, Christmas Tree Skirts, Switch Pro Controller Bundle, Too Faced Lipstick, and More
2.12.2020
Apple’s new MacBooks and Xbox Game Pass Ultimate lead Wednesday’s best deals.Read more
console.log({ myVariable });
19.11.2020
I think this might be my most popular tweet of all time, but I’m not sure how to verify that these days. I’ll restate this neat little trick here because blogging is cool and fun.
I used to do this a lot while debugging JavaScript:
console.log("myVariable: ", myVariable);
But now I...
Netlify Edge Handlers
13.10.2020
Some very cool news from Netlify: Edge Handlers are in Early Access (request it here). I think these couple of lines of code do a great job in explaining what an Edge Handler is:
export function onRequest(event) {
console.log(`Incoming request for ${event.request.url}`);
...
Practical Use Cases for JavaScript’s closest() Method
12.8.2020
Have you ever had the problem of finding the parent of a DOM node in JavaScript, but aren’t sure how many levels you have to traverse up to get to it? Let’s look at this HTML for instance:
<div data-id="123"<buttonClick me</button</div
That’s pretty straightforward, right? Say...
Offscreen Text for Copy & Paste
15.5.2020
The relationship between HTML and CSS is special: mixing content via HTML with presentation from CSS to make an awesome presentation. Sometimes, however, you need to employ CSS tricks solely to enhance functionality. This could be one of those cases. When browsing through the Firefox DevTools...
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...
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...
Override window.alert
11.2.2020
For years the only bit of feedback web developers could get was via alert("{str}") calls. These days we have the web console but, in rare cases, we don’t have a console and alert calls are our only window into a value at a given time. One problem: if an alert sneaks into production code, your...
How many CSS properties are there?
15.1.2020
Tomasz Łakomy posted a joke tweet about naming all the CSS attributes and Tejas Kumar replied with a joke answer, going as far as making an npm module. You can even run a terminal command to see them:
npx get-all-css-properties
You'll get 259 of them. The source code uses the website quackit.com...
Weekly Platform News: Internet Explorer Mode, Speed Report in Search Console, Restricting Notification Prompts
14.11.2019
In this week's roundup: Internet Explorer finds its way into Edge, Google Search Console touts a new speed report, and Firefox gives Facebook's notification the silent treatment.
Let's get into the news!
Edge browser with new Internet Explorer mode launches in January
Microsoft expects to release...
Collective #565
14.11.2019
Next-generation web styling * Sketch 60 * The 2019 Web Almanac * Markup from hell * Video Game Console Logos
Collective #565 was written by Pedro Botelho and published on Codrops
When to Use SVG vs. When to Use Canvas
12.11.2019
SVG and canvas are both technologies that can draw stuff in web browsers, so they are worth comparing and understanding when one is more suitable than the other. Even a light understanding of them makes the choice of choosing one over the other pretty clear.
A little flat-color icon? That's...
Weekly Platform News: HTML Inspection in Search Console, Global Scope of Scripts, Babel env Adds defaults Query
11.7.2019
In this week's look around the world of web platform news, Google Search Console makes it easier to view crawled markup, we learn that custom properties aren't computing hogs, variables defined at the top-level in JavaScript are global to other page scripts, and Babel env now supports the defaults...
Microsoft, Sony, and Nintendo Urge to Remove Gaming Console Tariffs
27.6.2019
The trade war between the United States and China has possibly been one of the biggest events of the past decade, and it has had far-reaching consequences all over the world. After all, when the world’s two biggest economies are involved in a trade skirmish, then it is almost a given that...
Microsoft Announces Fastest Ever Gaming Console Named ‘Project Scarlett’
10.6.2019
Over the past few years, Microsoft has turned around in a decisive way and has returned to its former glories again. However, even during the days when the company was not growing at the expected rate, its gaming console brand XBOX remained a highly popular product. It remains so to this day,...
Could Grouping HTML Classes Make Them More Readable?
22.4.2019
You can have multiple classes on an HTML element:
<div class="module p-2"></div>
Nothing incorrect or invalid there at all. It has two classes. In CSS, both of these will apply:
.module { }
.p-2 { }
const div...
console.log() Faster with Turbo Console Log
11.3.2019
I've recently been live-coding on Twitch and the thing that I've loved about it is all the users in the chat that are helping me out by giving me the
How to use console in node.js
11.2.2019
Introduction
In this article, we'll learn how to use most methods available in the nodeJS console class more effectively.
To demonstrate, I'll use Chrome browser version 70
Collective #486
24.1.2019
What Parallax Lacks * Fullstack GraphQL bootcamp * Table Design Patterns On The Web * console.chat * Flexbox.ninja
Collective #486 was written by Pedro Botelho and published on Codrops
Firefox DevTools WebConsole 2018 retrospective
21.1.2019
Here’s a wonderful post by Nicolas Chevobbe on what the Firefox DevTools team was up to last year. What strikes me is how many improvements they shipped — from big visual design improvements to tiny usability fixes that help us make sure our code works as we expect it to in the console....