<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Hacker News: ColeShepherd</title><link>https://news.ycombinator.com/user?id=ColeShepherd</link><description>Hacker News RSS</description><docs>https://hnrss.org/</docs><generator>hnrss v2.1.1</generator><lastBuildDate>Fri, 17 Apr 2026 17:38:25 +0000</lastBuildDate><atom:link href="https://hnrss.org/user?id=ColeShepherd" rel="self" type="application/rss+xml"></atom:link><item><title><![CDATA[New comment by ColeShepherd in "John Carmack on mutable variables"]]></title><description><![CDATA[
<p>Some potential alternatives to consider:<p>1.<p><pre><code>    classList = ['highlighted', 'primary']
        .concatif(discount, 'on-sale')
        .join(' ')
</code></pre>
2.<p><pre><code>    classList = ' '.join(['highlighted', 'primary'] + (['on-sale'] if discount else []))
</code></pre>
3.<p><pre><code>    mut classList = ['highlighted', 'primary']
    if discount:
        classList.append('on-sale')
    classList = ' '.join(classList)

    freeze classList

</code></pre>
4.<p><pre><code>    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)</code></pre></p>
]]></description><pubDate>Fri, 31 Oct 2025 16:53:08 +0000</pubDate><link>https://news.ycombinator.com/item?id=45774119</link><dc:creator>ColeShepherd</dc:creator><comments>https://news.ycombinator.com/item?id=45774119</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=45774119</guid></item><item><title><![CDATA[New comment by ColeShepherd in "Study mode"]]></title><description><![CDATA[
<p>> present knowledge as a tree that you can expand to get deeper<p>I'm very interested in this. I've considered building this, but if this already exists, someone let me know please!</p>
]]></description><pubDate>Tue, 29 Jul 2025 20:42:18 +0000</pubDate><link>https://news.ycombinator.com/item?id=44728040</link><dc:creator>ColeShepherd</dc:creator><comments>https://news.ycombinator.com/item?id=44728040</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=44728040</guid></item><item><title><![CDATA[New comment by ColeShepherd in "Show HN: I built an app to stop me doomscrolling by touching grass"]]></title><description><![CDATA[
<p>Can you please open-source it?</p>
]]></description><pubDate>Mon, 24 Feb 2025 17:49:45 +0000</pubDate><link>https://news.ycombinator.com/item?id=43162534</link><dc:creator>ColeShepherd</dc:creator><comments>https://news.ycombinator.com/item?id=43162534</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=43162534</guid></item><item><title><![CDATA[New comment by ColeShepherd in "Show HN: I built an app to stop me doomscrolling by touching grass"]]></title><description><![CDATA[
<p>I would love an app with a configurable "unlock" task. Ex:<p>- Do a quick mindfulness/breathing exercise.<p>- Answer a quick quiz question related to something you're learning.<p>- Remind you of pending to-dos<p>Anyone know of an app like this?</p>
]]></description><pubDate>Mon, 24 Feb 2025 17:48:33 +0000</pubDate><link>https://news.ycombinator.com/item?id=43162519</link><dc:creator>ColeShepherd</dc:creator><comments>https://news.ycombinator.com/item?id=43162519</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=43162519</guid></item><item><title><![CDATA[New comment by ColeShepherd in "Ask HN: Those making $0/month or less on side projects – Show and tell"]]></title><description><![CDATA[
<p>Interactive music theory lessons & exercises: <a href="https://falsetto.app/" rel="nofollow">https://falsetto.app/</a><p>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: 
<a href="https://github.com/ColeDeanShepherd/Falsetto">https://github.com/ColeDeanShepherd/Falsetto</a></p>
]]></description><pubDate>Fri, 27 Jan 2023 17:19:36 +0000</pubDate><link>https://news.ycombinator.com/item?id=34548732</link><dc:creator>ColeShepherd</dc:creator><comments>https://news.ycombinator.com/item?id=34548732</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=34548732</guid></item></channel></rss>