There’s some fun stuff over here: programming is terrible.
Author Archives: Jay Jay
Taking a Stand in the War on General-Purpose Computing
An essay about Taking a Stand in the War on General-Purpose Computing.
Cross-Site Request Forgery Prevention Cheat Sheet
I happened upon Cross-Site Request Forgery Prevention Cheat Sheet in my travels.
Library Writing Realizations
Some thoughts on writing software libraries: Library Writing Realizations.
GPIO Programming: Using the sysfs Interface
Today I happened upon GPIO Programming: Using the sysfs Interface.
Electrical Engineering Experiments: Experiment 1
So I got myself a copy of Electrical Engineering Experiments (from this Humble Bundle), and this is the first experiment:
As my mate Craig explained this experiment is designed to get you to understand that you *always* have a voltage divider situation going on, even if it doesn’t look like there’s a resistor in the circuit.
Gareth Branwyn
This dude Gareth Branwyn has a few interesting books.
NASA WORKMANSHIP STANDARDS
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