<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: nitroll</title><link>https://news.ycombinator.com/user?id=nitroll</link><description>Hacker News RSS</description><docs>https://hnrss.org/</docs><generator>hnrss v2.1.1</generator><lastBuildDate>Tue, 28 Jul 2026 10:42:32 +0000</lastBuildDate><atom:link href="https://hnrss.org/user?id=nitroll" rel="self" type="application/rss+xml"></atom:link><item><title><![CDATA[New comment by nitroll in "Touchpad Blocker: Disable touch-pad while typing"]]></title><description><![CDATA[
<p>The trackpoint on Thinkpads is fantastic once you get used to it.</p>
]]></description><pubDate>Tue, 14 Mar 2023 12:17:52 +0000</pubDate><link>https://news.ycombinator.com/item?id=35150273</link><dc:creator>nitroll</dc:creator><comments>https://news.ycombinator.com/item?id=35150273</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=35150273</guid></item><item><title><![CDATA[New comment by nitroll in "Mutable value types are evil Sort of"]]></title><description><![CDATA[
<p>But isn't that pretty much the distinction between value and reference types?</p>
]]></description><pubDate>Tue, 15 Nov 2022 10:30:41 +0000</pubDate><link>https://news.ycombinator.com/item?id=33607504</link><dc:creator>nitroll</dc:creator><comments>https://news.ycombinator.com/item?id=33607504</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=33607504</guid></item><item><title><![CDATA[New comment by nitroll in "My lab went from 4000 kg to 130 kg of waste a year"]]></title><description><![CDATA[
<p><a href="https://fr.wikipedia.org/wiki/Grave_(titre)" rel="nofollow">https://fr.wikipedia.org/wiki/Grave_(titre)</a> somewhat equivalent of count or earl</p>
]]></description><pubDate>Thu, 04 Aug 2022 07:45:22 +0000</pubDate><link>https://news.ycombinator.com/item?id=32340271</link><dc:creator>nitroll</dc:creator><comments>https://news.ycombinator.com/item?id=32340271</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=32340271</guid></item><item><title><![CDATA[New comment by nitroll in "Design of This Website (2021)"]]></title><description><![CDATA[
<p>My solution was to close the tab...</p>
]]></description><pubDate>Wed, 06 Apr 2022 09:13:35 +0000</pubDate><link>https://news.ycombinator.com/item?id=30930044</link><dc:creator>nitroll</dc:creator><comments>https://news.ycombinator.com/item?id=30930044</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=30930044</guid></item><item><title><![CDATA[New comment by nitroll in "Why general inheritance is flawed and how to finally fix it"]]></title><description><![CDATA[
<p>In Python you could do something like:<p><pre><code>  class Base:
     def func(self):
         print("In Base.func:", self.name)
  
  class Child:
     def __init__(self, name):
         self.name = name
     func = Base.func
  
  c = Child("Foo")
  c.func() #=> In Base.func: Foo</code></pre></p>
]]></description><pubDate>Mon, 13 Dec 2021 16:29:49 +0000</pubDate><link>https://news.ycombinator.com/item?id=29541092</link><dc:creator>nitroll</dc:creator><comments>https://news.ycombinator.com/item?id=29541092</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=29541092</guid></item><item><title><![CDATA[New comment by nitroll in "It’s not a self-driving car unless you can sleep in it"]]></title><description><![CDATA[
<p>Most alarms wake you at a certain time, not a certain location.</p>
]]></description><pubDate>Wed, 28 Jul 2021 09:52:01 +0000</pubDate><link>https://news.ycombinator.com/item?id=27982012</link><dc:creator>nitroll</dc:creator><comments>https://news.ycombinator.com/item?id=27982012</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=27982012</guid></item><item><title><![CDATA[New comment by nitroll in "Teeing, a hidden gem in the Java API"]]></title><description><![CDATA[
<p>Actually it seems sum is special cased to fail for strings, but otherwise you are correct</p>
]]></description><pubDate>Tue, 11 May 2021 15:03:15 +0000</pubDate><link>https://news.ycombinator.com/item?id=27118918</link><dc:creator>nitroll</dc:creator><comments>https://news.ycombinator.com/item?id=27118918</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=27118918</guid></item><item><title><![CDATA[New comment by nitroll in "Magicimport.py: Python code that fetches its dependencies without complaining"]]></title><description><![CDATA[
<p>One big reason is that ubuntu splits out venv into its own package basically "breaking" python. People then don't know about the venv module and continues using the virtualenv, both due to this preceding venv, and because that is usually the word used to describe the concept.</p>
]]></description><pubDate>Sun, 11 Oct 2020 01:13:39 +0000</pubDate><link>https://news.ycombinator.com/item?id=24743120</link><dc:creator>nitroll</dc:creator><comments>https://news.ycombinator.com/item?id=24743120</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=24743120</guid></item><item><title><![CDATA[New comment by nitroll in "One Year of Nushell"]]></title><description><![CDATA[
<p>Like
    which nu | xargs dirname</p>
]]></description><pubDate>Tue, 25 Aug 2020 20:55:22 +0000</pubDate><link>https://news.ycombinator.com/item?id=24275994</link><dc:creator>nitroll</dc:creator><comments>https://news.ycombinator.com/item?id=24275994</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=24275994</guid></item><item><title><![CDATA[New comment by nitroll in "GitHub Super Linter: one linter to rule them all"]]></title><description><![CDATA[
<p>No, you need an editor that abstracts away the indentation and uses the existing style of the file. I use the tab key to indent code, my editor (Emacs) is configured to just cycle through sane choices.</p>
]]></description><pubDate>Sat, 20 Jun 2020 23:24:08 +0000</pubDate><link>https://news.ycombinator.com/item?id=23588309</link><dc:creator>nitroll</dc:creator><comments>https://news.ycombinator.com/item?id=23588309</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=23588309</guid></item><item><title><![CDATA[New comment by nitroll in "Linear types are merged in GHC"]]></title><description><![CDATA[
<p>Because you can see their usage as a series of "points" linked to exactly one other point, that forms a "line", as opposed to other systems where you could have more of a graph or tree.</p>
]]></description><pubDate>Fri, 19 Jun 2020 20:37:01 +0000</pubDate><link>https://news.ycombinator.com/item?id=23578643</link><dc:creator>nitroll</dc:creator><comments>https://news.ycombinator.com/item?id=23578643</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=23578643</guid></item><item><title><![CDATA[New comment by nitroll in "Stupidly simple (but surprisingly helpful) tool for developers using Bootstrap"]]></title><description><![CDATA[
<p>Yeah, because it's not like we don't appropriate words all over the place anyway, and reuse words for all kinds of similar and dissimilar purposes.<p>Using "breakpoints" to describe the /points/ where the layout /breaks/ over is not a new term and quite well understood when talking design / layout.<p><a href="https://developer.mozilla.org/en-US/docs/Learn/CSS/CSS_layout/Media_queries#How_to_choose_breakpoints" rel="nofollow">https://developer.mozilla.org/en-US/docs/Learn/CSS/CSS_layou...</a><p><a href="https://www.w3schools.com/css/css_rwd_mediaqueries.asp" rel="nofollow">https://www.w3schools.com/css/css_rwd_mediaqueries.asp</a></p>
]]></description><pubDate>Wed, 03 Jun 2020 21:17:30 +0000</pubDate><link>https://news.ycombinator.com/item?id=23408886</link><dc:creator>nitroll</dc:creator><comments>https://news.ycombinator.com/item?id=23408886</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=23408886</guid></item><item><title><![CDATA[New comment by nitroll in "Why does `True == False is False` evaluate to False in Python? (2013)"]]></title><description><![CDATA[
<p>And is that so bad?
So often i did stuff like that, then finding I actually need the result of x.calculate_weight() inside the condition, or to debug it or log it in some way. Then it has to be extracted anyway.</p>
]]></description><pubDate>Sat, 02 May 2020 17:39:34 +0000</pubDate><link>https://news.ycombinator.com/item?id=23053456</link><dc:creator>nitroll</dc:creator><comments>https://news.ycombinator.com/item?id=23053456</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=23053456</guid></item><item><title><![CDATA[New comment by nitroll in "SICP in Python"]]></title><description><![CDATA[
<p>It does make sense to evaluate the default value for the parameter at the point of definition for serveral reasons.
First of all, the default value does not have to be a literal value, and if you wanted it to be evaluated at call time the function would need to capture all of the default values in a closure.<p><pre><code>  default = 10
  def foo(x=default):
      return x
  default = 20
  assert foo() == 10
