Weekly Shaarli

All links of one week in a single page.

Previous week

Week 34 (August 19, 2019)

Next week

The Minuscule Docker Images That Could - Better Programming - Medium

Note: Alpine images are already very small and will probably be sufficient if you care about size.

5 Rules for Choosing the Right Words on Button Labels
thumbnail
  • Use Action Verbs (not generic yes/no)
  • Use Precise Diction (Remove vs. Delete)
  • Use Task-Specific Language (Publish vs Submit)
  • Use the Active Imperative Form (Read Details vs Click Here for Details)
  • Use Sentence-Style Capitalization (Friendlier than Title Case)

Comment:
If you test people on an app the first time they use it, Title Case will slow you down, just as it probably did just now. However, it is much easier to see the shape of Title Case text in buttons than sentence case buttons.

Cheat sheet for moving from jQuery to vanilla JavaScript | Tobias Ahlin
thumbnail

With browser support of ES6 having reached more than 96%, it might be a good idea to move away from jQuery to accomplish basic tasks like fetching data, selecting elements, styling and animating them, as Tobias Ahlin argues.

A Perl getopts example | alvinalexander.com

Perl getopts FAQ: Can you demonstrate how to use the getopts function? (Also written as, "Can you demonstrate how to read Perl command line arguments?")

What columns are in that index? - Erin Stellato
thumbnail
  • Whenever you know that the column, or combination or columns, makes a unique key for a nonclustered index, I always recommend that you specify UNIQUE when you create the index. That information is great for the optimizer to have when generating query plans.

  • Think carefully about the impact of your clustering key on your nonclustered indexes. Any non-unique nonclustered index will be larger (more pages, eventually more levels) because the entire clustering key will be in the tree level.

  • If you have a clustering key with a column (or multiple columns) that are frequently modified, then those modifications have to be propagated to the tree levels of the nonclustered indexes as well.

Finish Nailer Tips | Family Handyman
thumbnail

18-gauge brad nailer

If you plan to buy only one trim nailer, this is the size to get. I use mine more than all my others combined. It’s perfect for standard trim, furniture making and odd jobs around the shop. Models that shoot brads up to 1-1/4- in. are common, but I strongly recommend spending a few bucks more for a gun that can handle brads up to 2 in. long. Name-brand 2-in. guns start under $100.

Use nails before screws

I always found it difficult to keep parts aligned when screwing cabinets together. Then I discovered that a couple of shots with my finish nailer or brad nailer will keep the parts aligned while I drill pilot holes and drive screws for strong joints.

Invisible nail holes with a pinner

Pins are tiny and headless, so they’re hard to see even before you fill them. Afterward, nobody but you will know they’re there.

Nail before you clamp

With a coat of slippery glue, parts will slide out of alignment while you’re desperately trying to clamp them. My solution is to tack the parts together with a couple of nails. That keeps the parts aligned while I apply serious pressure with clamps.

No stud? No problem

Studs aren’t always located where we need them. When I need to nail trim where there’s no stud, I dab some construction adhesive on the back of the trim and then drive nails into the drywall at 45-degree angles. That holds the trim tight against the wall while the adhesive cures. This “trap nailing” technique works fine with brad nailers and even better with finish nailers.

Google HTML/CSS Style Guide
  • Specifying type attributes in these contexts is not necessary as HTML5 implies text/css and text/javascript as defaults. This can be safely done even for older browsers.
Solaria Labs: An Innovation Incubator

Solaria Labs was created by Liberty Mutual Insurance with one simple mandate: to bring disruptive innovations that make a better, safer future. We pursue this mandate by building and testing experimental new products based on customer-centric research around emerging trends.

Everything You Ever Wanted to Know About inputmode | CSS-Tricks
thumbnail

The inputmode attribute that helps browsers on devices with on-screen keyboards decide which keyboard to display (e.g. telephone, numeric, email, search) has been around for long, but it wasn’t until a few months ago that Safari for iOS and Chrome for Android adopted it. Time to get familiar with the concept. Christian Oliff’s article “Everything You Wanted To Know About inputmode” is a great primer to dive deeper into the attribute and how to make use of it. (cm)