<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: rewmie</title><link>https://news.ycombinator.com/user?id=rewmie</link><description>Hacker News RSS</description><docs>https://hnrss.org/</docs><generator>hnrss v2.1.1</generator><lastBuildDate>Thu, 28 May 2026 20:52:34 +0000</lastBuildDate><atom:link href="https://hnrss.org/user?id=rewmie" rel="self" type="application/rss+xml"></atom:link><item><title><![CDATA[New comment by rewmie in "Atree: A simple and efficient pointer-free tree implementation"]]></title><description><![CDATA[
<p>It might be of interest to anyone that there's an implicit binary tree data structure dubbed Eytzinger's tree/method that only requires a single vector.<p><a href="https://opendatastructures.org/ods-cpp/10_1_Implicit_Binary_Tree.html" rel="nofollow noreferrer">https://opendatastructures.org/ods-cpp/10_1_Implicit_Binary_...</a><p>I dare say that no tree data structure beats Eytzinger's method in cache locality.</p>
]]></description><pubDate>Sat, 16 Dec 2023 19:14:36 +0000</pubDate><link>https://news.ycombinator.com/item?id=38666901</link><dc:creator>rewmie</dc:creator><comments>https://news.ycombinator.com/item?id=38666901</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=38666901</guid></item><item><title><![CDATA[New comment by rewmie in "Should Windows have a default CLI editor?"]]></title><description><![CDATA[
<p>> What is the difference between these on Windows?<p>A command line interface (CLI), as the name implies, is a user interface pattern consisting of an application that you pass arguments to it through the command line to form a request/command to be executed by the application.<p>This type of user interface also covers features such as exit code and text input/output through standard streams as to allow programs to be compostable through pipes.<p>For example, '$ cp origin rest', '$ grep -Ri foo /opt | sort', etc.<p>A terminal user interface (TUI) is a type of user interface which uses a terminal's limited features to provide a windowed user interface that supports interactivity.<p>For example, see apps like vim, fdisk, etc.</p>
]]></description><pubDate>Thu, 14 Dec 2023 17:07:38 +0000</pubDate><link>https://news.ycombinator.com/item?id=38643807</link><dc:creator>rewmie</dc:creator><comments>https://news.ycombinator.com/item?id=38643807</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=38643807</guid></item><item><title><![CDATA[New comment by rewmie in "Donkey Kong: A Record of Struggle"]]></title><description><![CDATA[
<p>At first glance it looks like they applied a linear multi step method to estimate the value of their equation of movement. There is a huge and ever-growing number of LMM formulas and I don't think Donkey Kong placed a premium on minimizing any kind of error.<p><a href="https://en.wikipedia.org/wiki/Linear_multistep_method" rel="nofollow noreferrer">https://en.wikipedia.org/wiki/Linear_multistep_method</a></p>
]]></description><pubDate>Thu, 14 Dec 2023 09:01:59 +0000</pubDate><link>https://news.ycombinator.com/item?id=38639315</link><dc:creator>rewmie</dc:creator><comments>https://news.ycombinator.com/item?id=38639315</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=38639315</guid></item><item><title><![CDATA[New comment by rewmie in "Seeing how fast people will probe you after you get a new TLS certificate"]]></title><description><![CDATA[
<p>> In fact it’s a good idea to simply black hole and ban the first couple hours of traffic on a new setup.<p>Thanks for the suggestion. I'll definitely consider that trick with my upcoming setups.</p>
]]></description><pubDate>Wed, 13 Dec 2023 11:40:07 +0000</pubDate><link>https://news.ycombinator.com/item?id=38625870</link><dc:creator>rewmie</dc:creator><comments>https://news.ycombinator.com/item?id=38625870</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=38625870</guid></item><item><title><![CDATA[New comment by rewmie in "Scholars who study the Middle East are afraid to speak out"]]></title><description><![CDATA[
<p>> 98% of assistant professors say they self-censor, and 81% of those say they're self-censoring views critical of Israel. That's 79% of assistant professors who would be voicing opinions against Israel if not for the pressure they perceive to silence themselves.<p>That's not how reality works.<p>First, you magically turn "could" into "would".<p>Also, you also ignore the fact that "self-censoring" does not mean "I want to speak out but I can't". It means something as innocuous as not speaking out regarding topics that aren't related to their field of expertise and thus, as smart people do, they don't just blabber on about things that they don't have a solid and well-formed opinion and don't concern them.<p>Moreover, your percentages don't really add up, nor do you spend any moment considering why 98% (virtually all) claim to self-censor but a far lower number feels they need to put a focus on Israel. I mean what other topics do they consider worthy of self censoring? That would be helpful to gain insight on the phenomena, but it seems the goal was to shoehorn a prejudiced point.<p>Don't you agree that your comment sounds like a conspiracy theory to justify why your pet scapegoat isn't being attacked enough?</p>
]]></description><pubDate>Sun, 10 Dec 2023 20:05:03 +0000</pubDate><link>https://news.ycombinator.com/item?id=38594510</link><dc:creator>rewmie</dc:creator><comments>https://news.ycombinator.com/item?id=38594510</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=38594510</guid></item><item><title><![CDATA[New comment by rewmie in "Austin sees mass exodus of ex-Silicon Valley tech companies, here's why"]]></title><description><![CDATA[
<p>> Headline states 'mass exodus', article names three known companies that never actually moved to Austin (...)<p>I'm not sure which article you read, but the one linked to in this discussion mentions:<p>* VMWare laying off 577 employees in Austin,<p>* startup founders, like Techstars Managing Director Amos Schwartzfarb, announcing their decisions to leave Austin,<p>* Meta dropping plans to move to Austin,<p>* Google freezing plans to move to Austin, in spite of already paying rent.<p>* TikTok not establishing plans to move to Austin in spite of already leasing office space,<p>* Don Ward, the CEO of Laundris, announced he would be relocating his company to Tulsa,<p>* Cart announced it was moving its headquarters out of Austin back to Houston, after spending little over 2 years.<p>The article is solid journalism. It's a summary of individual news pieces which is tied together by observations from leaders of established companies over their decisions and economic forecasts.</p>
]]></description><pubDate>Sun, 10 Dec 2023 15:18:48 +0000</pubDate><link>https://news.ycombinator.com/item?id=38592068</link><dc:creator>rewmie</dc:creator><comments>https://news.ycombinator.com/item?id=38592068</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=38592068</guid></item><item><title><![CDATA[New comment by rewmie in "Goodbye, clean code (2020)"]]></title><description><![CDATA[
<p>> If you're translating vectors 10 times (...)<p>You don't know what was being done. All you know is that the manager took a peek at the PR and told the developer to revert the commit.</p>
]]></description><pubDate>Sun, 10 Dec 2023 15:08:05 +0000</pubDate><link>https://news.ycombinator.com/item?id=38591971</link><dc:creator>rewmie</dc:creator><comments>https://news.ycombinator.com/item?id=38591971</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=38591971</guid></item><item><title><![CDATA[New comment by rewmie in "Austin sees mass exodus of ex-Silicon Valley tech companies, here's why"]]></title><description><![CDATA[
<p>Your personal beliefs only apply to your decisions. You have no right to tell others how they should make personal and health-related decisions, specially as history shows that those tend to suddenly do 180s regarding their values once they are faced with the same issues everyone else faces.</p>
]]></description><pubDate>Sun, 10 Dec 2023 15:06:03 +0000</pubDate><link>https://news.ycombinator.com/item?id=38591954</link><dc:creator>rewmie</dc:creator><comments>https://news.ycombinator.com/item?id=38591954</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=38591954</guid></item><item><title><![CDATA[New comment by rewmie in "[dead]"]]></title><description><![CDATA[
<p>> you stand with terrorist nazis<p>It's ok if you just call them Hamas.</p>
]]></description><pubDate>Sun, 10 Dec 2023 14:54:58 +0000</pubDate><link>https://news.ycombinator.com/item?id=38591880</link><dc:creator>rewmie</dc:creator><comments>https://news.ycombinator.com/item?id=38591880</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=38591880</guid></item><item><title><![CDATA[New comment by rewmie in "Austin sees mass exodus of ex-Silicon Valley tech companies, here's why"]]></title><description><![CDATA[
<p>> As long as there are options then we can all be happy. I guess.<p>Oppressing others is really not about options. It's one thing to live your life according to your own beliefs and principles, but it's an entirely different thing to feel entitled to selectively impose them onto everyone around you.</p>
]]></description><pubDate>Sun, 10 Dec 2023 14:49:38 +0000</pubDate><link>https://news.ycombinator.com/item?id=38591854</link><dc:creator>rewmie</dc:creator><comments>https://news.ycombinator.com/item?id=38591854</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=38591854</guid></item><item><title><![CDATA[New comment by rewmie in "[dead]"]]></title><description><![CDATA[
<p>Important tidbit that's being left out of most references: the US's rationale:<p>> U.S. deputy ambassador Robert Wood called the resolution “imbalanced” and criticized the council after the vote for its failure to condemn Hamas’ Oct. 7 attack on Israel in which the militants killed about 1,200 people, mostly civilians, or to acknowledge Israel’s right to defend itself. He declared that halting military action would allow Hamas to continue to rule Gaza and “only plant the seeds for the next war.”<p>It boggles the mind how these declarations pin the issue as Israel capriciously killing civilians for fun, making absolutely no reference to Hamas, it's role in killing civilians on both sides of the border, the role of Hamas oppressing Palestinians to force them to exist as human shields, and more importantly how this resolution was not a cease fire but a demand that Israel stopped neutralizing Hamas without adding any requirement for Hamas to meet.</p>
]]></description><pubDate>Sun, 10 Dec 2023 11:39:05 +0000</pubDate><link>https://news.ycombinator.com/item?id=38590879</link><dc:creator>rewmie</dc:creator><comments>https://news.ycombinator.com/item?id=38590879</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=38590879</guid></item><item><title><![CDATA[New comment by rewmie in "Goodbye, clean code (2020)"]]></title><description><![CDATA[
<p>> There's no definites in software development but if a formula is repeated 10 times you probably have a good name for it and at that point it probably should be in a function.<p>I don't think your take makes sense.  The example in the blogpost states multiple methods have 10 lines of math, but even the author mentions they were similar, not the same.  The use of the weasel word "similar" already tells you that it wasn't the math that was shaved off.  In fact, the supposedly brilliant refactoring that the blogger did was change the whole interface without any good reason, and with bad object-oriented inheritance chains and mixins to boot. What a mess.<p>Still, the blogger tries to claim this is clean?<p>There's a good reason why the blogger was pulled into a meeting and gently forced to revert that mess back to its old state, and why the blogger decided to depict a hero journey in a blog post where any sort of counterpoint is left out.</p>
]]></description><pubDate>Sun, 10 Dec 2023 09:50:25 +0000</pubDate><link>https://news.ycombinator.com/item?id=38590437</link><dc:creator>rewmie</dc:creator><comments>https://news.ycombinator.com/item?id=38590437</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=38590437</guid></item><item><title><![CDATA[New comment by rewmie in "Goodbye, clean code (2020)"]]></title><description><![CDATA[
<p>> The lesson is "goodbye to over-applying a rule without considering context-specific trade-offs",<p>I think the problem is the rule itself. A rule of thumb is fundamentally broken if it does more harm than good. The heuristics to drive a decision need to lead the developer to a good outcome if they apply it without overthinking things or have meetings, because that's what rules of thumb are for.<p>Time and again developers tie codebases into contrived knots by mindlessly repeating the mantra "duplicate code is bad code" because they fail to realize that code that looks the same is not the same code at all, and sometimes should not be the same code at all for a number of reasons.  Developers need to think hard about whether a refactorization helps simplify a project, and shoving code sections into multiple unrelated code paths is surely a way to do the exact opposite.  Moreso when a mastermind developer opts to add conditionals to force similar code blocks to fit other code paths.</p>
]]></description><pubDate>Sun, 10 Dec 2023 09:43:19 +0000</pubDate><link>https://news.ycombinator.com/item?id=38590402</link><dc:creator>rewmie</dc:creator><comments>https://news.ycombinator.com/item?id=38590402</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=38590402</guid></item><item><title><![CDATA[New comment by rewmie in "Goodbye, clean code (2020)"]]></title><description><![CDATA[
<p>> Some newer languages don't even deal in classes at all (Rust for example) and with good reason. If one says we need classes for having objects—No we don't.<p>That's specious reasoning at best.<p>A class basically means a way to specify types that track specific states and behavior.  Afterwards this materializes in other traits like interfaces and information-hiding.<p>Don't tell me Rust does not support those.<p>Also, C++ precedes Rust and it supports free functions and objects without member functions from day one.  Rust is hardly relevant or unique in this regard.  What Rust supports or not is not progress, nor is the definition of progress whatever Rust supports.<p>> And objects are a concept to manage state over the lifetime of what the object represents, so that might be a worthy concept, but a class?<p>You're showing some ignorance here.  Classes and objects are entirely different concepts. An object is an instance of a class.  A class is a blueprint of an object.  This is programming 101.</p>
]]></description><pubDate>Sat, 09 Dec 2023 11:15:18 +0000</pubDate><link>https://news.ycombinator.com/item?id=38580892</link><dc:creator>rewmie</dc:creator><comments>https://news.ycombinator.com/item?id=38580892</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=38580892</guid></item><item><title><![CDATA[New comment by rewmie in "Goodbye, clean code (2020)"]]></title><description><![CDATA[
<p>> But I find it hard to believe that among those 10 lines of maths each, there aren't any functions one can extract that form some natural abstraction (e.g. "translate vector" or whatever), so that every handle function ends up being maybe 1 or 2 lines instead of 10.<p>That's besides the point, isn't it?  Just because you can in theory extract functions that doesn't mean you should, or that your codebase will be in a better shape if you do.  There's the issue of coupling, and there's the issue of introducing dependencies, and there's the issue of whether the apparent duplication holds the same semantics and behavior across the project.  I'm talking about things like does it make sense to change the behavior on all 10 code paths if you need to change it in only two or three?  Having a surface-level similarity between code blocks doesn't make them the same behavior, does it?</p>
]]></description><pubDate>Sat, 09 Dec 2023 11:08:22 +0000</pubDate><link>https://news.ycombinator.com/item?id=38580843</link><dc:creator>rewmie</dc:creator><comments>https://news.ycombinator.com/item?id=38580843</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=38580843</guid></item><item><title><![CDATA[New comment by rewmie in "If buying isn't owning, piracy isn't stealing"]]></title><description><![CDATA[
<p>> Piracy isn't exactly a zero-sum game, but there is a cost associated with it.<p>There is zero cost associated with piracy. Zero.<p>At best, there's an expectation of profit that's not met.  To argue that, you need to show how copying a file translates to a potential sale being converted to a no-sale, and there are plenty of evidence that unauthorized distribution of copyrighted work drives demand up.<p>> Pretending piracy doesn't hurt revenue is a shaky ground to stand on<p>Go ahead and show exactly where copying a file hurts anyone.  You're trying to pass off your personal assertions as axioms, but it's on you to prove that copying a file without the consent of someone hurts anyone.<p>Go ahead.<p>> now whatever it hurts the artists revenue is a different question<p>If anything, artists are the least impacted counterpart as they literally get paid a small fraction of the whole income.<p>></p>
]]></description><pubDate>Sat, 09 Dec 2023 10:57:56 +0000</pubDate><link>https://news.ycombinator.com/item?id=38580763</link><dc:creator>rewmie</dc:creator><comments>https://news.ycombinator.com/item?id=38580763</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=38580763</guid></item><item><title><![CDATA[New comment by rewmie in "Spain expels two US spies for infiltrating secret service"]]></title><description><![CDATA[
<p>> Either this is a lie (...)<p>It don't think there is any doubt that it was a bald-faced lie. The comment reads like a puerile feign of ignorance.</p>
]]></description><pubDate>Sat, 09 Dec 2023 10:17:18 +0000</pubDate><link>https://news.ycombinator.com/item?id=38580507</link><dc:creator>rewmie</dc:creator><comments>https://news.ycombinator.com/item?id=38580507</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=38580507</guid></item><item><title><![CDATA[New comment by rewmie in "Elon Musk's new enemy: Nordic workers"]]></title><description><![CDATA[
<p>Taken from the article:<p>> However, Musk has recently addressed his distaste for unions, saying in New York last week: “I disagree with the idea of unions. I just don’t like anything which creates a lords and peasants sort of thing. I think the unions naturally try to create negativity in a company.”<p>Is this clown for real?</p>
]]></description><pubDate>Sat, 09 Dec 2023 09:14:54 +0000</pubDate><link>https://news.ycombinator.com/item?id=38580111</link><dc:creator>rewmie</dc:creator><comments>https://news.ycombinator.com/item?id=38580111</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=38580111</guid></item><item><title><![CDATA[New comment by rewmie in "Goodbye, clean code (2020)"]]></title><description><![CDATA[
<p>> Reusing a function C in functions A and B makes A and B dependent on C. If the definition of C changes, the definitions of A and B also change.<p>To pile onto this example, in some cases the mastermind behind these blind deduplication changes doesn't notice that the somewhat similar code blocks reside in entirely different modules. Refactoring these code blocks into a shared function ends up introducing a build time dependency where previously there was none, and as a result at best your project takes longer to build because independent modules are now directly dependent or at worsr you just introduced cyclic dependencies.</p>
]]></description><pubDate>Fri, 08 Dec 2023 17:55:42 +0000</pubDate><link>https://news.ycombinator.com/item?id=38571942</link><dc:creator>rewmie</dc:creator><comments>https://news.ycombinator.com/item?id=38571942</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=38571942</guid></item><item><title><![CDATA[New comment by rewmie in "Goodbye, clean code (2020)"]]></title><description><![CDATA[
<p>> Removing duplication is the introduction of a dependency. If this dependency is a good model of the problem then this deduplication is a good abstraction and may also be a simplification. Otherwise it's just compression in the guise of abstraction.<p>I think you're referring to coupling. Deduplicating code ends up coupling together code paths that are entirely unrelated, which ends up increasing the complexity of an implementation and increase the cognitive load required to interpret it.<p>This problem is further compounded when duplicate code is extracted to abstract and concrete classes instantiated by some factory, because some mastermind had to add a conditional to deduplicate code and they read somewhere that conditionals are for chumps and strategy patterns are cleaner.<p>Everyone parrots the "Don't Repeat Yourself" (DRY) rule of thumb and mindlessly claim duplicate code is bad, but those who endure the problems introduced by the DRY principle ended up coining the Write Everything Twice (WET) rule of thumb to mitigate those problems for good reasons. I lost count of all the shit-tier technical debt I had to endure because some mastermind saw two code blocks resembling the same shape and decided to extract a factory with a state patter turning two code blocks into 5 classes. Brilliant work don't repeating yourself. It just required 3 times the code and 5 times the unit tests. Brilliant tradeoff.</p>
]]></description><pubDate>Fri, 08 Dec 2023 16:21:28 +0000</pubDate><link>https://news.ycombinator.com/item?id=38570748</link><dc:creator>rewmie</dc:creator><comments>https://news.ycombinator.com/item?id=38570748</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=38570748</guid></item></channel></rss>