This via r/programming today: A collective list of free APIs for use in software and web development.
Category Archives: Programming
Favourite papers
So there’s a list of interesting papers over here: My favorite papers. I didn’t have time to read them all so I picked The Ubiquitous B-Tree and just read that.
Useful MariaDB Queries
programming is terrible
There’s some fun stuff over here: programming is terrible.
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.
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.