longnow's comments

longnow | 5 years ago | on: A Modern JavaScript Tutorial

There is a chapter called ‘ninja code’, which is full of terrible advice. A small example.

> The ideal name for a variable is data. Use it everywhere you can.

There is one small comment at the top of the chapter, which says ‘Irony detected’. Is there really a whole chapter written Ironically? It would be very easy to read this and think it was real advice.

(And if it is real advice, and I’m completely misunderstanding, then I can’t possibly recommend this book).

longnow | 6 years ago | on: Local-first software: you own your data, in spite of the cloud

I've been following a local-first methodology without realising it for an app that I've been developing. It's a workout-tracking app called harder better faster fitter. It's designed for mobile use in the gym.

https://harderbetterfasterfitter.com/

At the moment the app is a local only service and there aren't any backups. Next year I plan to add a backend. I'll be keeping some of the ideas in this article in mind. Currently I'm using the browser's local storage api to store data locally. It mostly works, but will be bolstered significantly with a cloud backup.

longnow | 7 years ago | on: Ask HN: Best way to test accessibility of a website?

You can use chrome dev tools. Right click the window and click 'inspect'. In the 'Audits' tab, you can run an audit for accessibility. It runs your website and checks it against common accessibility criteria, giving you a score out of 100.

On a side note, running this page through the accessibility audit, gives a score of 33. Perhaps HN has some work to do on accessibility.

longnow | 7 years ago | on: Monokai Sublime Text Syntax Colours for VIM

Inspired by Sublime Text's interpretation of monokai, I created `vim-monokai-tasty`, a colour scheme for VIM. The plugin includes a matching vim-airline theme and matching lightline.vim theme.
page 1