Weekly Shaarli

All links of one week in a single page.

Previous week

Week 32 (August 6, 2018)

Next week

Free Frontend - CSS Menus
thumbnail

Hand-picked HTML and CSS code examples, tutorials and articles

When should a primary key be declared non-clustered?
thumbnail

Say that I have a table of People, and these people have a Country column and a unique Primary Key. It's a demographics table, so these are the only things I care about; what Country and how many unique people are tied to that country.

I am thus only ever likely to SELECT WHERE or ORDER BY the Country column; a clustered index on the Primary Key doesn't do me any good, I'm not accessing this data by PK, I'm accessing it by this other column. Since I can only have one clustered index on a table, declaring my PK as Clustered would prevent me from using a Clustered Index on Country.

A Stoic Response to Anger

Your instinct may be to yell and get angry. It’s natural. But just because it’s “natural” doesn’t mean it’s a good idea.

“how much more harmful are the consequences of anger…than the circumstances that aroused them in us.”

How the Bootstrap 4 Grid Works

The Rules of the Grid:

Columns must be the immediate child of a Row.
Rows are only used to contain Columns, nothing else.
Rows should be placed inside a Container.
Getting Started With CSS Layout
thumbnail

Whether you’re fairly new to CSS or an experienced developer from elsewhere in the stack who wants to make sure your understanding of layout today is up to date, this guide covers everything you need to know about CSS Layout today.