<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: aalhour</title><link>https://news.ycombinator.com/user?id=aalhour</link><description>Hacker News RSS</description><docs>https://hnrss.org/</docs><generator>hnrss v2.1.1</generator><lastBuildDate>Sun, 21 Jun 2026 15:17:48 +0000</lastBuildDate><atom:link href="https://hnrss.org/user?id=aalhour" rel="self" type="application/rss+xml"></atom:link><item><title><![CDATA[New comment by aalhour in "Ask HN: Who wants to be hired? (February 2026)"]]></title><description><![CDATA[
<p>Location: Germany (Munich)<p>Fully remote: Yes (and open to hybrid in Munich)<p>Willing to relocate: No<p>LinkedIn: <a href="https://www.linkedin.com/in/aalhour/" rel="nofollow">https://www.linkedin.com/in/aalhour/</a><p>Website: <a href="https://aalhour.com/" rel="nofollow">https://aalhour.com/</a><p>GitHub: <a href="https://github.com/aalhour" rel="nofollow">https://github.com/aalhour</a><p>Resumé/CV: available on request (has personal contact info)<p>Email: a.z.alhour(at)gmail(dot)com<p>Technologies: Go, Python, Java, k8s, docker, AWS (backend/data infra)<p>About me: A software engineer with 15 years of experience (ex-Shopify, ex-HubSpot), with prior engineering management experience. I work on the backend, did data engineering in the past and am looking for a role in backend/data infra.</p>
]]></description><pubDate>Fri, 13 Feb 2026 13:52:49 +0000</pubDate><link>https://news.ycombinator.com/item?id=47002712</link><dc:creator>aalhour</dc:creator><comments>https://news.ycombinator.com/item?id=47002712</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=47002712</guid></item><item><title><![CDATA[New comment by aalhour in "Ask HN: What Is Your Hobby?"]]></title><description><![CDATA[
<p>Martial arts, reading, long walks, lifting weights.</p>
]]></description><pubDate>Wed, 24 Sep 2025 12:37:52 +0000</pubDate><link>https://news.ycombinator.com/item?id=45359452</link><dc:creator>aalhour</dc:creator><comments>https://news.ycombinator.com/item?id=45359452</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=45359452</guid></item><item><title><![CDATA[New comment by aalhour in "Ask HN: Does anyone else pronounce CLI as "clee"?"]]></title><description><![CDATA[
<p>No,</p>
]]></description><pubDate>Thu, 11 Sep 2025 18:46:08 +0000</pubDate><link>https://news.ycombinator.com/item?id=45214804</link><dc:creator>aalhour</dc:creator><comments>https://news.ycombinator.com/item?id=45214804</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=45214804</guid></item><item><title><![CDATA[New comment by aalhour in "The German Works Council has blocked Amazon's performance reviews"]]></title><description><![CDATA[
<p>I worked as a manager at a local German company in Germany with a strong Worker's Council team. Performance Management was run through them, they had comments, the process was adapted and managers were onboarded. This is not to say that performance management doesn't suck in general (because once you start having metrics, people start gaming them and you're almost superimposing it on people's way of working), but the Worker's Council didn't block it, because at the end of the day it was neither invasive nor exploitative.<p>EDIT: typos.</p>
]]></description><pubDate>Wed, 16 Jul 2025 09:16:27 +0000</pubDate><link>https://news.ycombinator.com/item?id=44580268</link><dc:creator>aalhour</dc:creator><comments>https://news.ycombinator.com/item?id=44580268</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=44580268</guid></item><item><title><![CDATA[New comment by aalhour in "Ask HN: Memory-safe low level languages?"]]></title><description><![CDATA[
<p>I haven't used Nim but your comment made me remember that language, yeah it was forgotten but I am not sure if it's completely abandoned, it seems that their team has been launching new language releases on a nice cadence: <a href="https://nim-lang.org/blog.html" rel="nofollow">https://nim-lang.org/blog.html</a></p>
]]></description><pubDate>Mon, 05 May 2025 09:43:38 +0000</pubDate><link>https://news.ycombinator.com/item?id=43893300</link><dc:creator>aalhour</dc:creator><comments>https://news.ycombinator.com/item?id=43893300</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=43893300</guid></item><item><title><![CDATA[Ask HN: Books or games to teach kids math]]></title><description><![CDATA[
<p>Anything that can teach a 3 years old kid math, assuming he knows how to count to 10. But also interested in resources that that would take him beyond that and get him to fall in love with math as he grows up.<p>EDIT: typos</p>
<hr>
<p>Comments URL: <a href="https://news.ycombinator.com/item?id=43070086">https://news.ycombinator.com/item?id=43070086</a></p>
<p>Points: 11</p>
<p># Comments: 8</p>
]]></description><pubDate>Sun, 16 Feb 2025 18:05:12 +0000</pubDate><link>https://news.ycombinator.com/item?id=43070086</link><dc:creator>aalhour</dc:creator><comments>https://news.ycombinator.com/item?id=43070086</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=43070086</guid></item><item><title><![CDATA[Ask HN: Book Recommendations on Scientific Thinking]]></title><description><![CDATA[
<p>What books would you recommend on the Scientific Method, Epistemology and scientific thinking in general?<p>Books like this that I liked:<p>- The Selfish Gene<p>- Rationality: From AI to Zombies<p>- The Scout Mindset<p>- Asking the Right Questions (Critical Thinking)<p>I've read "Surely You're Joking Mr. Feynman" already and could barely finish it. I respect that Feynman is a great scientist but he came across too full of himself in the book.<p>I'm planning on reading "The Beginning of Infinity" sometime this year and I am collecting more recommendations.<p>EDIT: Formatting.</p>
<hr>
<p>Comments URL: <a href="https://news.ycombinator.com/item?id=40533506">https://news.ycombinator.com/item?id=40533506</a></p>
<p>Points: 3</p>
<p># Comments: 0</p>
]]></description><pubDate>Fri, 31 May 2024 11:03:39 +0000</pubDate><link>https://news.ycombinator.com/item?id=40533506</link><dc:creator>aalhour</dc:creator><comments>https://news.ycombinator.com/item?id=40533506</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=40533506</guid></item><item><title><![CDATA[New comment by aalhour in "Ask HN: How many times will this loop run on average?"]]></title><description><![CDATA[
<p>No worries, I think your solution coverges with @Someone's above, if I am not mistaken. You're multiplying the probabilities for all values of j up to i for all values of i.</p>
]]></description><pubDate>Sun, 31 Dec 2023 20:57:00 +0000</pubDate><link>https://news.ycombinator.com/item?id=38827454</link><dc:creator>aalhour</dc:creator><comments>https://news.ycombinator.com/item?id=38827454</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=38827454</guid></item><item><title><![CDATA[New comment by aalhour in "Ask HN: How many times will this loop run on average?"]]></title><description><![CDATA[
<p>I was aware that the Random function call gets evaluated in Python (and C) every time the loop iterates, I just couldn't imagine the probability distribution myself, I had assumed that all numbers are uniformally distributed but didn't cater for the sums. You're a legend! Now I see it. I wrote the following code to check out your argument and it checks out indeed :thumbs-up:<p><pre><code>  def p(n):
    total = 1
    for i in range(1, n):
      total *= (100-i)/100
    return total


  for i in range(1, 100):
    print(f"p({i}) = {p(i)}")

