Today while reading Make: Getting Started with Soldering I learned about NASA WORKMANSHIP STANDARDS and the Lineman’s splice.
requestIdleCallback
See Improving responsiveness in text inputs for an explanation of how to use JavaScript requestIdleCallback for improved browser responsiveness:
let queued = false
textarea.addEventListener('input', () => {
if (!queued) {
queued = true
requestIdleCallback(() => {
updateUI(textarea.value)
queued = false
})
}
})
Framework Patterns
A great article Framework Patterns talking about approaches to framework implementation:
- Callback function
- Subclassing
- Interfaces
- Imperative registration API
- Convention over configuration
- Metaclass based registration
- Language integrated registration
- DSL-based declaration
- Imperative declaration
- Language integrated declaration
Streams in PHP
Today I came across A Guide to Streams in PHP: In-Depth Tutorial With Examples.
Falsehoods Programmers Believe About Phone Numbers
Some notes from Google about Falsehoods Programmers Believe About Phone Numbers.
Brother P-touch PT-H105 settings
I made some notes about the settings of my Brother PT-H105 label maker.
Best solder wire
So over here the author recommends C511 solder:
Once you find a good brand of solder that flows smoothly, doesn’t make a mess, and gives you excellent joints, you don’t easily switch to something else. A spool of C511 solder isn’t cheap, but it offers amazing quality. I’ve been forced to use cheap solder in the workplace before, and usually end up taking in my Loctite solder to use. Some cheap solder flows like mud or has flux that makes a huge mess on your board. C511 is a no-clean solder that is an RoHS compliant Tin/Silver/Copper blend. You can get it in a range of diameters; I’ll typically have a roll of 0.56mm and a roll of 1.63mm on hand. The 0.56mm is good for fine pitch components, and the 1.63mm for tinning thick wires or large components.
Soldering Crash Course
Today I watched Soldering Crash Course: Basic Techniques, Tips and Advice.
How to create a file and mount it as a filesystem
As seen over on How do I create a file and mount it as a filesystem? the answer is that you need to use the -o loop option:
mount -o loop /path/to/file /path/to/mount
Basic schema inference for JSON
Today via lobsters: Shape a TypeScript library for schema inference.