<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: olavk</title><link>https://news.ycombinator.com/user?id=olavk</link><description>Hacker News RSS</description><docs>https://hnrss.org/</docs><generator>hnrss v2.1.1</generator><lastBuildDate>Thu, 16 Apr 2026 05:42:22 +0000</lastBuildDate><atom:link href="https://hnrss.org/user?id=olavk" rel="self" type="application/rss+xml"></atom:link><item><title><![CDATA[New comment by olavk in "Introduction to Object Oriented Programming in Python"]]></title><description><![CDATA[
<p>If you only write code which you yourself will read and maintain, then you should definitely do whatever you feel works best for you and matches your way of thinking.</p>
]]></description><pubDate>Wed, 24 Oct 2018 18:48:50 +0000</pubDate><link>https://news.ycombinator.com/item?id=18295238</link><dc:creator>olavk</dc:creator><comments>https://news.ycombinator.com/item?id=18295238</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=18295238</guid></item><item><title><![CDATA[New comment by olavk in "Introduction to Object Oriented Programming in Python"]]></title><description><![CDATA[
<p>Well written code is obviously better than badly written code. But why assume the functional-style is better written than the idiomatic Python? I think a good developer understand the context they work in rather than try to fit a square peg in a round hole.<p>I wouldn't like to maintain Haskell code written by someone who thinks everything should look like Python. And vice-versa.</p>
]]></description><pubDate>Wed, 24 Oct 2018 17:51:11 +0000</pubDate><link>https://news.ycombinator.com/item?id=18294714</link><dc:creator>olavk</dc:creator><comments>https://news.ycombinator.com/item?id=18294714</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=18294714</guid></item><item><title><![CDATA[New comment by olavk in "Introduction to Object Oriented Programming in Python"]]></title><description><![CDATA[
<p>I believe it <i>started</i> as a way to model real-world object. Simula was designed for simulations. But OO turned out to be useful for much more. The simulation use case mostly live on in tutorial and examples, spreading confusion to beginners.<p>But I also think the "message passing" metaphor has outlived its usefulness the same way. A caller does not need to know how the callee is implemented. Sure, but this is the same in any language with functions/procedure, this is not something specific for OO. The idea of message passing is a bit deeper, for example that the client does not even know it is calling a method. It sends a message, and the object answers, even if it is just by throwing an error that the message is not supported. This is how Smalltalk and (I think) Ruby works, but not at all how a statically types language like C# works. And it is not how Python works either. In Python you obtain a method reference from an object and then invoke it. So if you apply the message passing metaphor, your are actually passing the message to the <i>method</i> rather than the object itself. Which I think is just a confusing way to describe a method call.</p>
]]></description><pubDate>Wed, 24 Oct 2018 17:35:47 +0000</pubDate><link>https://news.ycombinator.com/item?id=18294569</link><dc:creator>olavk</dc:creator><comments>https://news.ycombinator.com/item?id=18294569</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=18294569</guid></item><item><title><![CDATA[New comment by olavk in "Rust can be difficult to learn and frustrating, but it's also very exciting"]]></title><description><![CDATA[
<p>I like removing superfluous punctuation, but if parentheses are removed from method signatures than they should also be removed from invocations, which in turn comes with its own set of readability issues. I'm not a fan of the $ operator in Haskell, for example.</p>
]]></description><pubDate>Wed, 24 Oct 2018 10:31:40 +0000</pubDate><link>https://news.ycombinator.com/item?id=18291153</link><dc:creator>olavk</dc:creator><comments>https://news.ycombinator.com/item?id=18291153</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=18291153</guid></item><item><title><![CDATA[New comment by olavk in "Rust can be difficult to learn and frustrating, but it's also very exciting"]]></title><description><![CDATA[
<p>Haskell does not have borrowing and lifetime specifiers though, which is what makes the Rust example more dense.</p>
]]></description><pubDate>Tue, 23 Oct 2018 10:47:26 +0000</pubDate><link>https://news.ycombinator.com/item?id=18282269</link><dc:creator>olavk</dc:creator><comments>https://news.ycombinator.com/item?id=18282269</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=18282269</guid></item><item><title><![CDATA[New comment by olavk in "Rust can be difficult to learn and frustrating, but it's also very exciting"]]></title><description><![CDATA[
<p>It is somewhat unfair to compare this to Python, since a lot of the simplicity in Python comes from the semantics (dynamically typed, garbage collected and so on). Rust <i>need</i> to express all this information (types, lifetimes etc.), so it will necessarily be more dense. The question is if this information could be expressed in a more readable syntax. This might be possible, but I would like to see a suggestion of how.<p>I guess the signature could be made more readable by using a few type aliases. The hardest part to read is the nested types.<p>I'm with you on the macro syntax, it is very hard to read. It is not easy to create a readable macro syntax though. All languages I know have hard-to-read macros, so this is not yet a solved problem.</p>
]]></description><pubDate>Tue, 23 Oct 2018 10:46:11 +0000</pubDate><link>https://news.ycombinator.com/item?id=18282264</link><dc:creator>olavk</dc:creator><comments>https://news.ycombinator.com/item?id=18282264</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=18282264</guid></item><item><title><![CDATA[New comment by olavk in "Rust can be difficult to learn and frustrating, but it's also very exciting"]]></title><description><![CDATA[
<p>What editor does not support indenting a block? In most editors I know you select the block and hit tab, or shift-tab to outdent.</p>
]]></description><pubDate>Tue, 23 Oct 2018 10:17:23 +0000</pubDate><link>https://news.ycombinator.com/item?id=18282160</link><dc:creator>olavk</dc:creator><comments>https://news.ycombinator.com/item?id=18282160</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=18282160</guid></item><item><title><![CDATA[New comment by olavk in "The Great Endumbening"]]></title><description><![CDATA[
<p>So again a pet hypothesis which can explain both rising <i>and</i> falling IQ. So what observation could theoretically <i>disprove</i> this hypothesis?<p>Note that you can state exactly the opposite hypothesis and still claim the numbers support it. The use of gaming consoles and smartphones <i>improve</i> IQ, but this effect have maxed out in Scandinavia.</p>
]]></description><pubDate>Tue, 23 Oct 2018 09:07:06 +0000</pubDate><link>https://news.ycombinator.com/item?id=18281871</link><dc:creator>olavk</dc:creator><comments>https://news.ycombinator.com/item?id=18281871</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=18281871</guid></item><item><title><![CDATA[New comment by olavk in "The Great Endumbening"]]></title><description><![CDATA[
<p>> The roman civilization used lead pipes for drinking water.<p>True, but the theory that this affected public health is a myth.</p>
]]></description><pubDate>Tue, 23 Oct 2018 08:49:07 +0000</pubDate><link>https://news.ycombinator.com/item?id=18281793</link><dc:creator>olavk</dc:creator><comments>https://news.ycombinator.com/item?id=18281793</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=18281793</guid></item><item><title><![CDATA[New comment by olavk in "The Great Endumbening"]]></title><description><![CDATA[
<p>Amazing that the same pet hypothesis can explain both rising and falling IQ.</p>
]]></description><pubDate>Tue, 23 Oct 2018 08:47:11 +0000</pubDate><link>https://news.ycombinator.com/item?id=18281788</link><dc:creator>olavk</dc:creator><comments>https://news.ycombinator.com/item?id=18281788</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=18281788</guid></item><item><title><![CDATA[New comment by olavk in "The Great Endumbening"]]></title><description><![CDATA[
<p>So why is IQ increasing in the US while declining in Northern Europe?</p>
]]></description><pubDate>Tue, 23 Oct 2018 07:26:30 +0000</pubDate><link>https://news.ycombinator.com/item?id=18281432</link><dc:creator>olavk</dc:creator><comments>https://news.ycombinator.com/item?id=18281432</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=18281432</guid></item><item><title><![CDATA[New comment by olavk in "The Great Endumbening"]]></title><description><![CDATA[
<p>So why is this happening in Scandinavia but not in the US? Doesn't the US have just as many play stations and smartphones?</p>
]]></description><pubDate>Tue, 23 Oct 2018 07:22:40 +0000</pubDate><link>https://news.ycombinator.com/item?id=18281413</link><dc:creator>olavk</dc:creator><comments>https://news.ycombinator.com/item?id=18281413</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=18281413</guid></item><item><title><![CDATA[New comment by olavk in "Rust can be difficult to learn and frustrating, but it's also very exciting"]]></title><description><![CDATA[
<p>Django is not going to be rewritten in Julia. Neither is Linux going to be rewritten in Python. Different languages have different domains. Some of these comments seem to think all languages is competing in the same domain as if Rust is a direct competitor to Julia or JavaScript.</p>
]]></description><pubDate>Tue, 23 Oct 2018 07:13:45 +0000</pubDate><link>https://news.ycombinator.com/item?id=18281367</link><dc:creator>olavk</dc:creator><comments>https://news.ycombinator.com/item?id=18281367</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=18281367</guid></item><item><title><![CDATA[New comment by olavk in "Rust can be difficult to learn and frustrating, but it's also very exciting"]]></title><description><![CDATA[
<p>Rust will not steal Pythons dinner, they are used for completely different domains. The comment was saying that Rust might be a realistic alternative <i>to C/C++/Fortran</i> for modules which are <i>not</i> written in Python.</p>
]]></description><pubDate>Tue, 23 Oct 2018 07:09:46 +0000</pubDate><link>https://news.ycombinator.com/item?id=18281350</link><dc:creator>olavk</dc:creator><comments>https://news.ycombinator.com/item?id=18281350</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=18281350</guid></item><item><title><![CDATA[New comment by olavk in "Rust can be difficult to learn and frustrating, but it's also very exciting"]]></title><description><![CDATA[
<p>Good point about the learning curve. I don't think Rust is especially difficult overall, but you need to understand a lot before you get anywhere. Haskell kind of have the same problem, where you need to understand advanced features like monads before you can even write hello world.</p>
]]></description><pubDate>Tue, 23 Oct 2018 06:59:45 +0000</pubDate><link>https://news.ycombinator.com/item?id=18281304</link><dc:creator>olavk</dc:creator><comments>https://news.ycombinator.com/item?id=18281304</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=18281304</guid></item><item><title><![CDATA[New comment by olavk in "Rust can be difficult to learn and frustrating, but it's also very exciting"]]></title><description><![CDATA[
<p>Comparing Haskell to JavaScript is silly - JavaScript is popular because it is the only option in the browser. It has noting to do with the quality of the language itself. If VBScript had won, everyone would be using that. If Netscape had decided to use Scheme or Haskell as the scripting language, this is what everyone would be using.<p>Rust is competing in the space of C and C++, it is not competing against Java or Python. People are not gong to write operating systems in Python because it feels more productive. For simpler desktop applications you may have a point, but heavyweights like Word or Photoshop are written in C++ and Rust may be a realistic migration. JavaScript or Python is not.</p>
]]></description><pubDate>Tue, 23 Oct 2018 06:53:21 +0000</pubDate><link>https://news.ycombinator.com/item?id=18281271</link><dc:creator>olavk</dc:creator><comments>https://news.ycombinator.com/item?id=18281271</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=18281271</guid></item><item><title><![CDATA[New comment by olavk in "Rust can be difficult to learn and frustrating, but it's also very exciting"]]></title><description><![CDATA[
<p>PEP-8 (more than 15 years old) recommend spaces, so unless you are deliberately looking for a fight, the question is settled.<p>Autoindent is a solution to a problem that doesn't exist in Python in the first place. Having two independent representations for blocks, one for human readers (indent) and one for compilers (braces), leads to nasty bugs when they get out of sync. Autoindent is a tool to keep them in sync. In Python there is a single representation, so nothing can get out of sync.</p>
]]></description><pubDate>Tue, 23 Oct 2018 06:31:03 +0000</pubDate><link>https://news.ycombinator.com/item?id=18281172</link><dc:creator>olavk</dc:creator><comments>https://news.ycombinator.com/item?id=18281172</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=18281172</guid></item><item><title><![CDATA[New comment by olavk in "Asterix in Translation: The Genius of Anthea Bell and Derek Hockridge"]]></title><description><![CDATA[
<p>You will see a <i>lot</i> of caricatures and ethnic stereotypes in Asterix. Primarily of European and Mediterranean nationalities though. A lot of the stories are Asterix and Obelix traveling to some region and all the stereotypes of that region is played up. If you are uncomfortable with this form of comedy, Asterix is probably not for you.</p>
]]></description><pubDate>Sat, 20 Oct 2018 15:38:47 +0000</pubDate><link>https://news.ycombinator.com/item?id=18263735</link><dc:creator>olavk</dc:creator><comments>https://news.ycombinator.com/item?id=18263735</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=18263735</guid></item><item><title><![CDATA[New comment by olavk in "Why Doesn’t Ancient Fiction Talk About Feelings? (2017)"]]></title><description><![CDATA[
<p>The Icelandic sagas certainly also portrays emotions. The characters are very much driven by emotions. The point is it is displayed entirely through their actions, not by internal monologue or direct description of their mental states like in 19th century literature.<p>Ancient lyrical poetry like Sappho on the other hand is direct expression of feelings. Ecclesiastes (in the Bible) is a monologue about the narrators feelings and mental state.<p>So it seems to more like a question of genre and narrative style rather than some kind of mental development of humanity. The sagas are not fiction, they are supposed to be about actual historical figures and events. You don't know what a historical figure actually thought and felt, only what they said and did. There are some examples in the sagas where characters directly express their feeling through poetry.</p>
]]></description><pubDate>Sat, 20 Oct 2018 06:18:59 +0000</pubDate><link>https://news.ycombinator.com/item?id=18262022</link><dc:creator>olavk</dc:creator><comments>https://news.ycombinator.com/item?id=18262022</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=18262022</guid></item><item><title><![CDATA[New comment by olavk in "This Old Lisp"]]></title><description><![CDATA[
<p>I think the "I'm going to get downvoted for this..."-baiting leads to a lot of reflexive upvotes and downvotes regardless of the actual content of the comment.</p>
]]></description><pubDate>Fri, 19 Oct 2018 12:10:16 +0000</pubDate><link>https://news.ycombinator.com/item?id=18256098</link><dc:creator>olavk</dc:creator><comments>https://news.ycombinator.com/item?id=18256098</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=18256098</guid></item></channel></rss>