News for hackers. Stuff that matters.

lukehaas

Re:Music Theory for Programmers on Tuesday August 18, 2026 @10:20AM (#49346026)
I can't play an instrument, even after multiple attempts. The main problem for me was understanding the theory. When you start learning, you're expected to accept a lot of things at face value with very little explanation for why things in music are the way they are.

This article documents my own journey into understanding music through writing code and taking a first-principles approach. This enabled me to understand things like why there are 12 notes and why notes in the same key sound good. Hopefully, if you are in a similar position to me, this will give you a foundational understanding of music that you can reason about instead of memorising.

Disclosure: I built RunJS, and this is on its blog. It gets a mention in the last paragraph and nowhere else.

Show HN: RunPy – simple desktop app for tinkering with Python

https://runpy.app

RunPy is a playground app that gives you a quick and easy way to run Python code. There's no need to create files or run anything in the terminal; you don't even need Python set up on your machine.It's handy for learning, teaching or doing quick experiments. Available for mac, windows and linux. Please give it a try, and I'd be really keen to hear any thoughts, feedback or ideas for...

( Read More... | no comments | on HN )
I built https://runjs.app because I wanted an easy way to run JavaScript and test out ideas. It turned out that a lot of other people wanted the same thing.

The first version was free and very basic. After getting a lot of suggestions and feedback from the people using it, I added more features and introduced a freemium pricing model.

I built something that's similar to what you're describing, here's an article about it: https://www.hackster.io/lukehaas/e-ink-display-for-daily-new...

It combines a Pi Zero with a 2000mAh lipo, updates every 6 hours and lasts for around 90 days per charge.

Gatsby is worth taking a look at.
Re:Ask HN: How can I get better at bash? on Monday June 26, 2017 @09:16AM (#14636515)
Just googled ABSG and all I got was 'Adult Bible Study Guide'
Re:Show HN: Generate Lorem Ipsum text from your terminal on Tuesday January 17, 2017 @08:50AM (#13417454)
No new features planned at the moment but I'd be open to suggestions or pull requests.
It's important for web developers to experiment with new browser features. Browser vendors encourage this as it can help them with crushing bugs early and refining their specs.
Unfortunately Firefox only supports clip-path behind a flag.
Re:Show HN: A collection of useful regex patterns on Wednesday November 23, 2016 @02:27PM (#13025079)
Thanks, those are great, I'll add them in.
Re:Show HN: A collection of useful regex patterns on Wednesday November 23, 2016 @02:26PM (#13025075)
Thanks, I'll update that
Made roughly $300 so far this year from carbon ads on my project sites:

http://projects.lukehaas.me/css-loaders/ http://projects.lukehaas.me/scrollify/

Re:Ask HN: Is phonegap/cordova still relevant? on Wednesday October 12, 2016 @01:51PM (#12695052)
I think Cordova is increasing in relevance. Over the last couple of years mobile devices have reached a level of performance that makes hybrid apps feel native. When you combine Cordova with Ionic you can create write-once apps that deploy to any device and have a native look and feel.
Re:Introduction to HTML5 Canvas on Thursday May 23, 2013 @07:53AM (#5756292)
The shapely library - https://github.com/lukehaas/Shapely - makes working with the canvas much simpler