A case for keyset pagination in preference to OFFSET.
Category Archives: Design
DRY is a Trade-Off
DRY is a Trade-Off makes some good points.
CSS Variables and How To Use Them
A quick run down on CSS Variables and How To Use Them. Note the var() function can take 2nd parameter for a default value.
:root {
--primary-color: #333;
}
div {
color: var(--primary-color, #444);
}
p {
background-color: var(--primary-color);
}
.fancy {
border-color: var(--primary-color);
}
A Distributed Systems Reading List
Also on HN today: A Distributed Systems Reading List. Some good stuff there.
Command Line Interface Guidelines
Command Line Interface Guidelines looked interesting but I didn’t have time to closely read the whole thing.
The Wrong Abstraction
Read a great article today: The Wrong Abstraction. It talks about when it’s better to duplicate code that maintain an abstraction. Other things mentioned include:
Parse, don’t type-check
I read Parse, don’t type-check which referred to Parse, don’t validate; both are articles I would like to circle back to.
Vagrant
There are a bunch of great examples of using vagrant for testing purposes in
High Availability for the LAMP Stack: Eliminate Single Points of Failure and Increase Uptime for Your Linux, Apache, MySQL, and PHP Based Web Applications by Jason Cannon which I have on my Kindle.
Codd’s 12 rules
Today in my travels I came across Codd’s 12 rules. They are rules for what qualifies as a relational database. Apparently these rules are discussed in RELATIONAL MODEL DATABASE MANAGEMENT 2 but as that is $486 I will not have a copy any time soon…
Stop checking for NULL pointers!
Read this great article Stop checking for NULL pointers! It mentions that there are many other invalid pointers than NULL, which is the same idea I had recently with regard to foreign keys in databases.