</code></pre>
I think tat makes a lot of sense.<p>It could also be that the default value is a more ocmplex expression, we could use a function to generate a default argument.<p><pre><code>  def foo(x=create_default(y, z))
</code></pre>
By evaluating it at definition time we only have to evaluate the expression once and not have this weird lazy expression.<p>And yes it is used, for example the fastapi Dependency Injection system has been build quite cleverly using the ability to construct default values<p><a href="https://fastapi.tiangolo.com/tutorial/query-params-str-validations/" rel="nofollow">https://fastapi.tiangolo.com/tutorial/query-params-str-valid...</a><p>Yes it is one of those things you just have to learn, but there are tons of stuff like that in most programming languages.</p>
]]></description><pubDate>Tue, 28 Apr 2020 21:50:30 +0000</pubDate><link>https://news.ycombinator.com/item?id=23012552</link><dc:creator>nitroll</dc:creator><comments>https://news.ycombinator.com/item?id=23012552</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=23012552</guid></item><item><title><![CDATA[New comment by nitroll in "Python 2.7.18, the last release of Python 2"]]></title><description><![CDATA[
<p>What difference would it make whether the change had been called 3.8 or 4.0?</p>
]]></description><pubDate>Tue, 21 Apr 2020 21:16:09 +0000</pubDate><link>https://news.ycombinator.com/item?id=22939412</link><dc:creator>nitroll</dc:creator><comments>https://news.ycombinator.com/item?id=22939412</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=22939412</guid></item><item><title><![CDATA[New comment by nitroll in "Codeberg: a free, non-commercial GitHub alternative"]]></title><description><![CDATA[
<p>I would rather just use google translate to do it automatically on the entire page, and yes I do that quite regularly from German.</p>
]]></description><pubDate>Tue, 07 Apr 2020 21:54:58 +0000</pubDate><link>https://news.ycombinator.com/item?id=22807889</link><dc:creator>nitroll</dc:creator><comments>https://news.ycombinator.com/item?id=22807889</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=22807889</guid></item><item><title><![CDATA[New comment by nitroll in "Raising severity to serious for some Python 2 leaf packages with no Python 3"]]></title><description><![CDATA[
<p>Distributing a container, virtual machine or something similar.</p>
]]></description><pubDate>Tue, 15 Oct 2019 17:39:06 +0000</pubDate><link>https://news.ycombinator.com/item?id=21261297</link><dc:creator>nitroll</dc:creator><comments>https://news.ycombinator.com/item?id=21261297</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=21261297</guid></item><item><title><![CDATA[New comment by nitroll in "What's Coming in Python 3.8"]]></title><description><![CDATA[
<p>I think the importance is the orthogonality of the features.
Eg. having so many ways to do string formatting or now multiple ways of doing assigments are not ortogonal and thus can be seen as cluttering.</p>
]]></description><pubDate>Thu, 18 Jul 2019 22:01:50 +0000</pubDate><link>https://news.ycombinator.com/item?id=20474353</link><dc:creator>nitroll</dc:creator><comments>https://news.ycombinator.com/item?id=20474353</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=20474353</guid></item><item><title><![CDATA[New comment by nitroll in "What, No Python in RHEL 8 Beta?"]]></title><description><![CDATA[
<p>python3 -m pip install foo<p>It also works for python2. I try to avoid using python tools that installs their own scripts and go for calling the module through python. This also works for python3/2 -m venv venv</p>
]]></description><pubDate>Wed, 19 Dec 2018 22:22:26 +0000</pubDate><link>https://news.ycombinator.com/item?id=18720392</link><dc:creator>nitroll</dc:creator><comments>https://news.ycombinator.com/item?id=18720392</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=18720392</guid></item><item><title><![CDATA[New comment by nitroll in "Ask HN: Whats the best alternative to Inbox?"]]></title><description><![CDATA[
<p><a href="https://blog.newtonhq.com/goodbye-newton-ae6b506fd94f" rel="nofollow">https://blog.newtonhq.com/goodbye-newton-ae6b506fd94f</a></p>
]]></description><pubDate>Mon, 17 Sep 2018 19:53:53 +0000</pubDate><link>https://news.ycombinator.com/item?id=18009388</link><dc:creator>nitroll</dc:creator><comments>https://news.ycombinator.com/item?id=18009388</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=18009388</guid></item></channel></rss>