Friday, October 7, 2022
HomeJavaScriptInternet Weekly #75 | Stefan Judis Internet Improvement

Internet Weekly #75 | Stefan Judis Internet Improvement


Let’s speak about a endless programming argument: TABS vs. SPACES. I do know, I do know… however hear me out! 😉

I do not care an excessive amount of about it as a result of wrangling code into no matter coding conference is an editor’s job. Prettier for the win!

However I’ve at all times been in “the area camp” for my tasks. It is my code, and I make the principles, proper?

This week I took an enormous step, moved camps and adjusted my first repo to be tabs-first!

I've been a "spaces" guy for forever but today's the day: I'm switching to tabs. 😲  ✅ Better for accessibility ✅ Takes less disk space  Now I only have to get used to all these arrows. 😅

So, what modified my opinion?

The Prettier maintainers take into account shifting to tabs with their subsequent main launch as a result of it saves bytes and is extra versatile. Let’s dive into these factors.

I transformed all JS information (together with all node_modules) of my weblog’s code base to tabs and saved a whooping 11MB on my arduous drive. So, this can be a weak argument at greatest.

However off to the second argument: code with tabs shouldn’t be solely extra versatile, however it is usually extra accessible to blind programmers utilizing braille shows. Issues needs to be as accessible as doable, in order that’s sufficient to persuade me; I am bought!

What do you suppose? Will you pack your stuff and transfer camps, too?

And with this, immediately you will study:

  • The kbd HTML aspect
  • New CSS format tips
  • Chrome’s new efficiency panel

… and, as at all times, GitHub repositories, a brand new Tiny Helper and a few music.

Lastly, welcome to the 44 new subscribers! I am tremendous excited to have you ever round! 👋

One thing that made me smile this week

Tweet showing a man about to go down some stairs.

I spent manner an excessive amount of time watching the movies on this Twitter account sharing CCTV footage.

New CSS format capabilities

A list of container-relative units

Michelle Barker, who you would possibly know from her weblog “CSS { In Actual Life }”, gave an enormous rundown on all trendy and upcoming CSS options. Flex, grid, container queries, subgrid, you identify it!

Discover out what’s coming

Git tip: power pushing with no -f flag

Source code: git push --force origin main, git push -f origin main, git push origin +main

In the event you use Git power pushing, chances are you’ll wish to avoid wasting characters and use the +branch-name sample.

However watch out! In the event you work with others on a undertaking, you would possibly wish to choose pushing with --force-with-lease over regular power pushing.

🔧 .files, including ~/.macos — sensible hacker defaults for macOS

Mathias Bynens dotfiles crossed my path as soon as once more, they usually’re such a treasure trove. I discovered the way to configure the new corners on my laptop programmatically.

If you wish to get began with dotfiles, this repo is greater than a strong basis.

Put money into dotfiles

"webplatform news" headline made of HTML elements

It was somewhat quiet round Šime Vidas’ undertaking webplatform.information, however it’s again! The positioning obtained a refresh, and Šime was already busy posting.

In the event you care in regards to the internet platform, the included RSS feed is price subscribing. I am an enormous fan!

Rock the platform

Massive names dwelling in your space

A map showing multiple names of notable people.

Have you learnt if notable folks lived or have been born in your hometown? If you wish to discover out, Topi Tjukanov’s undertaking helps out.

Discover some areas

Chrome’s new efficiency panel

The new Chrome performance panel.

Each time I open Chrome’s efficiency panel, I am somewhat overwhelmed. Fortunately, the Chrome of us are engaged on a brand new experimental efficiency panel. I performed round with it, and it is already an enchancment. 💯

Measure efficiency

An wallpaper built of basecaps and the 🙈 emoji.

Disclaimer: the next website will make your laptop fly, however I had numerous enjoyable producing Emoji wallpapers. It is price it!

Have enjoyable with Emojis

Two boxes showing the 💩 emojis are text wrapped whereas ⚠️ is not.

Talking of Emojis, are you aware that the 💩 Emoji will get text-wrapped whereas the ⚠️ shouldn’t be? Bramus tells you why!

Get into Emoji particulars

Random MDN – the kbd aspect

kbd: The Keyboard Input element — The kbd HTML element represents a span of inline text denoting textual user input from a keyboard, voice input, or any other text entry device. By convention, the user agent defaults to rendering the contents of a kbd element using its default monospace font, although this is not mandated by the HTML standard.

From the limitless information archive known as MDN…

Have you ever used the kbd HTML aspect already? No? Perhaps it is time. 😉

Use kbd

TIL recap – . does not match each character in common expressions

/a.b/.test('anb');     // false /a.b/.test('arb');     // false /a.b/.test('au2028b'); // false /a.b/.test('au2029b'); // false

I’ve at all times thought that the . in common expressions matches any character. That is not true, although. Be taught extra about it on the weblog.

Match every little thing

Three beneficial tasks to take a look at

TEMPMAIL - Your Temporary Email Address

In the event you’re on the lookout for a fast approach to generate momentary e-mail addresses, TEMPMAIL’s for you.

Create your throw-away e-mail tackle

I agree with Peter van Grieken’s sizzling take of the week. 🌶️

In the event you don’t know HTML, you should not use ARIA.

A music that makes you cease coding

Mojjo, Meca, LUISAH - Love The Way

We’re melting underneath an enormous warmth wave right here in Germany. On this spirit: here is a cool home monitor that could not sound extra like summer season.

Take heed to “Love the best way”

And that is all, pals!

Writing Internet Weekly takes roughly 5 hours each week, and I pay actual cash for sending virtually 3k emails. In the event you get pleasure from it, take into account supporting me on Patreon. ♥️

Or inform others about it:

In the event you’re not a subscriber, you’ll be able to change that! 😉

And with that, deal with yourselves, pals – mentally, bodily, and emotionally. I will see you subsequent time! 👋



RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Most Popular

Recent Comments