</code></pre>
The first 13 results:<p><pre><code>  p(1) = 1
  p(2) = 0.99
  p(3) = 0.9702
  p(4) = 0.9410939999999999
  p(5) = 0.9034502399999998
  p(6) = 0.8582777279999998
  p(7) = 0.8067810643199997
  p(8) = 0.7503063898175998
  p(9) = 0.6902818786321918
  p(10) = 0.6281565095552946
  p(11) = 0.5653408585997651
  p(12) = 0.503153364153791
  p(13) = 0.44277496045533604
</code></pre>
p(12) sits at 50%, of course it will be the mean! :D</p>
]]></description><pubDate>Sun, 31 Dec 2023 20:54:29 +0000</pubDate><link>https://news.ycombinator.com/item?id=38827438</link><dc:creator>aalhour</dc:creator><comments>https://news.ycombinator.com/item?id=38827438</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=38827438</guid></item><item><title><![CDATA[New comment by aalhour in "Ask HN: How many times will this loop run on average?"]]></title><description><![CDATA[
<p>Yes, that's true. I don't want an average of 50. My initial guess of 50 is wrong. I am trying to understand why the average turned out to be approximately 12.</p>
]]></description><pubDate>Sun, 31 Dec 2023 20:38:32 +0000</pubDate><link>https://news.ycombinator.com/item?id=38827340</link><dc:creator>aalhour</dc:creator><comments>https://news.ycombinator.com/item?id=38827340</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=38827340</guid></item><item><title><![CDATA[New comment by aalhour in "Ask HN: How many times will this loop run on average?"]]></title><description><![CDATA[
<p>Not sure that adds up, I translated the right side of the equality into a Python statement and it returns a number I am not sure how to interpret:<p><pre><code>  1/99 * sum([(i-1)*i for i in range(2, 100)])   # 3266.666666666667
</code></pre>
Both the median and mean are around 12 for 10K runs of the loop.</p>
]]></description><pubDate>Sun, 31 Dec 2023 20:36:52 +0000</pubDate><link>https://news.ycombinator.com/item?id=38827333</link><dc:creator>aalhour</dc:creator><comments>https://news.ycombinator.com/item?id=38827333</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=38827333</guid></item><item><title><![CDATA[Ask HN: How many times will this loop run on average?]]></title><description><![CDATA[
<p>A friend of mine shared the following code snippet with me and asked me to guess how many times the loop will run on average:<p><pre><code>  for(int i = 0; i < Random(1, 100); i++);
</code></pre>
I tried to guess the answer analytically and gussed ~50 but the empirical test was surprising to me. Can someone explain why the average is around 12?<p>Runnable code: https://replit.com/@aalhour/RandomLoop#main.py<p>EDIT: Formatting.</p>
<hr>
<p>Comments URL: <a href="https://news.ycombinator.com/item?id=38827068">https://news.ycombinator.com/item?id=38827068</a></p>
<p>Points: 1</p>
<p># Comments: 11</p>
]]></description><pubDate>Sun, 31 Dec 2023 20:05:21 +0000</pubDate><link>https://news.ycombinator.com/item?id=38827068</link><dc:creator>aalhour</dc:creator><comments>https://news.ycombinator.com/item?id=38827068</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=38827068</guid></item><item><title><![CDATA[New comment by aalhour in "Ask HN: How do I get invite to Lobste.rs?"]]></title><description><![CDATA[
<p>me too please?</p>
]]></description><pubDate>Sat, 28 Oct 2023 22:57:48 +0000</pubDate><link>https://news.ycombinator.com/item?id=38054236</link><dc:creator>aalhour</dc:creator><comments>https://news.ycombinator.com/item?id=38054236</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=38054236</guid></item><item><title><![CDATA[Ask HN: Resources for Writing Linux Filesystems?]]></title><description><![CDATA[
<p>Where can I begin learning how to write Linux filesystems?</p>
<hr>
<p>Comments URL: <a href="https://news.ycombinator.com/item?id=37784176">https://news.ycombinator.com/item?id=37784176</a></p>
<p>Points: 9</p>
<p># Comments: 2</p>
]]></description><pubDate>Thu, 05 Oct 2023 20:55:06 +0000</pubDate><link>https://news.ycombinator.com/item?id=37784176</link><dc:creator>aalhour</dc:creator><comments>https://news.ycombinator.com/item?id=37784176</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=37784176</guid></item><item><title><![CDATA[New comment by aalhour in "Ask HN: Does anybody not use an adblocker?"]]></title><description><![CDATA[
<p>I just changed the DNS on my unrooted Android to AdGuard's, went into the YouTube and I still saw the ads. What am I missing?</p>
]]></description><pubDate>Wed, 28 Jun 2023 20:48:23 +0000</pubDate><link>https://news.ycombinator.com/item?id=36512370</link><dc:creator>aalhour</dc:creator><comments>https://news.ycombinator.com/item?id=36512370</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=36512370</guid></item><item><title><![CDATA[New comment by aalhour in "Ask HN: Books on building databases similar to Crafting Interpreters"]]></title><description><![CDATA[
<p>Well, this is awesome. I see that they also have another one on Redis (<a href="https://build-your-own.org/redis/" rel="nofollow noreferrer">https://build-your-own.org/redis/</a>). That will be my next fun project. Thanks!<p>EDIT: typos.</p>
]]></description><pubDate>Wed, 28 Jun 2023 12:03:12 +0000</pubDate><link>https://news.ycombinator.com/item?id=36505196</link><dc:creator>aalhour</dc:creator><comments>https://news.ycombinator.com/item?id=36505196</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=36505196</guid></item><item><title><![CDATA[Ask HN: Books on building databases similar to Crafting Interpreters]]></title><description><![CDATA[
<p>Hey HN,<p>I was wondering if there is a book on building databases that's written in a similar fashion to "Crafting Interpreters". A book that would teach you about databases while having you build one yourself.</p>
<hr>
<p>Comments URL: <a href="https://news.ycombinator.com/item?id=36504838">https://news.ycombinator.com/item?id=36504838</a></p>
<p>Points: 33</p>
<p># Comments: 5</p>
]]></description><pubDate>Wed, 28 Jun 2023 11:14:20 +0000</pubDate><link>https://news.ycombinator.com/item?id=36504838</link><dc:creator>aalhour</dc:creator><comments>https://news.ycombinator.com/item?id=36504838</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=36504838</guid></item><item><title><![CDATA[Ask HN: Resources for Studing Ruby's Runtime and Internals]]></title><description><![CDATA[
<p>Hey folks, I am interested in learning more about Ruby's internals and it's runtime, topics such as: garbage collection, concurrency, memory management ... etc. What would be a good place to read on these before jumping right into the C code? Thanks.</p>
<hr>
<p>Comments URL: <a href="https://news.ycombinator.com/item?id=35960181">https://news.ycombinator.com/item?id=35960181</a></p>
<p>Points: 7</p>
<p># Comments: 3</p>
]]></description><pubDate>Tue, 16 May 2023 11:13:32 +0000</pubDate><link>https://news.ycombinator.com/item?id=35960181</link><dc:creator>aalhour</dc:creator><comments>https://news.ycombinator.com/item?id=35960181</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=35960181</guid></item><item><title><![CDATA[New comment by aalhour in "I.reddit.com Has Been Deprecated"]]></title><description><![CDATA[
<p>It's so slow though. Is there a way we can help the contributors to make it faster?</p>
]]></description><pubDate>Fri, 24 Mar 2023 09:58:44 +0000</pubDate><link>https://news.ycombinator.com/item?id=35287039</link><dc:creator>aalhour</dc:creator><comments>https://news.ycombinator.com/item?id=35287039</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=35287039</guid></item><item><title><![CDATA[Is DDG Down?]]></title><description><![CDATA[
<p>Article URL: <a href="https://duckduckgo.com/?q=test">https://duckduckgo.com/?q=test</a></p>
<p>Comments URL: <a href="https://news.ycombinator.com/item?id=31351406">https://news.ycombinator.com/item?id=31351406</a></p>
<p>Points: 1</p>
<p># Comments: 3</p>
]]></description><pubDate>Thu, 12 May 2022 09:35:19 +0000</pubDate><link>https://duckduckgo.com/?q=test</link><dc:creator>aalhour</dc:creator><comments>https://news.ycombinator.com/item?id=31351406</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=31351406</guid></item></channel></rss>