ColeShepherd
Re:John Carmack on Mutable Variables
on Friday October 31, 2025 @12:53PM (#45774119)
Some potential alternatives to consider:
1.
classList = ['highlighted', 'primary']
.concatif(discount, 'on-sale')
.join(' ')
2. classList = ' '.join(['highlighted', 'primary'] + (['on-sale'] if discount else []))
3. mut classList = ['highlighted', 'primary']
if discount:
classList.append('on-sale')
classList = ' '.join(classList)
freeze classList
4. def get_class_list(discount):
mut classList = ['highlighted', 'primary']
if discount:
classList.append('on-sale')
classList = ' '.join(classList)
return classList
classList = get_class_list(discount)
Re:Study mode
on Tuesday July 29, 2025 @04:42PM (#44728040)
> present knowledge as a tree that you can expand to get deeper
I'm very interested in this. I've considered building this, but if this already exists, someone let me know please!
Re:i built an app to stop me doomscrolling by literally touching grass
on Monday February 24, 2025 @12:49PM (#43162534)
Can you please open-source it?
Re:i built an app to stop me doomscrolling by literally touching grass
on Monday February 24, 2025 @12:48PM (#43162519)
I would love an app with a configurable "unlock" task. Ex:
- Do a quick mindfulness/breathing exercise.
- Answer a quick quiz question related to something you're learning.
- Remind you of pending to-dos
Anyone know of an app like this?
Re:Ask HN: Those making $0/month or less on side projects – Show and tell
on Friday January 27, 2023 @12:19PM (#34548732)
Interactive music theory lessons & exercises: https://falsetto.app/
I tried to monetize the website a while ago but failed, and I realized it sucked the fun out of the project so I open-sourced it instead: https://github.com/ColeDeanShepherd/Falsetto