What is asynchronous I/O?
The web services I build spend most of their time doing one of these two classes of things:
- Processing – Burning CPU cycles calculating things. For example JSON parsing, HTML rendering, image processing, etc.
- I/O – Waiting for some event external to the CPU/RAM system to finish. For example an HTTP request or DNS request.
(more…)
Comments Off on JavaScript asynchronous functions and error handling
It’s somewhat common for some web pages to require that you enter your password by clicking buttons instead of using a regular form input field. For example the loans.com.au login screen does this.
The stated reason is usually security. However we should all be using password managers anyway, so this is quite annoying.
(more…)
Comments Off on Quickly remove read-only web page form fields with a bookmarklet
I believe the behaviour of the this keyword in JavaScript is one of the most confusing and poorly thought out parts of the language. If you understand how objects and classes work in some other language, but don’t understand why JavaScript behaves weirdly, this blog aims to help you out. By the end you’ll understand how this works and how to make it work for you.
(more…)
Comments Off on Understanding ‘this’ in JavaScript