421 karma · joined Feb 3, 2017 (9y ago) · 100 submissions
comment 2y ago · link · parent
comment 3y ago · link · parent
My perfect 4-day workweek is having the Wednesday off so I have a 'mini-weekend' in my week. I only ever have to work 1 more day until I have some time to clear my head, make some music, etc. It feels like a more healthy work/life balance. And I feel sharper after a day off.
comment 3y ago · link · parent
I don't 'hate' loops, I still use them sometimes. Personally I just try to avoid them (in JS) because I feel like I can solve my problem without any side-effects. It's something less to think about. It's nice when the logic/variables for a function are encapsulated entirely inside that function. It also makes it easy to extract functions so you can re-use them elsewhere.
comment 3y ago · link · parent
There’s enough time for smartphone use outside school hours. It’s a waste of time/energy for the tutor if no one is paying attention. Of course I’d try to make the lecture as interesting and ‘fun’ as possible, but winning their attention over Insta/TikTok/etc is challenging.
comment 3y ago · link · parent
Deleting social media apps makes your phone _much_ less interesting though!
comment 3y ago · link · parent
comment 3y ago · link · parent
comment 3y ago · link · parent
[0]: https://developer.mozilla.org/en-US/docs/Web/API/WebXR_Devic...
comment 3y ago · link · parent
I'm currently using an Elektron Digitakt to sequence my analog gear - it's great - but unfortunately the DT is limited to 8 MIDI tracks with only 1 LFO per MIDI track to automate MIDI CC data. I'd love a Cirklon Sequentix but the waitlist is just too long (3 years atm, arghh).
I wonder if I can hook up something like a Midiface 16x16 (https://miditech.de/en/portfolio/midiface-16x16/) to the RPi. The Midiface is Class Compliant so maybe the RPi can use it natively..(?) I'm a bit worried about performance though.
Thanks for your suggestions, I'm going to look into them!
comment 3y ago · link · parent
mkdir -p myproject/{public,src} && cd myproject
touch src/index.js public/index.html
npm init -y && npm i -D react-scripts
# add to package.json scripts:
# "start": "react-scripts start",
# "build": "react-scripts build",
npm start
Now you've got a hot-reloading development server that can handle (and transpile) ES6 / TypeScript, import JS/CSS with 'import', etc. If you want more control over webpack you can 'eject' to be able to edit the webpack configs. Note that you don't need to use React to use react-scripts. I just want to get up to speed fast, without doing a 4hr webpack deep dive.Hot reloading definitely saves me some extra RSI.
comment 4y ago · link · parent
[0]: https://marketplace.visualstudio.com/items?itemName=timonwon...
comment 4y ago · link · parent
I find it so fascinating that simple rules can result in complex behaviour and natural-looking patterns. I'm keeping a sketchbook with related Processing/WebGL graphics on my website[0] if anyone is interested :)
comment 4y ago · link · parent
My former self would be very jealous of the jobs that are available now for young people. Especially bike delivery jobs. Being a paperboy was pretty heavy work since I had to deliver papers _and_ ad magazines, which had to be folded into the paper and took hours of preparation. Once my bike flipped on it's back because of the weight and I couldn't get it back on it's wheels. I don't miss the heavy bags and ink stains on my hands, but I saved up enough money for a green iPod Mini! Jailbroken, it actually ran Doom in black and white :)