<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: ddfx</title><link>https://news.ycombinator.com/user?id=ddfx</link><description>Hacker News RSS</description><docs>https://hnrss.org/</docs><generator>hnrss v2.1.1</generator><lastBuildDate>Mon, 06 Apr 2026 05:38:12 +0000</lastBuildDate><atom:link href="https://hnrss.org/user?id=ddfx" rel="self" type="application/rss+xml"></atom:link><item><title><![CDATA[New comment by ddfx in "Ask HN: What's the largest amount of bad code you have ever seen work?"]]></title><description><![CDATA[
<p>Integration tests are much slower usually, and you are testing tons of things at the same time. Something breaks (like in that example) and you have no idea of what and why went wrong.<p>If you unit test <i>properly</i> you are unit testing the business logic, that you have to properly divide and write in a modular fashion. If you want to test a more complex scenario, just add initial conditions or behaviors. If you can't do that or don't know how to do that, then you don't know what your code is doing or your code is bad designed. And that may be the case we read above.<p>Tests rarely break because they help you not breaking the code and functionalities, and they are so fast and efficient on making you realizing that that you don't feel the pain of it.<p>I can't imagine any example where "easy to unit test" != simple</p>
]]></description><pubDate>Thu, 15 Nov 2018 11:35:18 +0000</pubDate><link>https://news.ycombinator.com/item?id=18458482</link><dc:creator>ddfx</dc:creator><comments>https://news.ycombinator.com/item?id=18458482</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=18458482</guid></item><item><title><![CDATA[New comment by ddfx in "Ask HN: What's the largest amount of bad code you have ever seen work?"]]></title><description><![CDATA[
<p>I think TDD is the best way to develop (yet). Obviously tests are code, and if you write crappy highly-coupled tests you will end up with only much more messy code.
This is a clear example of bad testing. The greatest advantage of TDD is in design, everything should be modular and easy to unit test, so you could:<p>- reproduce bug and verify your bugfix in matter of ms with proper unit test<p>- understand what code does<p>- change and refactor code whenever you want<p>You can tell from what is written that they are not following TDD.
Redesign that codebase in an easy and clean to test design would require an exponential effort and time compared to have it done step by step, but it would be worth it</p>
]]></description><pubDate>Wed, 14 Nov 2018 19:25:18 +0000</pubDate><link>https://news.ycombinator.com/item?id=18453002</link><dc:creator>ddfx</dc:creator><comments>https://news.ycombinator.com/item?id=18453002</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=18453002</guid></item><item><title><![CDATA[New comment by ddfx in "Ruby Warrior"]]></title><description><![CDATA[
<p>from the website it looks like a UX/frontend courses company, I don't know how they plan to get good feedbacks with that</p>
]]></description><pubDate>Fri, 09 May 2014 18:34:41 +0000</pubDate><link>https://news.ycombinator.com/item?id=7722544</link><dc:creator>ddfx</dc:creator><comments>https://news.ycombinator.com/item?id=7722544</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=7722544</guid></item></channel></rss>