Web Weekly #72 (#blogPost)

Hello, hello party people! 👋Have you ever wondered why it’s currentColor and not current-color in CSS? Or why it’s border-radius and not corner-radius? Or why we ha…


This content originally appeared on Stefan Judis Web Development and was authored by Stefan Judis

Hello, hello party people! 👋

Have you ever wondered why it's currentColor and not current-color in CSS? Or why it's border-radius and not corner-radius? Or why we have to put * { box-sizing: border-box; } into every stylesheet?

The answer is simple: designing a programming language is incredibly hard. And it's even harder when you consider that every addition will stay on the web platform forever.

Once a feature is out there, people start using it, and that's it then. Removing or changing functionality would break the web, and we can't do this!

Every few months, I come across the Incomplete List of Mistakes in the Design of CSS. The list includes confusing CSS features that are just that: confusing mistakes.

But what should you do about these mistakes?

This week I discovered Jen Simmons' "CSS Remedy" project, a collection of CSS rules that fix parts of CSS' technical debt.

Contrary to reset or normalize stylesheets trying to unify user agent styles, "Remedy" focuses on correcting CSS mistakes. It's an interesting approach!

Go through the CSS files; they're a well-documented read, and I'm sure you'll learn something new!

And with this, today you'll learn about:

  • A previous sibling selector
  • Well-supported JS class features
  • Custom loaders in Node.js

... and, as always, GitHub repositories, a new Tiny Helper and some music.

Lastly, welcome the 19 new subscribers and the first two people who decided to support this newsletter on Patreon! I'm humbled and touched by the support! 😊 💙

Something that made me smile this week

Nothing cute or funny passed my way this week, but luckily Maddie helped out. Here's a stellar dog pilot performance from the weird corners of the internet! 👨‍✈️

A previous sibbling selector with :has()

The CSS pseudo-class :has() is on its way. Safari shipped it in 15.4 and Chrome will support it beginning of August with version 105.

I always thought it's mainly a "parent selector" and was blown away when I learned that you can use it to select previous siblings, too. 🤯

Jim Nielsen explained how this works on his blog.

Select previous elements

Writing things down for your future self

Jake Archibald asked on Twitter which self-written post people refer back to the most. The replies are a goldmine of evergreen posts.

Find valuable posts

Important job interview questions

How do you evaluate if the company you're interviewing with is a good fit? It's tough!

James Hawkin collected direct but essential questions for your possible future employer.

Here are some examples:

  • "What's your revenue? What was it a year ago?"
  • "What are the things or behaviors that would cause a person in this role to fail?"
  • "How do you attract and retain really strong hires?"

Be direct

If you're currently interviewing for a job, find more job hunting resources on my blog.

Supported and modern JS class features

I don't remember when I wrote a JavaScript class the last time. But I learned this week that private fields and static methods are well supported.

Kyle Simpson aka @getify shared a gist with as many new class features as possible.

See classes in action

If you wonder about browser support specifics, MDN has you covered, and things look pretty green across the board.

Smart flex-grow usage

Nils Bender had a problem: he wanted to lay out elements in a grid and match specific aspect ratios. And while this seems easy, it wasn't.

His solution includes flex, aspect-ratio and custom properties, and he was so kind to share it with the world. 🙇‍♂️

Be creative with flex

How custom loaders enable new Node.js tooling flows

Node.js v18.6 comes with a new --experimental-loader command line flag. Jacob Smith shared when and how you can use the new loaders.

I don't want to look too far into the future, but this Node.js addition could change how we import files in Node.js entirely!

Import files with style

Holy snap!

Adam Argyle dropped some serious CSS scroll knowledge at CSSDay. I haven't seen the recording yet, but the slides speak for themselves.

The best thing: the entire slide deck is a huge scrollable website implementing all the demos!

Snap it!

Track how much you speak in meetings

Giving everybody enough space in a remote meeting is tough. If you're struggling with giving people time to speak up, "Unblah" is a Mac app that analyzes your meeting participation.

Find out how much you speak

Random MDN – Event.composedPath()

From the unlimited knowledge archive called MDN...

Kilian Valkhof shared the event.composedPath(), which allows traversing the parent elements of an event target.

Traverse the DOM

TIL recap – scrollIntoView options

Do you know that you can scroll DOM elements into specific viewport areas? Now you do!

Scroll things into view

If you learned something new, whether small or big, old or new, documented or not, I'd love to include more learnings in this newsletter. Send me an email, and I'm happy to share your discovery!

Three valuable projects to have a look at

A new Tiny Helper

I'm always impressed when people demo CSS likes #B055E5 and use all these hexword colors. #HEXWORDS is a list of all these hex CSS color words.

Be #BADA55

Find more single-purpose online tools on tiny-helpers.dev.

Thought of the week

In the spirit of meetings and communication; this week's quote comes from Peter Drucker.

The most important thing in communication is hearing what isn’t said.

A song that makes you stop coding

"Breathing" from Ben Böhmer, Nils Hoffmann & Malou is a nicely rolling electro track with a beautiful chorus voice. It's a perfect track to focus and get into the zone.

Listen to "Breathing"

Thank you for reading!

And that's a wrap for the seventy-second Web Weekly! If you enjoy this newsletter, I'd love you to tell others about it. ♥️

If you're not a subscriber, you can change that! 😉

And with that, take care of yourselves, friends - mentally, physically, and emotionally. I'll see you next week! 👋


Reply to Stefan


This content originally appeared on Stefan Judis Web Development and was authored by Stefan Judis


Print Share Comment Cite Upload Translate Updates
APA

Stefan Judis | Sciencx (2022-07-16T22:00:00+00:00) Web Weekly #72 (#blogPost). Retrieved from https://www.scien.cx/2022/07/16/web-weekly-72-blogpost/

MLA
" » Web Weekly #72 (#blogPost)." Stefan Judis | Sciencx - Saturday July 16, 2022, https://www.scien.cx/2022/07/16/web-weekly-72-blogpost/
HARVARD
Stefan Judis | Sciencx Saturday July 16, 2022 » Web Weekly #72 (#blogPost)., viewed ,<https://www.scien.cx/2022/07/16/web-weekly-72-blogpost/>
VANCOUVER
Stefan Judis | Sciencx - » Web Weekly #72 (#blogPost). [Internet]. [Accessed ]. Available from: https://www.scien.cx/2022/07/16/web-weekly-72-blogpost/
CHICAGO
" » Web Weekly #72 (#blogPost)." Stefan Judis | Sciencx - Accessed . https://www.scien.cx/2022/07/16/web-weekly-72-blogpost/
IEEE
" » Web Weekly #72 (#blogPost)." Stefan Judis | Sciencx [Online]. Available: https://www.scien.cx/2022/07/16/web-weekly-72-blogpost/. [Accessed: ]
rf:citation
» Web Weekly #72 (#blogPost) | Stefan Judis | Sciencx | https://www.scien.cx/2022/07/16/web-weekly-72-blogpost/ |

Please log in to upload a file.




There are no updates yet.
Click the Upload button above to add an update.

You must be logged in to translate posts. Please log in or register.