<?xml version="1.0" encoding="utf-8" standalone="no"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" version="2.0"><channel><title>The Daily WTF</title><link>http://thedailywtf.com/</link><description>Curious Perversions in Information Technology</description><lastBuildDate>Wed, 02 Dec 2026 20:38:34 GMT</lastBuildDate><item><dc:creator>Remy Porter</dc:creator><title>CodeSOD: Java Dot Cpp</title><link>https://thedailywtf.com/articles/java-dot-cpp</link><category>CodeSOD</category><pubDate>Wed, 02 Dec 2026 06:30:00 GMT</pubDate><guid>https://thedailywtf.com/articles/java-dot-cpp</guid><description>&lt;p&gt;&lt;strong&gt;Dmytro P&lt;/strong&gt; works with one of those developers who clearly started life in C/C++, and has never quite adapted to languages like Java. How can I tell?&lt;/p&gt;
&lt;p&gt;Well, functions like this are a good hint:&lt;/p&gt;
&lt;pre&gt;&lt;code class="language-java"&gt;        &lt;span class="hljs-keyword"&gt;private&lt;/span&gt; &lt;span class="hljs-keyword"&gt;static&lt;/span&gt; &lt;span class="hljs-type"&gt;int&lt;/span&gt; &lt;span class="hljs-title function_"&gt;roundNextPow2&lt;/span&gt;&lt;span class="hljs-params"&gt;(&lt;span class="hljs-type"&gt;int&lt;/span&gt; x)&lt;/span&gt; {
            x--;
            x |= x &amp;gt;&amp;gt; &lt;span class="hljs-number"&gt;1&lt;/span&gt;;
            x |= x &amp;gt;&amp;gt; &lt;span class="hljs-number"&gt;2&lt;/span&gt;;
            x |= x &amp;gt;&amp;gt; &lt;span class="hljs-number"&gt;4&lt;/span&gt;;
            x |= x &amp;gt;&amp;gt; &lt;span class="hljs-number"&gt;8&lt;/span&gt;;
            x |= x &amp;gt;&amp;gt; &lt;span class="hljs-number"&gt;16&lt;/span&gt;;
            x++;
            &lt;span class="hljs-keyword"&gt;return&lt;/span&gt; x;
        }
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;This rounds the input up to the next power of two. It&amp;#39;s called in this function:&lt;/p&gt;
&lt;pre&gt;&lt;code class="language-java"&gt;        &lt;span class="hljs-keyword"&gt;public&lt;/span&gt; &lt;span class="hljs-keyword"&gt;static&lt;/span&gt; &lt;span class="hljs-type"&gt;int&lt;/span&gt; &lt;span class="hljs-title function_"&gt;calculateMapSize&lt;/span&gt;&lt;span class="hljs-params"&gt;(&lt;span class="hljs-type"&gt;int&lt;/span&gt; size)&lt;/span&gt; {
            &lt;span class="hljs-type"&gt;int&lt;/span&gt; &lt;span class="hljs-variable"&gt;newMinSize&lt;/span&gt; &lt;span class="hljs-operator"&gt;=&lt;/span&gt; (&lt;span class="hljs-type"&gt;int&lt;/span&gt;)((&lt;span class="hljs-type"&gt;float&lt;/span&gt;)size / &lt;span class="hljs-number"&gt;0.75f&lt;/span&gt;);
            newMinSize = roundNextPow2(newMinSize);
            &lt;span class="hljs-keyword"&gt;return&lt;/span&gt; newMinSize;
        }
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;This function kicks the minimum size up a bit, and then rounds the value up to the nearest power of two, and you&amp;#39;re probably asking yourself: &amp;#34;Why? Also, why is it called &lt;code&gt;calculateMapSize&lt;/code&gt;? Java already resizes collections for you, you don&amp;#39;t need to do it yourself. They... they didn&amp;#39;t, did they?&amp;#34;&lt;/p&gt;
&lt;p&gt;They did, in fact.&lt;/p&gt;
&lt;pre&gt;&lt;code class="language-java"&gt;        &lt;span class="hljs-keyword"&gt;protected&lt;/span&gt; Map&amp;lt;String, CalendarImpl&amp;gt; &lt;span class="hljs-title function_"&gt;ensureMapSize&lt;/span&gt;&lt;span class="hljs-params"&gt;(&lt;span class="hljs-type"&gt;int&lt;/span&gt; addSize)&lt;/span&gt; {
                &lt;span class="hljs-comment"&gt;// calc size of map&lt;/span&gt;
                &lt;span class="hljs-type"&gt;int&lt;/span&gt; &lt;span class="hljs-variable"&gt;newMinSize&lt;/span&gt; &lt;span class="hljs-operator"&gt;=&lt;/span&gt; CollectionUtils.calculateMapSize((&lt;span class="hljs-literal"&gt;null&lt;/span&gt; == &lt;span class="hljs-built_in"&gt;this&lt;/span&gt;.calendars ? &lt;span class="hljs-number"&gt;0&lt;/span&gt; : &lt;span class="hljs-built_in"&gt;this&lt;/span&gt;.calendars.size()) + addSize);
                HashMap&amp;lt;String, CalendarImpl&amp;gt; newMap = &lt;span class="hljs-keyword"&gt;new&lt;/span&gt; &lt;span class="hljs-title class_"&gt;HashMap&lt;/span&gt;&amp;lt;String, CalendarImpl&amp;gt;(newMinSize);
               
                &lt;span class="hljs-comment"&gt;// handle map&lt;/span&gt;
                &lt;span class="hljs-keyword"&gt;if&lt;/span&gt; (&lt;span class="hljs-literal"&gt;null&lt;/span&gt; != &lt;span class="hljs-built_in"&gt;this&lt;/span&gt;.calendars) {
                        &lt;span class="hljs-comment"&gt;// move existing entries&lt;/span&gt;
                        &lt;span class="hljs-keyword"&gt;for&lt;/span&gt; (String key : &lt;span class="hljs-built_in"&gt;this&lt;/span&gt;.calendars.keySet()) {
                                newMap.put(key, &lt;span class="hljs-built_in"&gt;this&lt;/span&gt;.calendars.get(key));
                        }
                }
               
                &lt;span class="hljs-comment"&gt;// return&lt;/span&gt;
                &lt;span class="hljs-keyword"&gt;return&lt;/span&gt; newMap;
        }
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;This function takes an existing map, increases its size by &lt;code&gt;addSize&lt;/code&gt;, does all the weird logic we saw above, and then creates a new empty map of the target size. Then it copies each key/value from the existing map (if there is one) into the new map.&lt;/p&gt;
&lt;p&gt;Note also that this function copies from the existing map, but doesn&amp;#39;t alter it- it returns a new map. That&amp;#39;s important, because it ends up getting used to do things like this:&lt;/p&gt;
&lt;pre&gt;&lt;code class="language-java"&gt;        &lt;span class="hljs-keyword"&gt;protected&lt;/span&gt; String[] doReadUsersAll(Json json, ITEM[] items) {
                &lt;span class="hljs-comment"&gt;// read all users into map&lt;/span&gt;
                &lt;span class="hljs-type"&gt;JArray&lt;/span&gt; &lt;span class="hljs-variable"&gt;objUsers&lt;/span&gt; &lt;span class="hljs-operator"&gt;=&lt;/span&gt; (JArray)json.get(&lt;span class="hljs-string"&gt;&amp;#34;UsersAll&amp;#34;&lt;/span&gt;).get(&lt;span class="hljs-string"&gt;&amp;#34;Users&amp;#34;&lt;/span&gt;);
               
                &lt;span class="hljs-comment"&gt;// get new map&lt;/span&gt;
                Map&amp;lt;String, CalendarImpl&amp;gt; newMap = &lt;span class="hljs-built_in"&gt;this&lt;/span&gt;.ensureMapSize(objUsers.getCount());
                       
                &lt;span class="hljs-comment"&gt;// loop and create calendar objects&lt;/span&gt;
                String[] result = &lt;span class="hljs-keyword"&gt;new&lt;/span&gt; &lt;span class="hljs-title class_"&gt;String&lt;/span&gt;[&lt;span class="hljs-number"&gt;12&lt;/span&gt;];
                &lt;span class="hljs-type"&gt;int&lt;/span&gt; k=&lt;span class="hljs-number"&gt;0&lt;/span&gt;;
                &lt;span class="hljs-keyword"&gt;for&lt;/span&gt; (&lt;span class="hljs-type"&gt;int&lt;/span&gt; i=&lt;span class="hljs-number"&gt;0&lt;/span&gt;; i&amp;lt;objUsers.getCount(); i++) {
                        &lt;span class="hljs-type"&gt;JObject&lt;/span&gt; &lt;span class="hljs-variable"&gt;objJson&lt;/span&gt; &lt;span class="hljs-operator"&gt;=&lt;/span&gt; (JObject)objUsers.get(i);
                        &lt;span class="hljs-type"&gt;String&lt;/span&gt; &lt;span class="hljs-variable"&gt;id&lt;/span&gt; &lt;span class="hljs-operator"&gt;=&lt;/span&gt; objJson.get(&lt;span class="hljs-string"&gt;&amp;#34;ID&amp;#34;&lt;/span&gt;).getStr();
                        result = ArrayUtil.ensureSize(result, String.class, k+&lt;span class="hljs-number"&gt;1&lt;/span&gt;, &lt;span class="hljs-number"&gt;12&lt;/span&gt;);
                        result[k++] = id;
                       
                        &lt;span class="hljs-keyword"&gt;if&lt;/span&gt; (newMap.containsKey(id)) {
                                &lt;span class="hljs-comment"&gt;// add items we do not yet have&lt;/span&gt;
                                &lt;span class="hljs-type"&gt;CalendarImpl&lt;/span&gt; &lt;span class="hljs-variable"&gt;knownCal&lt;/span&gt; &lt;span class="hljs-operator"&gt;=&lt;/span&gt; newMap.get(id);
                                &lt;span class="hljs-type"&gt;UserImpl&lt;/span&gt; &lt;span class="hljs-variable"&gt;knownUser&lt;/span&gt; &lt;span class="hljs-operator"&gt;=&lt;/span&gt; (UserImpl)knownCal.getOwner();
                                knownUser.addItems(objJson, items);
                        } &lt;span class="hljs-keyword"&gt;else&lt;/span&gt; {
                                &lt;span class="hljs-comment"&gt;// just add (but use the full current user if it&amp;#39;s that)&lt;/span&gt;
                                &lt;span class="hljs-comment"&gt;//TODO Should really allow user object to know the exact timezone&lt;/span&gt;
                                &lt;span class="hljs-type"&gt;UserImpl&lt;/span&gt; &lt;span class="hljs-variable"&gt;user&lt;/span&gt; &lt;span class="hljs-operator"&gt;=&lt;/span&gt; UserImpl.buildInstance(&lt;span class="hljs-built_in"&gt;this&lt;/span&gt;.api, objJson, items).setNameFormat(&lt;span class="hljs-built_in"&gt;this&lt;/span&gt;.nameFormat);
                                &lt;span class="hljs-type"&gt;CalendarImpl&lt;/span&gt; &lt;span class="hljs-variable"&gt;cal&lt;/span&gt; &lt;span class="hljs-operator"&gt;=&lt;/span&gt; &lt;span class="hljs-keyword"&gt;new&lt;/span&gt; &lt;span class="hljs-title class_"&gt;CalendarImpl&lt;/span&gt;(user);
                                cal.setComparator(&lt;span class="hljs-built_in"&gt;this&lt;/span&gt;.getComparator());
                                newMap.put(id, cal);
                        }
                }
               
                &lt;span class="hljs-comment"&gt;// move pointer&lt;/span&gt;
                &lt;span class="hljs-built_in"&gt;this&lt;/span&gt;.calendars = newMap;
               
                &lt;span class="hljs-comment"&gt;// clear json to clear memory&lt;/span&gt;
                json.clear();
               
                &lt;span class="hljs-comment"&gt;// return&lt;/span&gt;
                &lt;span class="hljs-keyword"&gt;return&lt;/span&gt; Arrays.copyOfRange(result, &lt;span class="hljs-number"&gt;0&lt;/span&gt;, k);
        }
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;This takes JSON data, which I&amp;#39;ll add, &lt;em&gt;is managed by their own home-brewed JSON library&lt;/em&gt;, loads it into a map while also putting every read ID into a string array &lt;em&gt;which they also resize&lt;/em&gt;, ignoring the perfectly good auto-resizing Java collections.&lt;/p&gt;
&lt;p&gt;This code clearly was written by somebody who wanted to call &lt;code&gt;memcpy&lt;/code&gt; and didn&amp;#39;t know what to do without it. You can also see the C/C++ influence in the comment &lt;code&gt;// move pointer&lt;/code&gt;.&lt;/p&gt;
&lt;p&gt;How much do you want to bet that the developer behind this also complained about how slow Java was? When you write code like this, how could it be slow?&lt;/p&gt;
&lt;!-- Easy Reader Version: My bad C habit, which is bad in C but also bad anywhere else, is to type-pun. It's so goddamn convenient for reading data off the wire! --&gt;
&lt;style&gt;.comment { border: none; }&lt;/style&gt;&lt;div&gt;
	&lt;img src="https://thedailywtf.com/images/inedo/buildmaster-icon.png" style="display:block; float: left; margin: 0 10px 10px 0;"/&gt; [Advertisement] 
	&lt;a href="https://inedo.com/BuildMaster?utm_source=tdwtf&amp;amp;utm_medium=footerad&amp;amp;utm_term=2018&amp;amp;utm_content=Self_Service&amp;amp;utm_campaign=Buildmaster_Footer"&gt;BuildMaster&lt;/a&gt; allows you to create a self-service release management platform that allows different teams to manage their applications. &lt;a href="https://inedo.com/BuildMaster/download?utm_source=tdwtf&amp;amp;utm_medium=footerad&amp;amp;utm_term=2018&amp;amp;utm_content=Self_Service&amp;amp;utm_campaign=Buildmaster_Footer"&gt;Explore how!&lt;/a&gt; 
&lt;/div&gt;
&lt;div style="clear: left;"&gt; &lt;/div&gt;
</description><slash:comments>8</slash:comments><wfw:comment>https://thedailywtf.com/articles/comments/java-dot-cpp</wfw:comment></item><item><dc:creator>Ellis Morning</dc:creator><title>What the Font?</title><link>https://thedailywtf.com/articles/what-the-font</link><category>Feature Articles</category><pubDate>Tue, 01 Dec 2026 06:30:00 GMT</pubDate><guid>https://thedailywtf.com/articles/what-the-font</guid><description>&lt;p&gt;In the corporate world, where there&amp;#39;s smoke, there&amp;#39;s a huge raging dumpster fire. From our submitter &lt;b&gt;George:&lt;/b&gt;&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;Not all that long ago I was hired by a company that made and sold PostScript fonts. Their fonts had, for years, been crashing computers randomly. I knew a bit about PostScript, so a marriage made in heaven, right? Well, no.&lt;/p&gt;

&lt;p&gt;First day, I&amp;#39;m given an entry card to park into a nearby parking ramp. Great. Except I drive up and up the spiral ramp and the two tire-tack paths have all been badly patched over, like there&amp;#39;s been excessive crumbling from road salt carried in. I&amp;#39;m a little bit uneasy from that.&lt;/p&gt;

&lt;p style="float:right; padding-left:10px; padding-bottom:10px;"&gt;&lt;a href="https://commons.wikimedia.org/wiki/File:Student_fire_fighter_extinquishing_dumpster_fire.jpg" title="U.S. Air Force photo/Staff Sgt. Levi Riendeau, Public domain, via Wikimedia Commons"&gt;&lt;img itemprop="image" width="300" src="https://thumb.wikimedia.org/wikipedia/commons/thumb/9/9f/Student_fire_fighter_extinquishing_dumpster_fire.jpg/960px-Student_fire_fighter_extinquishing_dumpster_fire.jpg?utm_source=commons.wikimedia.org&amp;amp;utm_campaign=index&amp;amp;utm_content=thumbnail" srcset="https://thumb.wikimedia.org/wikipedia/commons/thumb/9/9f/Student_fire_fighter_extinquishing_dumpster_fire.jpg/330px-Student_fire_fighter_extinquishing_dumpster_fire.jpg?utm_source=commons.wikimedia.org&amp;amp;utm_campaign=index&amp;amp;utm_content=thumbnail 330w, https://thumb.wikimedia.org/wikipedia/commons/thumb/9/9f/Student_fire_fighter_extinquishing_dumpster_fire.jpg/960px-Student_fire_fighter_extinquishing_dumpster_fire.jpg?utm_source=commons.wikimedia.org&amp;amp;utm_campaign=index&amp;amp;utm_content=thumbnail 960w, https://thumb.wikimedia.org/wikipedia/commons/thumb/9/9f/Student_fire_fighter_extinquishing_dumpster_fire.jpg/1280px-Student_fire_fighter_extinquishing_dumpster_fire.jpg?utm_source=commons.wikimedia.org&amp;amp;utm_campaign=index&amp;amp;utm_content=thumbnail 1280w" sizes="auto" loading="lazy" alt="Student fire fighter extinquishing dumpster fire"/&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;I walk into my new office, just for me. Super. Except the building used to be a horse-barn 100 years ago, and it still strongly smells like leather and horses. Super. But I&amp;#39;m fond of old buildings, so I guess it&amp;#39;s okay.&lt;/p&gt;

&lt;p&gt;I walk into the office of the guy that runs their servers. A familiar buzzing noise can be heard. I can see the only server for the whole company is a small gray plastic box from a local bare-bones consumer-grade PC maker, and it&amp;#39;s clear that the hard disk has about two more days before the ball bearings seize up. I know or suspect enough to not mention that. Instead, I just ask for a thumb drive so I can back up my files. He says the company doesn&amp;#39;t have any, but he spends all day every Thursday manually backing up all the company files to &lt;i&gt;somewhere.&lt;/i&gt; Okay, thanks.&lt;/p&gt;

&lt;p&gt;First assignment, I was supposed to plan out how I was going to attack the problem. No problem for me, I had several awards for writing technical reports. I write about three pages in a morning and submit them to the staff and the company president. An hour later, some random guy comes into my office, hesitating to say anything, but eventually I get the gist: I was supposed to use some off-brand word processor, which crashed every six minutes, because the company president liked how it defaulted to baby-blue headings and maroon subheadings. Also, I had more than two sentences under one sub-heading. I follow the weird directions, only the next day the company president sets up a voice call meeting with me and my manager and berates me for &amp;#34;looking for a problem under the streetlight.&amp;#34; I bite my lip. My boss says nothing. Super.&lt;/p&gt;

&lt;p&gt;So I follow as rigorous a testing protocol as I can come up with. I run their font through the Microsoft font checker. It finds 433 serious font issues, mostly bounds violations and banned line geometries. I go a step further and use Adobe&amp;#39;s own font verifier. It finds twice as many errors, and deeper ones too, like most characters built from clockwise arcs, where PostScript requires all counter-clockwise arcs. Or was it the other way around? Anyway, all wrong.&lt;/p&gt;

&lt;p&gt;I write a longish memo to boss and president, including font printouts showing the wrong drawing directions, plus almost all characters peeking outside their bounding boxes. President calls another meeting where he&amp;#39;s twice as loud and three times as sarcastic, saying there couldn&amp;#39;t possibly be anything wrong with their core fonts, never mind industry-standard duplicate checks saying very much the opposite.&lt;/p&gt;

&lt;p&gt;I handed in my resignation a day later. (Only to end up at another place just as dysfunctional, but that&amp;#39;s another, even less-believable tale.) Six months later, there was an emergency patch released by Microsoft for Windows. Privilege escalation if you used any of that company&amp;#39;s fonts! I didn&amp;#39;t follow up closely what happened to the company, but if you do a Google search for their company name now, not a trace of them can be found.&lt;/p&gt;
&lt;/blockquote&gt;&lt;div&gt;
	&lt;img src="https://thedailywtf.com/images/inedo/proget-icon.png" style="display:block; float: left; margin: 0 10px 10px 0;"/&gt; [Advertisement] 
	Keep the plebs out of prod. Restrict NuGet feed privileges with ProGet. &lt;a href="https://inedo.com/proget/private-nuget-server?utm_source=tdwtf&amp;amp;utm_medium=footer&amp;amp;utm_content=PlebsFooter&amp;amp;utm_campaign=Cyclops2020"&gt;Learn more.&lt;/a&gt;
&lt;/div&gt;
&lt;div style="clear: left;"&gt; &lt;/div&gt;
</description><slash:comments>17</slash:comments><wfw:comment>https://thedailywtf.com/articles/comments/what-the-font</wfw:comment></item><item><dc:creator>Remy Porter</dc:creator><title>CodeSOD: Switched On Readability</title><link>https://thedailywtf.com/articles/switched-on-readability</link><category>CodeSOD</category><pubDate>Mon, 30 Nov 2026 06:30:00 GMT</pubDate><guid>https://thedailywtf.com/articles/switched-on-readability</guid><description>&lt;p&gt;&lt;strong&gt;Jon&lt;/strong&gt; has a team mate that has a coding quirk. They tend to write this pattern a lot.&lt;/p&gt;
&lt;pre&gt;&lt;code class="language-cpp"&gt;&lt;span class="hljs-keyword"&gt;switch&lt;/span&gt; (someEnum)
{
    &lt;span class="hljs-keyword"&gt;case&lt;/span&gt; EnumType::TargetValue: &lt;span class="hljs-built_in"&gt;doStuff&lt;/span&gt;(); &lt;span class="hljs-keyword"&gt;break&lt;/span&gt;;
    &lt;span class="hljs-keyword"&gt;default&lt;/span&gt;: &lt;span class="hljs-built_in"&gt;doOtherStuff&lt;/span&gt;();
}
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;Specifically, they have these single branch switches. Usually when using enums, but they&amp;#39;ve even done it for booleans a few times, like:&lt;/p&gt;
&lt;pre&gt;&lt;code class="language-cpp"&gt;&lt;span class="hljs-keyword"&gt;switch&lt;/span&gt;(someBool)
{
    &lt;span class="hljs-keyword"&gt;case&lt;/span&gt; &lt;span class="hljs-literal"&gt;true&lt;/span&gt;: &lt;span class="hljs-built_in"&gt;doStuff&lt;/span&gt;(); &lt;span class="hljs-keyword"&gt;break&lt;/span&gt;;
    &lt;span class="hljs-keyword"&gt;default&lt;/span&gt;: &lt;span class="hljs-built_in"&gt;doOtherStuff&lt;/span&gt;();
}
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;It&amp;#39;s not 100% true that they eschew if statements, but they rarely use them. They write basically any condition via a switch. Why? No one knows. Not even them. &amp;#34;I just think it&amp;#39;s easier to read.&amp;#34;&lt;/p&gt;
&lt;!-- Easy Reader Version: look, any version of a switch is better than the Python approach of stuffing callables in a map and pretending it's a switch. --&gt;&lt;div&gt;
	[Advertisement] &lt;b&gt;Plan Your .NET 9 Migration with Confidence&lt;/b&gt;&lt;br/&gt;Your journey to .NET 9 is more than just one decision.Avoid migration migraines with the advice in this free guide. &lt;b&gt;&lt;a href="https://inedo.com/support/whitepapers/dotnet-guide?utm_campaign=dotnet&amp;amp;utm_source=tdwtf-footer"&gt;Download Free Guide Now!&lt;/a&gt;&lt;/b&gt;
&lt;/div&gt;
&lt;div style="clear: left;"&gt; &lt;/div&gt;</description><slash:comments>22</slash:comments><wfw:comment>https://thedailywtf.com/articles/comments/switched-on-readability</wfw:comment></item><item><dc:creator>Lyle Seaman</dc:creator><title>Error'd: Mental Health</title><link>https://thedailywtf.com/articles/mental-health</link><category>Error'd</category><pubDate>Fri, 27 Nov 2026 06:30:00 GMT</pubDate><guid>https://thedailywtf.com/articles/mental-health</guid><description>&lt;p&gt;Uncharacteristically, I will be earnest for a moment. The holiday season can be a difficult time for many people, for many reasons that are beyond the scope of this column except for the fact that most of them are also wtfs. If you&amp;#39;re one of those, stick around, because there are a lot of us here.  And with that, on to BJH, who&amp;#39;s a little behind.&lt;/p&gt;

&lt;p&gt;
&lt;strong&gt;B.J. H.&lt;/strong&gt; reflects 
&amp;#34;Have there been any changes in my life in the
last 55 years that could cause depression, other than the
creation of the Internet?&amp;#34; I can think of a few but that&amp;#39;s definitely on the list.
&lt;/p&gt;&lt;blockquote&gt;&lt;p&gt;&lt;a href="#88dd478897514cec92bd6fefbf0d8226"&gt;&lt;img itemprop="image" border="0" alt="88dd478897514cec92bd6fefbf0d8226" src="https://d3hvi6t161kfmf.cloudfront.net/images/2026/11/26/88dd478897514cec92bd6fefbf0d8226.png"/&gt;&lt;/a&gt;&lt;/p&gt;&lt;p&gt; &lt;/p&gt;&lt;/blockquote&gt;

&lt;p&gt;&amp;#34;I am not an (alphanumeric) number, I&amp;#39;m a free man!&amp;#34; declares
&lt;strong&gt;Simon T.&lt;/strong&gt;
&amp;#34;Teams offered me a new look interface at the top
- would I like to try it? I felt like
I needed a bit of a thrill after my previous
Teams call, so went for it. This is the thankyou
I got ??&amp;#34; I have been ruminating on how to manage the increasingly high rate of change (and the desire for even more) in user interfaces. It looks like Teams hasn&amp;#39;t figured it out either.
&lt;/p&gt;&lt;blockquote&gt;&lt;p&gt;&lt;a href="#8ae185a3af65495f9d524d532b8a3441"&gt;&lt;img itemprop="image" border="0" alt="8ae185a3af65495f9d524d532b8a3441" src="https://d3hvi6t161kfmf.cloudfront.net/images/2026/11/26/8ae185a3af65495f9d524d532b8a3441.png"/&gt;&lt;/a&gt;&lt;/p&gt;&lt;p&gt; &lt;/p&gt;&lt;/blockquote&gt;

&lt;p&gt;&amp;#34;A two-fer&amp;#34; from 
&lt;strong&gt;Mike S.&lt;/strong&gt; declares
&amp;#34;These gems came from the Xfinity website during the very
same session. Made me question my reality. Description For Made
me question my reality.&amp;#34;
&lt;/p&gt;&lt;blockquote&gt;&lt;p&gt;&lt;a href="#1b589ff2384542af9bc62694e05694c1"&gt;&lt;img itemprop="image" border="0" alt="1b589ff2384542af9bc62694e05694c1" src="https://d3hvi6t161kfmf.cloudfront.net/images/2026/11/26/1b589ff2384542af9bc62694e05694c1.png"/&gt;&lt;/a&gt;&lt;/p&gt;&lt;p&gt; &lt;/p&gt;&lt;/blockquote&gt;


&lt;p&gt;&amp;#34;Is cloning already a thing now?&amp;#34; asks
&lt;strong&gt;klinsten&lt;/strong&gt;. This one requires a translation for the obligate anglophones. The text in the screenshot here, translate to English as best I and Google can manage, is something like&lt;br/&gt;
&amp;#34;We notice that your mother is listed as the beneficiary upon death in the attached policy.
&lt;br/&gt;
To amend the beneficiary clause, we kindly request you to deliver a front and back copy of you and &lt;em&gt;redacted&lt;/em&gt;.
&lt;br/&gt;
Unless we are mistaken, is &lt;em&gt;redacted&lt;/em&gt; your wife?
&amp;#34;
&lt;/p&gt;&lt;blockquote&gt;&lt;p&gt;&lt;a href="#2840083a36eb44ed94fe6efe8d825590"&gt;&lt;img itemprop="image" border="0" alt="2840083a36eb44ed94fe6efe8d825590" src="https://d3hvi6t161kfmf.cloudfront.net/images/2026/11/26/2840083a36eb44ed94fe6efe8d825590.png"/&gt;&lt;/a&gt;&lt;/p&gt;&lt;p&gt; &lt;/p&gt;&lt;/blockquote&gt;


&lt;p&gt;Our old but not &lt;em&gt;that&lt;/em&gt; old friend
&lt;strong&gt;Michael R.&lt;/strong&gt; demurs.
&amp;#34;I rather won&amp;#39;t add a bank account then.&amp;#34;
&lt;/p&gt;&lt;blockquote&gt;&lt;p&gt;&lt;a href="#366592c05ff4461b823a041eced62907"&gt;&lt;img itemprop="image" border="0" alt="366592c05ff4461b823a041eced62907" src="https://d3hvi6t161kfmf.cloudfront.net/images/2026/11/26/366592c05ff4461b823a041eced62907.png"/&gt;&lt;/a&gt;&lt;/p&gt;&lt;p&gt; &lt;/p&gt;&lt;/blockquote&gt;
Peace.
&lt;div&gt;
	&lt;img src="https://thedailywtf.com/images/inedo/proget-icon.png" style="display:block; float: left; margin: 0 10px 10px 0;"/&gt; [Advertisement] 
	Keep the plebs out of prod. Restrict NuGet feed privileges with ProGet. &lt;a href="https://inedo.com/proget/private-nuget-server?utm_source=tdwtf&amp;amp;utm_medium=footer&amp;amp;utm_content=PlebsFooter&amp;amp;utm_campaign=Cyclops2020"&gt;Learn more.&lt;/a&gt;
&lt;/div&gt;
&lt;div style="clear: left;"&gt; &lt;/div&gt;
</description><slash:comments>4</slash:comments><wfw:comment>https://thedailywtf.com/articles/comments/mental-health</wfw:comment></item><item><dc:creator>Alex Papadimoulis</dc:creator><title>Classic WTF: The Quine Programmer</title><link>https://thedailywtf.com/articles/classic-wtf-the-quine-programmer</link><category>Feature Articles</category><pubDate>Thu, 26 Nov 2026 06:30:00 GMT</pubDate><guid>https://thedailywtf.com/articles/classic-wtf-the-quine-programmer</guid><description>&lt;blockquote&gt;It&amp;#39;s a holiday in the US, where we give thanks. Specifically, we give thanks that we&amp;#39;re not working with the person responsible for this. &lt;a href="https://thedailywtf.com/articles/The-Quine-Programmer"&gt;Original&lt;/a&gt; --&lt;strong&gt;Remy&lt;/strong&gt;&lt;/blockquote&gt;

&lt;p&gt;The Quine – i.e., a program that produces its own source code as output – lives in the esoteric realm of computing and computer science. It’s almost entirely useless, but usually pretty fun. The Quine Programmer, on the other hand, is among the pantheon of programming gods, sitting between The Great Abstractor and &lt;a href="https://thedailywtf.com/Articles/Divine-by-Zero.aspx"&gt;The PHP God&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;The Quine Programmer has the uncanny gifts of being infinitely good at programming &lt;em&gt;and&lt;/em&gt; infinitely insightful, thus allowing him to write a program to replace himself and all other programmers. The output of The Quine Programmer is system that’s fully configurable by the end-user; should the end-user want something changed, she can simply change it herself.&lt;/p&gt;
&lt;p&gt;Of course, “can” and “will” are two separate concepts, and oftentimes the end-user of such a system will rely on others for such a change. &lt;b&gt;Willy&lt;/b&gt; is one of those “others”, and he often finds himself wondering why the end-user just doesn’t change the logic herself. After all, their system was built by The Quine Programmer himself, and is therefore easily changeable.&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;&lt;img itemprop="image" alt="" src="https://thedailywtf.com/images/201106/workflow.png"/&gt;&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;Willy also finds himself wondering how he ended up as a “programmer” of a system that clearly needs no “programming” and how long it will take for him to find a new job. He’s hoping it’s before he’s tasked with modifying one of the “complex” workflows.&lt;/p&gt;&lt;div&gt;
	&lt;img src="https://thedailywtf.com/images/inedo/proget-icon.png" style="display:block; float: left; margin: 0 10px 10px 0;"/&gt; [Advertisement] 
	Keep the plebs out of prod. Restrict NuGet feed privileges with ProGet. &lt;a href="https://inedo.com/proget/private-nuget-server?utm_source=tdwtf&amp;amp;utm_medium=footer&amp;amp;utm_content=PlebsFooter&amp;amp;utm_campaign=Cyclops2020"&gt;Learn more.&lt;/a&gt;
&lt;/div&gt;
&lt;div style="clear: left;"&gt; &lt;/div&gt;
</description><slash:comments>12</slash:comments><wfw:comment>https://thedailywtf.com/articles/comments/classic-wtf-the-quine-programmer</wfw:comment></item><item><dc:creator>Remy Porter</dc:creator><title>CodeSOD: ReferenceError: HELL is not defined</title><link>https://thedailywtf.com/articles/referenceerror-hell-is-not-defined</link><category>CodeSOD</category><pubDate>Wed, 25 Nov 2026 06:30:00 GMT</pubDate><guid>https://thedailywtf.com/articles/referenceerror-hell-is-not-defined</guid><description>&lt;p&gt;&lt;strong&gt;David&lt;/strong&gt; came across some Java code. This particular block needed to, based on an integer masquerading as an enumerated type, return an amount of time to sleep. It has strong opinions about what should happen when you send it an invalid value:&lt;/p&gt;
&lt;pre&gt;&lt;code class="language-java"&gt;&lt;span class="hljs-keyword"&gt;private&lt;/span&gt; &lt;span class="hljs-keyword"&gt;static&lt;/span&gt; &lt;span class="hljs-type"&gt;int&lt;/span&gt; &lt;span class="hljs-title function_"&gt;getTime&lt;/span&gt;&lt;span class="hljs-params"&gt;(&lt;span class="hljs-type"&gt;int&lt;/span&gt; mode)&lt;/span&gt; {
    &lt;span class="hljs-keyword"&gt;return&lt;/span&gt; &lt;span class="hljs-keyword"&gt;switch&lt;/span&gt; (mode) {
        &lt;span class="hljs-keyword"&gt;case&lt;/span&gt; &lt;span class="hljs-number"&gt;0&lt;/span&gt; -&amp;gt; &lt;span class="hljs-number"&gt;30&lt;/span&gt; * SECOND;
        &lt;span class="hljs-keyword"&gt;case&lt;/span&gt; &lt;span class="hljs-number"&gt;1&lt;/span&gt; -&amp;gt; &lt;span class="hljs-number"&gt;15&lt;/span&gt; * SECOND;
        &lt;span class="hljs-keyword"&gt;case&lt;/span&gt; &lt;span class="hljs-number"&gt;2&lt;/span&gt; -&amp;gt; &lt;span class="hljs-number"&gt;10&lt;/span&gt; * SECOND;
        &lt;span class="hljs-keyword"&gt;case&lt;/span&gt; &lt;span class="hljs-number"&gt;3&lt;/span&gt; -&amp;gt; &lt;span class="hljs-number"&gt;20&lt;/span&gt; * SECOND;
        &lt;span class="hljs-keyword"&gt;case&lt;/span&gt; &lt;span class="hljs-number"&gt;4&lt;/span&gt; -&amp;gt; &lt;span class="hljs-number"&gt;17&lt;/span&gt; * SECOND;
        &lt;span class="hljs-keyword"&gt;case&lt;/span&gt; &lt;span class="hljs-number"&gt;5&lt;/span&gt; -&amp;gt; &lt;span class="hljs-number"&gt;32&lt;/span&gt; * SECOND;
        &lt;span class="hljs-keyword"&gt;default&lt;/span&gt; -&amp;gt;
            &lt;span class="hljs-comment"&gt;// go to hell&lt;/span&gt;
            &lt;span class="hljs-number"&gt;1000000000&lt;/span&gt;;
    };
}
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;Now, actually using an enum wouldn&amp;#39;t solve this, though it&amp;#39;d make the code more clear. There&amp;#39;s always the risk that the enum would have values added, and then you&amp;#39;d need to update the switch. Besides, maybe enums were just too new- they were only added in 2004 after all. The switch expression syntax here was added in 2020, however, so…&lt;/p&gt;
&lt;p&gt;I just have to wonder: why not just use &lt;code&gt;Integer.MAX_VALUE&lt;/code&gt;? If you want to send them to hell, why not &lt;em&gt;really&lt;/em&gt; send them to hell?&lt;/p&gt;
&lt;!-- Easy Reader Version: Honestly, I haven't done modern Java, so I had to spend a second looking at that syntax and going, "Wait, *IS* this Java?" --&gt;&lt;div&gt;
	&lt;img src="https://thedailywtf.com/images/inedo/proget-icon.png" style="display:block; float: left; margin: 0 10px 10px 0;"/&gt; [Advertisement] 
	Keep all your packages and Docker containers in one place, scan for vulnerabilities, and control who can access different feeds. ProGet installs in minutes and has a powerful free version with a lot of great features that you can upgrade when ready.&lt;a href="https://inedo.com/proget?utm_source=tdwtf&amp;amp;utm_medium=footer&amp;amp;utm_content=PlebsFooter"&gt;Learn more.&lt;/a&gt;
&lt;/div&gt;
&lt;div style="clear: left;"&gt; &lt;/div&gt;
</description><slash:comments>16</slash:comments><wfw:comment>https://thedailywtf.com/articles/comments/referenceerror-hell-is-not-defined</wfw:comment></item><item><dc:creator>Remy Porter</dc:creator><title>How Not to Get Honey-Trapped</title><link>https://thedailywtf.com/articles/how-not-to-get-honey-trapped</link><category>Feature Articles</category><pubDate>Tue, 24 Nov 2026 06:30:00 GMT</pubDate><guid>https://thedailywtf.com/articles/how-not-to-get-honey-trapped</guid><description>&lt;p&gt;At this point, each and every one of us knows more about Jensen Huang&amp;#39;s sex life than I think any of us wanted to know. The &lt;em&gt;actual&lt;/em&gt; scandal is the way he violated export controls to the tune of $12b in chips, but the scandal everyone is talking about is that he was &amp;#34;honey-trapped&amp;#34;. A Chinese spy seduced him, got secrets out of him, and also he violated export controls for her. What can I say? People like thinking about attractive spies doing spy stuff.&lt;/p&gt;
&lt;p&gt;It&amp;#39;s ripe for &lt;a href="https://www.youtube.com/shorts/6F3iD0ITWZg"&gt;joke&lt;/a&gt; of course, but it&amp;#39;s also ripe for &lt;em&gt;paranoia&lt;/em&gt;. I mean, think about it, we&amp;#39;re all in tech. We all know insider secrets. At any moment, an extremely attractive person could seduce us and pump us for information about the inventory management process at Initech, and also seduce us. &lt;em&gt;It could totally happen&lt;/em&gt;.&lt;/p&gt;
&lt;p&gt;At least, that&amp;#39;s what I get from &lt;a href="https://www.wired.com/story/regular-tech-bros-are-worried-about-honeypots/"&gt;this article in Wired&lt;/a&gt;, which opens with this paragraph:&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;When the founder of a cybersecurity firm hired Blaine Anderson as a matchmaker, it wasn’t just because the man was lonely. It was also, Anderson says, because he was “super worried about spies.”&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;Now, the article is paywalled, so let me summarize it for you. Wired interviewed people who were &lt;s&gt;wish-casting&lt;/s&gt; &amp;#34;afraid&amp;#34; that a sexy spy would sexily steal their secrets. Their special knowledge was &lt;em&gt;so&lt;/em&gt; special that they&amp;#39;re they&amp;#39;re going to get &lt;em&gt;pumped&lt;/em&gt; for information.&lt;/p&gt;
&lt;p&gt;To &amp;#34;avoid&amp;#34; getting honey-trapped, our tech geniuses have adopted a series of techniques. Using professional matchmakers is a brilliant choice, according to the professional matchmaker interviewed for the article. Another option is simply refusing to date anyone of Chinese or Russian nationality, which works because no spy agency has ever been able to hide their national origins. The ideal solution, of course, is to exclusively date AI girlfriends, according to a company that sells AI girlfriends.&lt;/p&gt;
&lt;p&gt;I can&amp;#39;t imagine why people who say things like this have a hard time navigating relationships:&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;When tech workers do think of honeypots, they may gravitate toward the stereotype of a beautiful stranger who seduces someone at a bar and then extracts company secrets. “Any time one of us would take a trip to Asia, someone would always make a comment about getting a foreign girlfriend, or future wife, etc.,” one tech worker tells WIRED about his experience at a majority-male workplace. “We&amp;#39;d joke about them meeting a spy, but nobody really considered that seriously. Mostly they were just thinking of sex.”&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;Now, I&amp;#39;ve been in tech for over twenty years, and I&amp;#39;ve collected all sorts of secrets, like &amp;#34;my employer is slipshod in handling &lt;abbr title="Personally Identifiable Information"&gt;PII&lt;/abbr&gt;&amp;#34;, &amp;#34;the admin password for our servers is a common six letter word&amp;#34;, or &amp;#34;which two (married to other people) sales-people hooked up at the holiday party&amp;#34;. In that time, I&amp;#39;ve never been honey-trapped, which I think makes me uniquely qualified to provide instructions on how &lt;em&gt;not&lt;/em&gt; to get honey-trapped.&lt;/p&gt;
&lt;p&gt;And hey, Jensen, buddy, &lt;a href="https://arstechnica.com/ai/2026/11/jensen-huang-reinstated-as-nvidia-ceo-board-chair/"&gt;since you&amp;#39;re back&lt;/a&gt; in as CEO, consider this some free advice. Seems like you could use it!&lt;/p&gt;
&lt;h2 id="dont-be-an-asshole"&gt;Don&amp;#39;t be an asshole&lt;/h2&gt;
&lt;p&gt;&amp;#34;I will tear the top of your head off and pee on your brain,&amp;#34; is a thing Huang once told an employee.&lt;/p&gt;
&lt;p&gt;&amp;#34;I&amp;#39;d rather torture you into greatness,&amp;#34; &lt;a href="https://www.nytimes.com/2026/11/20/technology/jensen-huang-nvidia-culture.html"&gt;he said&lt;/a&gt;. He berated and verbally abused his employees, constantly.&lt;/p&gt;
&lt;p&gt;Now, I&amp;#39;d argue this is a bad management strategy. Sure, Nvidia grew like gangbusters, but was that due to &amp;#34;endless abuse&amp;#34; or due to &amp;#34;having a stockpile of shovels when the gold rush started&amp;#34;. We can&amp;#39;t explore counter-factuals, but I&amp;#39;d argue the growth would have been the same or &lt;em&gt;better&lt;/em&gt; without the abuse. That&amp;#39;s neither here nor there when it comes to honey-traps, however.&lt;/p&gt;
&lt;p&gt;The actual effect of this abuse is to isolate the executives from anyone who could place a check on their behavior. Assuming Huang carried this behavior into his personal life, it means there was likely nobody around who could say, &amp;#34;Bro, she&amp;#39;s being weird. I don&amp;#39;t trust her.&amp;#34; I mean, what&amp;#39;s he going to do? Ask his wife for a vibe check?&lt;/p&gt;
&lt;p&gt;Having a deep network of positive relationships just automatically makes someone harder to manipulate. That&amp;#39;s why cults, for example, work so hard to cut you off from that network. Being a raging prick to everyone around you makes you extremely vulnerable to manipulation.&lt;/p&gt;
&lt;h2 id="dont-cheat-on-your-partner"&gt;Don&amp;#39;t Cheat on your Partner&lt;/h2&gt;
&lt;p&gt;You&amp;#39;d think this one would go without saying, but clearly not.&lt;/p&gt;
&lt;p&gt;Huang, of course, was not just cheating with his sexy spy, but with not one but &lt;em&gt;two&lt;/em&gt; employees at Nvidia.&lt;/p&gt;
&lt;p&gt;I&amp;#39;m not here to suggest that pure monogamy is the only solution. As long as everybody is on board with what&amp;#39;s happening, &lt;em&gt;whatever&lt;/em&gt;. But once a relationship is covert and illicit, you&amp;#39;ve put yourself into a position where you&amp;#39;re extremely vulnerable to manipulation. You can&amp;#39;t just dump your sexy spy, because now they can blackmail you.&lt;/p&gt;
&lt;p&gt;The covert relationship also &lt;em&gt;isolates&lt;/em&gt; you, which goes back to &amp;#34;Don&amp;#39;t be an asshole&amp;#34; point above. It&amp;#39;s your healthy connections to those around you, the open lines of communication you have with people you can trust, which protect you against honey-traps.&lt;/p&gt;
&lt;h3 id="dont-sleep-with-your-employees"&gt;Don&amp;#39;t Sleep With Your Employees&lt;/h3&gt;
&lt;p&gt;Once again, I&amp;#39;m no prude, there&amp;#39;s nothing inherently wrong with workplace relationships, but when you&amp;#39;re the CEO, there is a power imbalance that makes anything like that extremely questionable.&lt;/p&gt;
&lt;p&gt;And remember, just because they passed your company&amp;#39;s background check doesn&amp;#39;t mean they&amp;#39;re not a spy- it just means they passed your background check. The sexy spy you&amp;#39;re fantasizing about &lt;em&gt;could already work for you&lt;/em&gt;.&lt;/p&gt;
&lt;h2 id="dont-date-llms"&gt;Don&amp;#39;t Date LLMs&lt;/h2&gt;
&lt;p&gt;This is just a good rule for life. Do not attempt to have a relationship with the symbol extruding machine. It is not a human being. It cannot have relationships. &amp;#34;My tensor multiplications are feeling sad today,&amp;#34; is an unhinged statement for lunatics to make.&lt;/p&gt;
&lt;p&gt;It&amp;#39;s an extra good rule if you&amp;#39;re worried about honey-traps. First: being the kind of weirdo who dates LLMs is going to isolate you as much as being an asshole. And given how sycophantic LLMs are biased towards being, when your sexy spy enters your life, the LLM will probably tell you to &lt;em&gt;go for it&lt;/em&gt;.&lt;/p&gt;
&lt;p&gt;But more important: is this a local-only model? Because if not, &lt;em&gt;the honey-trap is coming from inside the LLM&lt;/em&gt;.&lt;/p&gt;
&lt;p&gt;The Wired article quotes:&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;“If they have some business secrets they don&amp;#39;t want to share on a date or they feel nervous discussing with real people,” Levin says, “they can discuss them comfortably with their AIs.” (Levin assures WIRED that Joi AI employs several layers of security and that all of the data is anonymized.)&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;&lt;em&gt;Suuuuuuuurrrreeeee&lt;/em&gt;. In other news, I&amp;#39;ve got a bridge to sell you.&lt;/p&gt;
&lt;h2 id="you-arent-as-smart-as-you-think"&gt;You Aren&amp;#39;t as Smart as You Think&lt;/h2&gt;
&lt;p&gt;This is a common affliction amongst tech CEOs, but it&amp;#39;s also just a common affliction in tech. A lot of folks will convince themselves that they&amp;#39;d never fall for this. They&amp;#39;re too &lt;em&gt;smart&lt;/em&gt; to get tricked by a sexy spy (with the subtext that they&amp;#39;d still invite the spy to &lt;em&gt;try&lt;/em&gt;).&lt;/p&gt;
&lt;p&gt;Anybody who&amp;#39;s brushed up against cybersecurity even once knows how false this is. It doesn&amp;#39;t matter how smart you are; you have be perfect 100% of the time, whereas the attacker just has to get past your defenses &lt;em&gt;once&lt;/em&gt;.&lt;/p&gt;
&lt;h2 id="no-leather-jackets"&gt;No! Leather! Jackets!&lt;/h2&gt;
&lt;p&gt;Jensen Huang infamously always wears leather jackets. He has boasted of having 30-40 of them. The problem is that leather jackets have always been a poseur&amp;#39;s choice of garment. They were a purely practical choice, until they entered the popular imagination thanks to Marlon Brando&amp;#39;s turn as a motorcycle gang member in &lt;em&gt;The Wild One&lt;/em&gt;. He single-handedly made them cool, and basically ever since, anyone with a leather jacket was trying to capture some of that mystique.&lt;/p&gt;
&lt;p&gt;But no one else is Marlon Brando. Hell, even Marlon Brando wasn&amp;#39;t really Marlon Brando.&lt;/p&gt;
&lt;p&gt;&amp;#34;Ah, but for me, it&amp;#39;s a practical choice, because I ride a motorcycle, and need the protection!&amp;#34;&lt;/p&gt;
&lt;p&gt;That&amp;#39;s worse. You see how that&amp;#39;s worse, right? Nothing screams &amp;#34;I&amp;#39;m desperate to capture a level of cool I do not possess&amp;#34; than a &lt;em&gt;motorcycle&lt;/em&gt;.&lt;/p&gt;
&lt;p&gt;All of this broadcasts that you have a fantasy of yourself as a cooler person than you actually are. When a spy wants to seduce you, they&amp;#39;re not just using sex and attraction to do it: they&amp;#39;re selling you the fantasy &lt;em&gt;of you&lt;/em&gt; as the cooler, more desirable version of yourself.&lt;/p&gt;
&lt;p&gt;When a spy sees your leather jacket, they see an obvious way in.&lt;/p&gt;
&lt;h2 id="have-other-interests"&gt;Have Other Interests&lt;/h2&gt;
&lt;p&gt;As far as I can tell, Jensen Huang had three things in his life: running Nvidia, berating his employees, and engaging in questionable intimate relationships. But broader interests anchor you as a person. Not only do they build up a community around you, but they also give you things to talk about that are not specifically related to your profession.&lt;/p&gt;
&lt;p&gt;&amp;#34;Tell me a secret,&amp;#34; the spy asks. I reply: &amp;#34;When filming the black-and-white heaven sequences in &lt;em&gt;A Matter of Life and Death&lt;/em&gt; aka &lt;em&gt;Stairway to Heaven&lt;/em&gt; they still filmed the whole thing on three strip technicolor, so that they could mix the channels and still make heaven look magical, which made the funders furious, since it made filming much more expensive. It also meant they could do a gradual transition from black-and-white to color, which had never been done in film before. No, in &lt;em&gt;The Wizard of Oz&lt;/em&gt; they actually used costuming and set design to make it &lt;em&gt;look&lt;/em&gt; black and white, but actually filmed in color for that moment.&amp;#34;&lt;/p&gt;
&lt;h2 id="dont-focus-on-the-fear-of-being-honey-trapped"&gt;Don&amp;#39;t Focus on the Fear of Being Honey-Trapped&lt;/h2&gt;
&lt;p&gt;This entire thing has a stench of desperation to it. Like a leather jacket, there&amp;#39;s a fantasy to this whole thing. For someone who has dedicated their life to the monomaniacal pursit of &lt;em&gt;one thing&lt;/em&gt;, they end up discovering that no matter how much wealth and power it brings them, it still isn&amp;#39;t satisfying. There&amp;#39;s a hole there they can&amp;#39;t fill.&lt;/p&gt;
&lt;p&gt;Wouldn&amp;#39;t it be great if &lt;em&gt;this one thing they&amp;#39;re good at&lt;/em&gt; also made them attractive? Wouldn&amp;#39;t it be great if it made them &lt;em&gt;important&lt;/em&gt;? So important that they&amp;#39;re going to be the target of sexy spies?&lt;/p&gt;
&lt;p&gt;It&amp;#39;s a brilliant fantasy, because they can imagine being so cool, so aware, that they can foil the spy, &lt;em&gt;or if they can&amp;#39;t&lt;/em&gt;, it&amp;#39;s only because they&amp;#39;re so cool and so aware that the spy had to be trained so well that &lt;em&gt;nobody&lt;/em&gt; could have resisted them.&lt;/p&gt;
&lt;p&gt;In short: being a normal human being, with healthy relationships, hobbies, and a realistic work-life balance is the best protection against being honey-trapped.&lt;/p&gt;
&lt;!-- Easy Reader Version: I'm glad you asked. So, three strip technicolor can never truly be replicated with digital methods because of the intensely physical nature of the printing process. You can get the "vibe" of the stock, complete with the hyper-realistic reds, but the physical printing artifacts would be a lot to simulate. It's theoretically possible, but impractical short of applying a complex soft-body physics model to every frame (because it was printed using a gelatin stamping process) --&gt;&lt;div&gt;
	&lt;img src="https://thedailywtf.com/images/inedo/buildmaster-icon.png" style="display:block; float: left; margin: 0 10px 10px 0;"/&gt; [Advertisement] 
	&lt;a href="https://inedo.com/BuildMaster?utm_source=tdwtf&amp;amp;utm_medium=footerad&amp;amp;utm_term=2018&amp;amp;utm_content=Self_Service&amp;amp;utm_campaign=Buildmaster_Footer"&gt;BuildMaster&lt;/a&gt; allows you to create a self-service release management platform that allows different teams to manage their applications. &lt;a href="https://inedo.com/BuildMaster/download?utm_source=tdwtf&amp;amp;utm_medium=footerad&amp;amp;utm_term=2018&amp;amp;utm_content=Self_Service&amp;amp;utm_campaign=Buildmaster_Footer"&gt;Explore how!&lt;/a&gt; 
&lt;/div&gt;
&lt;div style="clear: left;"&gt; &lt;/div&gt;
</description><slash:comments>40</slash:comments><wfw:comment>https://thedailywtf.com/articles/comments/how-not-to-get-honey-trapped</wfw:comment></item><item><dc:creator>Ellis Morning</dc:creator><title>The Perils of Web Development</title><link>https://thedailywtf.com/articles/the-perils-of-web-development</link><category>Feature Articles</category><pubDate>Mon, 23 Nov 2026 06:30:00 GMT</pubDate><guid>https://thedailywtf.com/articles/the-perils-of-web-development</guid><description>&lt;p&gt;Earlier this year, I wrote a couple of times about my &lt;a href="https://thedailywtf.com/articles/wtf-home-edition"&gt;utility closet of infinite WTFs&lt;/a&gt;. After a total remodel and HVAC upgrade, I learned &lt;a href="https://thedailywtf.com/articles/tdwtf-home-edition-pt-2"&gt;the demons had not been exorcised&lt;/a&gt;. Indeed, they still haunt the place, and now they&amp;#39;re really showing off their sense of humor.&lt;/p&gt;

&lt;p&gt;On a recent November morning with frost covering the ground and below-freezing temps, I awoke to find my house a chilly 14.4C / 58F. The gas furnace would try to start up, then fail with the message &amp;#34;Pressure Error - Your system may not be operational. Do not attempt to correct the problem yourself. Contact your dealer as soon as possible.&amp;#34;&lt;/p&gt;

&lt;p style="float:right; padding-left:10px; padding-bottom:10px;"&gt;&lt;a href="https://commons.wikimedia.org/wiki/File:First_Computer_Bug,_1947.jpg" title="Courtesy of the Naval Surface Warfare Center, Dahlgren, VA., 1988., Public domain, via Wikimedia Commons"&gt;&lt;img itemprop="image" width="300" src="https://thumb.wikimedia.org/wikipedia/commons/thumb/e/e7/First_Computer_Bug%2C_1947.jpg/960px-First_Computer_Bug%2C_1947.jpg?utm_source=commons.wikimedia.org&amp;amp;utm_campaign=index&amp;amp;utm_content=thumbnail" srcset="https://thumb.wikimedia.org/wikipedia/commons/thumb/e/e7/First_Computer_Bug%2C_1947.jpg/330px-First_Computer_Bug%2C_1947.jpg?utm_source=commons.wikimedia.org&amp;amp;utm_campaign=index&amp;amp;utm_content=thumbnail 330w, https://thumb.wikimedia.org/wikipedia/commons/thumb/e/e7/First_Computer_Bug%2C_1947.jpg/960px-First_Computer_Bug%2C_1947.jpg?utm_source=commons.wikimedia.org&amp;amp;utm_campaign=index&amp;amp;utm_content=thumbnail 960w, https://thumb.wikimedia.org/wikipedia/commons/thumb/e/e7/First_Computer_Bug%2C_1947.jpg/1280px-First_Computer_Bug%2C_1947.jpg?utm_source=commons.wikimedia.org&amp;amp;utm_campaign=index&amp;amp;utm_content=thumbnail 1280w" sizes="auto" loading="lazy" alt="An actual bug in a computer log, having been found in the relays of a computer in 1947."/&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Thankfully, the heat pump (my primary heat source) was still working. While less effective at those temps, it still did a fine job of warming up the house while I called for help and waited for a technician to arrive.&lt;/p&gt;

&lt;p&gt;The sun was setting by the time the technician was able to come. I stood with him while he attempted to start the furnace. He heard, and pointed out to me, a lot of water sloshing around inside of it.&lt;/p&gt;

&lt;p&gt;My brain still accustomed to my ancient HVAC setup, the words &lt;i&gt;water&lt;/i&gt; and &lt;i&gt;furnace&lt;/i&gt; had never come together in any sort of positive fashion. I panicked at the thought of how bad this was going to get.&lt;/p&gt;

&lt;p&gt;But the technician soon explained that water inside this furnace was normal. As a high-efficiency furnace, it burned natural gas and also extracted heat from waste gas. This produced water condensation as a byproduct, vented outdoors as water vapor. There was also a drain-pan and a drain hose inside the furnace, leading to a drain line and floor drain.&lt;/p&gt;

&lt;p&gt;However, a drain hose doesn&amp;#39;t work very well if a spider should crawl into the furnace exhaust pipe from outside, walk all the way into the furnace, climb down into the hose, and build himself a little home there.&lt;/p&gt;

&lt;p&gt;The water that had built up inside the furnace was sloshing up high enough to hit the furnace&amp;#39;s pressure sensor. All the technician had to do was evict the spider, clear the hose, and drain the excess water.&lt;/p&gt;

&lt;p&gt;My furnace was back in business. My warranty covered everything. I couldn&amp;#39;t help but think about Admiral Grace Hopper, and the literal bug which stopped her work. And now she&amp;#39;s smiling down upon us all from heaven.&lt;/p&gt;&lt;div&gt;
	[Advertisement] &lt;b&gt;Plan Your .NET 9 Migration with Confidence&lt;/b&gt;&lt;br/&gt;Your journey to .NET 9 is more than just one decision.Avoid migration migraines with the advice in this free guide. &lt;b&gt;&lt;a href="https://inedo.com/support/whitepapers/dotnet-guide?utm_campaign=dotnet&amp;amp;utm_source=tdwtf-footer"&gt;Download Free Guide Now!&lt;/a&gt;&lt;/b&gt;
&lt;/div&gt;
&lt;div style="clear: left;"&gt; &lt;/div&gt;</description><slash:comments>13</slash:comments><wfw:comment>https://thedailywtf.com/articles/comments/the-perils-of-web-development</wfw:comment></item><item><dc:creator>Lyle Seaman</dc:creator><title>Error'd: There's a Chill in the Air</title><link>https://thedailywtf.com/articles/there-s-a-chill-in-the-air</link><category>Error'd</category><pubDate>Fri, 20 Nov 2026 06:30:00 GMT</pubDate><guid>https://thedailywtf.com/articles/there-s-a-chill-in-the-air</guid><description>&lt;p&gt;There&amp;#39;s a bathroom on the right! &lt;/p&gt;

&lt;p&gt;&amp;#34;Interesting temperature reading from WU&amp;#34; notes
&lt;strong&gt;Peter G.&lt;/strong&gt;
&amp;#34;This must be what happens when a bulk liquid nitrogen
carrier runs aground in your favourite holiday spot. Either that
or you&amp;#39;re supposed to take the average of +60 and
-40 to get the actual temperature.&amp;#34;
&lt;/p&gt;&lt;blockquote&gt;&lt;p&gt;&lt;a href="#0ba898115e864cd08c200e520f79e24f"&gt;&lt;img itemprop="image" border="0" alt="0ba898115e864cd08c200e520f79e24f" src="https://d3hvi6t161kfmf.cloudfront.net/images/2026/11/14/0ba898115e864cd08c200e520f79e24f.png"/&gt;&lt;/a&gt;&lt;/p&gt;&lt;p&gt; &lt;/p&gt;&lt;/blockquote&gt;

&lt;p&gt;At the same time, an anon mutters 
&amp;#34;I think someone left the freezer door open.&amp;#34;
&lt;/p&gt;&lt;blockquote&gt;&lt;p&gt;&lt;a href="#90c21670aae6469482db10dc1451ebdc"&gt;&lt;img itemprop="image" border="0" alt="90c21670aae6469482db10dc1451ebdc" src="https://d3hvi6t161kfmf.cloudfront.net/images/2026/11/14/90c21670aae6469482db10dc1451ebdc.png"/&gt;&lt;/a&gt;&lt;/p&gt;&lt;p&gt; &lt;/p&gt;&lt;/blockquote&gt;

&lt;p&gt;And an anonagain loves
&amp;#34;M$ SharePoint security. Need I say more?&amp;#34;
&lt;/p&gt;&lt;blockquote&gt;&lt;p&gt;&lt;a href="#771448c9c00f4f2f80cc923fd1aa3035"&gt;&lt;img itemprop="image" border="0" alt="771448c9c00f4f2f80cc923fd1aa3035" src="https://d3hvi6t161kfmf.cloudfront.net/images/2026/11/14/771448c9c00f4f2f80cc923fd1aa3035.png"/&gt;&lt;/a&gt;&lt;/p&gt;&lt;p&gt; &lt;/p&gt;&lt;/blockquote&gt;

&lt;p&gt;Furry friend 
&lt;strong&gt;The Beast in Black&lt;/strong&gt; growls
&amp;#34;This unique hotel amenity is one I haven&amp;#39;t yet seen
offered elsewhere and is one I&amp;#39;ll certainly be using.&amp;#34;
&lt;/p&gt;&lt;blockquote&gt;&lt;p&gt;&lt;a href="#fa94a9b717c24d6c9b5ec0b1b62ef6a3"&gt;&lt;img itemprop="image" border="0" alt="fa94a9b717c24d6c9b5ec0b1b62ef6a3" src="https://d3hvi6t161kfmf.cloudfront.net/images/2026/11/14/fa94a9b717c24d6c9b5ec0b1b62ef6a3.png"/&gt;&lt;/a&gt;&lt;/p&gt;&lt;p&gt; &lt;/p&gt;&lt;/blockquote&gt;


&lt;p&gt;Until 
&lt;strong&gt;John&lt;/strong&gt; remembers that 
&amp;#34;AI&amp;#39;s are not causing the memory shortage, they claim to
be solving it! Hopefully the stochastic approximations will not spread
any further through the operating system.&amp;#34; It just depends on what the meaning of the word is is.
&lt;/p&gt;&lt;blockquote&gt;&lt;p&gt;&lt;a href="#ca4f951cd035423d964e168d1a197e4d"&gt;&lt;img itemprop="image" border="0" alt="ca4f951cd035423d964e168d1a197e4d" src="https://d3hvi6t161kfmf.cloudfront.net/images/2026/11/14/ca4f951cd035423d964e168d1a197e4d.png"/&gt;&lt;/a&gt;&lt;/p&gt;&lt;p&gt; &lt;/p&gt;&lt;/blockquote&gt;

&lt;div&gt;
	&lt;img src="https://thedailywtf.com/images/inedo/proget-icon.png" style="display:block; float: left; margin: 0 10px 10px 0;"/&gt; [Advertisement] 
	Keep all your packages and Docker containers in one place, scan for vulnerabilities, and control who can access different feeds. ProGet installs in minutes and has a powerful free version with a lot of great features that you can upgrade when ready.&lt;a href="https://inedo.com/proget?utm_source=tdwtf&amp;amp;utm_medium=footer&amp;amp;utm_content=PlebsFooter"&gt;Learn more.&lt;/a&gt;
&lt;/div&gt;
&lt;div style="clear: left;"&gt; &lt;/div&gt;
</description><slash:comments>10</slash:comments><wfw:comment>https://thedailywtf.com/articles/comments/there-s-a-chill-in-the-air</wfw:comment></item><item><dc:creator>Remy Porter</dc:creator><title>CodeSOD: A Living Fossil</title><link>https://thedailywtf.com/articles/a-living-fossil</link><category>CodeSOD</category><pubDate>Thu, 19 Nov 2026 06:30:00 GMT</pubDate><guid>https://thedailywtf.com/articles/a-living-fossil</guid><description>&lt;p&gt;Today&amp;#39;s anonymous submission is a blast from the past. This comes from an intranet HTML page that has been receiving continuous updates for some time. How long? Well, let&amp;#39;s take a peek at how it does its layout.&lt;/p&gt;
&lt;pre&gt;&lt;code class="language-html"&gt;                                                            &lt;span class="hljs-tag"&gt;&amp;lt;&lt;span class="hljs-name"&gt;b&lt;/span&gt;&amp;gt;&lt;/span&gt;Extension:&lt;span class="hljs-tag"&gt;&amp;lt;/&lt;span class="hljs-name"&gt;b&lt;/span&gt;&amp;gt;&lt;/span&gt; x5555&lt;span class="hljs-tag"&gt;&amp;lt;&lt;span class="hljs-name"&gt;br&lt;/span&gt; /&amp;gt;&lt;/span&gt;
                                                            &lt;span class="hljs-tag"&gt;&amp;lt;&lt;span class="hljs-name"&gt;b&lt;/span&gt;&amp;gt;&lt;/span&gt;Email:&lt;span class="hljs-tag"&gt;&amp;lt;/&lt;span class="hljs-name"&gt;b&lt;/span&gt;&amp;gt;&lt;/span&gt;: &lt;span class="hljs-tag"&gt;&amp;lt;&lt;span class="hljs-name"&gt;a&lt;/span&gt; &lt;span class="hljs-attr"&gt;href&lt;/span&gt;=&lt;span class="hljs-string"&gt;&amp;#34;mailto:blahblah@example.com&amp;#34;&lt;/span&gt;&amp;gt;&lt;/span&gt;&lt;span class="hljs-tag"&gt;&amp;lt;/&lt;span class="hljs-name"&gt;a&lt;/span&gt;&amp;gt;&lt;/span&gt;&lt;span class="hljs-tag"&gt;&amp;lt;&lt;span class="hljs-name"&gt;br&lt;/span&gt; /&amp;gt;&lt;/span&gt;&lt;span class="hljs-tag"&gt;&amp;lt;&lt;span class="hljs-name"&gt;br&lt;/span&gt; /&amp;gt;&lt;/span&gt;
                                                        &lt;span class="hljs-tag"&gt;&amp;lt;/&lt;span class="hljs-name"&gt;td&lt;/span&gt;&amp;gt;&lt;/span&gt;
                                                        &lt;span class="hljs-tag"&gt;&amp;lt;&lt;span class="hljs-name"&gt;td&lt;/span&gt; &lt;span class="hljs-attr"&gt;width&lt;/span&gt;=&lt;span class="hljs-string"&gt;140&lt;/span&gt;&amp;gt;&lt;/span&gt;
                                                        &lt;span class="hljs-tag"&gt;&amp;lt;/&lt;span class="hljs-name"&gt;td&lt;/span&gt;&amp;gt;&lt;/span&gt;
                                                    &lt;span class="hljs-tag"&gt;&amp;lt;/&lt;span class="hljs-name"&gt;tr&lt;/span&gt;&amp;gt;&lt;/span&gt;
                                                    &lt;span class="hljs-tag"&gt;&amp;lt;&lt;span class="hljs-name"&gt;tr&lt;/span&gt;&amp;gt;&lt;/span&gt;&lt;span class="hljs-tag"&gt;&amp;lt;&lt;span class="hljs-name"&gt;td&lt;/span&gt;&amp;gt;&lt;/span&gt;&lt;span class="hljs-symbol"&gt;&amp;amp;nbsp;&lt;/span&gt;&lt;span class="hljs-tag"&gt;&amp;lt;/&lt;span class="hljs-name"&gt;td&lt;/span&gt;&amp;gt;&lt;/span&gt;&lt;span class="hljs-tag"&gt;&amp;lt;/&lt;span class="hljs-name"&gt;tr&lt;/span&gt;&amp;gt;&lt;/span&gt;
                                                    &lt;span class="hljs-tag"&gt;&amp;lt;&lt;span class="hljs-name"&gt;tr&lt;/span&gt;&amp;gt;&lt;/span&gt;&lt;span class="hljs-tag"&gt;&amp;lt;&lt;span class="hljs-name"&gt;td&lt;/span&gt;&amp;gt;&lt;/span&gt;&lt;span class="hljs-symbol"&gt;&amp;amp;nbsp;&lt;/span&gt;&lt;span class="hljs-tag"&gt;&amp;lt;/&lt;span class="hljs-name"&gt;td&lt;/span&gt;&amp;gt;&lt;/span&gt;&lt;span class="hljs-tag"&gt;&amp;lt;/&lt;span class="hljs-name"&gt;tr&lt;/span&gt;&amp;gt;&lt;/span&gt;
                                                &lt;span class="hljs-tag"&gt;&amp;lt;/&lt;span class="hljs-name"&gt;td&lt;/span&gt;&amp;gt;&lt;/span&gt;
                                            &lt;span class="hljs-tag"&gt;&amp;lt;/&lt;span class="hljs-name"&gt;table&lt;/span&gt;&amp;gt;&lt;/span&gt;
                                        &lt;span class="hljs-tag"&gt;&amp;lt;/&lt;span class="hljs-name"&gt;center&lt;/span&gt;&amp;gt;&lt;/span&gt;
&lt;span class="hljs-comment"&gt;&amp;lt;!-- END DIRECTORY --&amp;gt;&lt;/span&gt;
                                        &lt;span class="hljs-tag"&gt;&amp;lt;&lt;span class="hljs-name"&gt;tr&lt;/span&gt;&amp;gt;&lt;/span&gt;&lt;span class="hljs-tag"&gt;&amp;lt;&lt;span class="hljs-name"&gt;td&lt;/span&gt;&amp;gt;&lt;/span&gt;&lt;span class="hljs-tag"&gt;&amp;lt;&lt;span class="hljs-name"&gt;br&lt;/span&gt; /&amp;gt;&lt;/span&gt;&lt;span class="hljs-tag"&gt;&amp;lt;/&lt;span class="hljs-name"&gt;td&lt;/span&gt;&amp;gt;&lt;/span&gt;&lt;span class="hljs-tag"&gt;&amp;lt;/&lt;span class="hljs-name"&gt;tr&lt;/span&gt;&amp;gt;&lt;/span&gt;
                                    &lt;span class="hljs-tag"&gt;&amp;lt;/&lt;span class="hljs-name"&gt;td&lt;/span&gt;&amp;gt;&lt;/span&gt;
                                &lt;span class="hljs-tag"&gt;&amp;lt;/&lt;span class="hljs-name"&gt;tr&lt;/span&gt;&amp;gt;&lt;/span&gt;
                            &lt;span class="hljs-tag"&gt;&amp;lt;/&lt;span class="hljs-name"&gt;table&lt;/span&gt;&amp;gt;&lt;/span&gt;
&lt;span class="hljs-comment"&gt;&amp;lt;!-- MATERIAL ENDS HERE --&amp;gt;&lt;/span&gt;
                            &lt;span class="hljs-tag"&gt;&amp;lt;&lt;span class="hljs-name"&gt;br&lt;/span&gt; /&amp;gt;&lt;/span&gt;
                            &lt;span class="hljs-tag"&gt;&amp;lt;&lt;span class="hljs-name"&gt;br&lt;/span&gt; /&amp;gt;&lt;/span&gt;
                        &lt;span class="hljs-tag"&gt;&amp;lt;/&lt;span class="hljs-name"&gt;td&lt;/span&gt;&amp;gt;&lt;/span&gt;
                    &lt;span class="hljs-tag"&gt;&amp;lt;/&lt;span class="hljs-name"&gt;tr&lt;/span&gt;&amp;gt;&lt;/span&gt;
                &lt;span class="hljs-tag"&gt;&amp;lt;/&lt;span class="hljs-name"&gt;table&lt;/span&gt;&amp;gt;&lt;/span&gt;
            &lt;span class="hljs-tag"&gt;&amp;lt;/&lt;span class="hljs-name"&gt;center&lt;/span&gt;&amp;gt;&lt;/span&gt;
        &lt;span class="hljs-tag"&gt;&amp;lt;/&lt;span class="hljs-name"&gt;td&lt;/span&gt;&amp;gt;&lt;/span&gt;
    &lt;span class="hljs-tag"&gt;&amp;lt;/&lt;span class="hljs-name"&gt;tr&lt;/span&gt;&amp;gt;&lt;/span&gt;
    &lt;span class="hljs-tag"&gt;&amp;lt;&lt;span class="hljs-name"&gt;tr&lt;/span&gt;&amp;gt;&lt;/span&gt;&lt;span class="hljs-tag"&gt;&amp;lt;&lt;span class="hljs-name"&gt;td&lt;/span&gt; &lt;span class="hljs-attr"&gt;width&lt;/span&gt;=&lt;span class="hljs-string"&gt;987&lt;/span&gt; &lt;span class="hljs-attr"&gt;height&lt;/span&gt;=&lt;span class="hljs-string"&gt;4&lt;/span&gt; &lt;span class="hljs-attr"&gt;background&lt;/span&gt;=&lt;span class="hljs-string"&gt;&amp;#34;../images/table_bottom_sidebar.jpg&amp;#34;&lt;/span&gt;&amp;gt;&lt;/span&gt;&lt;span class="hljs-tag"&gt;&amp;lt;/&lt;span class="hljs-name"&gt;td&lt;/span&gt;&amp;gt;&lt;/span&gt;&lt;span class="hljs-tag"&gt;&amp;lt;/&lt;span class="hljs-name"&gt;tr&lt;/span&gt;&amp;gt;&lt;/span&gt;
&lt;span class="hljs-tag"&gt;&amp;lt;/&lt;span class="hljs-name"&gt;table&lt;/span&gt;&amp;gt;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;This is like a coelecanth, or a horeshoe crab. A living fossil. There are hints that imply this started life as the output of a WYSIWYG editor, like Dreamweaver or something. The loads of line break tags, the table cells that contain only a space, and also the one table cell that contains a line break- that feels like a WYSIWYG trying to interpret what the user types. But the comments imply someone was also looking at the HTML code at some point. And certainly, in the modern era, it is being edited by someone with a text editor.&lt;/p&gt;
&lt;p&gt;The absence of CSS might point us towards a late 90s website, as by the early 00s, CSS was starting to become standard, but the thing that really pins this in a point in time is the XHTML style self-closing &lt;code&gt;&amp;lt;br /&amp;gt;&lt;/code&gt; tags.&lt;/p&gt;
&lt;p&gt;But then little quirks highlight that someone was also getting &amp;#34;creative&amp;#34; with code. The &lt;code&gt;table_bottom_sidebar.jpg&lt;/code&gt; had related images, all designed to put borders in the table. There were matching images for left, right, and top borders.&lt;/p&gt;
&lt;p&gt;Our submitter adds: &amp;#34;Needless to say, this site is being replaced.&amp;#34;&lt;/p&gt;
&lt;p&gt;Replaced? It should get a historical marker. This is how we used to do it, in the bad old days. We&amp;#39;d add &lt;code&gt;&amp;lt;br /&amp;gt;&amp;amp;nbsp;&lt;/code&gt; while churning butter in homespun dresses, and we &lt;em&gt;liked it&lt;/em&gt;.&lt;/p&gt;
&lt;p&gt;Okay, we didn&amp;#39;t like it. But still.&lt;/p&gt;
&lt;!-- Easy Reader Version: This was like 1000 lines of HTML, but with modern web frameworks we could do this in 10,000 lines of code. --&gt;&lt;div&gt;
	&lt;img src="https://thedailywtf.com/images/inedo/proget-icon.png" style="display:block; float: left; margin: 0 10px 10px 0;"/&gt; [Advertisement] 
	Keep all your packages and Docker containers in one place, scan for vulnerabilities, and control who can access different feeds. ProGet installs in minutes and has a powerful free version with a lot of great features that you can upgrade when ready.&lt;a href="https://inedo.com/proget?utm_source=tdwtf&amp;amp;utm_medium=footer&amp;amp;utm_content=PlebsFooter"&gt;Learn more.&lt;/a&gt;
&lt;/div&gt;
&lt;div style="clear: left;"&gt; &lt;/div&gt;
</description><slash:comments>21</slash:comments><wfw:comment>https://thedailywtf.com/articles/comments/a-living-fossil</wfw:comment></item><item><dc:creator>Remy Porter</dc:creator><title>Representative Line: Terning White as a (Style)Sheet</title><link>https://thedailywtf.com/articles/terning-white-as-a-style-sheet</link><category>Representative Line</category><pubDate>Wed, 18 Nov 2026 06:30:00 GMT</pubDate><guid>https://thedailywtf.com/articles/terning-white-as-a-style-sheet</guid><description>&lt;p&gt;Years ago, &lt;strong&gt;Stefan&lt;/strong&gt;&amp;#39;s company was short handed, especially on the developer team. But they had a large hell-desk support team. And at some point, someone had the genius idea: &amp;#34;PHP is easy for anyone to learn, and so our helpdesk folks should have no problem. Let&amp;#39;s hand them development tasks.&amp;#34;&lt;/p&gt;
&lt;p&gt;Which meant Stefan inherited lots of lines which look like this:&lt;/p&gt;
&lt;pre&gt;&lt;code class="language-php"&gt;&lt;span class="hljs-variable"&gt;$bgc&lt;/span&gt; = &lt;span class="hljs-variable"&gt;$tno&lt;/span&gt; ? &lt;span class="hljs-string"&gt;&amp;#39;#FFFFFF&amp;#39;&lt;/span&gt; : &lt;span class="hljs-string"&gt;&amp;#39;#FFFFFF&amp;#39;&lt;/span&gt;;
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;Unlike many examples of this pattern, this is not the result of a pre-processing or templating step generating a conditional where both branches are the same value. Someone actually typed this. Also, notably, the variable &lt;code&gt;$tno&lt;/code&gt; holds a numeric value, not a boolean, and is never null. It sometimes is zero, which is &lt;a href="https://www.php.net/manual/en/language.types.boolean.php"&gt;false&lt;/a&gt;, but zero is just a regular value it might hold, and thus it shouldn&amp;#39;t get any special formatting.&lt;/p&gt;
&lt;p&gt;In short, the ternary shouldn&amp;#39;t be here, not just because both branches are the same thing, but because there shouldn&amp;#39;t logically be any branching at all.&lt;/p&gt;
&lt;!-- Easy Reader Version: Once upon a time, managers would go, "you have a pulse, write code," now they go "you have a tensor, write code". The results are marginally better, but for the love of the gods, I wish someone would finally understand that code is not just functionality, but it's also tech debt. LLMs are generating tech debt at scale. --&gt;&lt;div&gt;
	&lt;img src="https://thedailywtf.com/images/inedo/proget-icon.png" style="display:block; float: left; margin: 0 10px 10px 0;"/&gt; [Advertisement] 
	ProGet’s got you covered with security and access controls on your NuGet feeds. &lt;a href="https://inedo.com/proget/private-nuget-server?utm_source=tdwtf&amp;amp;utm_medium=footer&amp;amp;utm_content=GotYouCoveredFooter&amp;amp;utm_campaign=Cyclops2020"&gt;Learn more.&lt;/a&gt;
&lt;/div&gt;
&lt;div style="clear: left;"&gt; &lt;/div&gt;
</description><slash:comments>21</slash:comments><wfw:comment>https://thedailywtf.com/articles/comments/terning-white-as-a-style-sheet</wfw:comment></item><item><dc:creator>Remy Porter</dc:creator><title>CodeSOD: Building a Line</title><link>https://thedailywtf.com/articles/building-a-line</link><category>CodeSOD</category><pubDate>Tue, 17 Nov 2026 06:30:00 GMT</pubDate><guid>https://thedailywtf.com/articles/building-a-line</guid><description>&lt;p&gt;There&amp;#39;s an unofficial category of posts here that I call &amp;#34;Somebody told us string builders were more efficient, so we always use string builders, regardless of whether or not that actually makes sense,&amp;#34; or STUSBWMESWAUSBROWONTAMS, for short. Probably should workshop that name some.&lt;/p&gt;
&lt;p&gt;In any case, &lt;strong&gt;Adam&lt;/strong&gt; sends us a new entry for that collection:&lt;/p&gt;
&lt;pre&gt;&lt;code class="language-vbscript"&gt; &lt;span class="hljs-keyword"&gt;Public&lt;/span&gt; &lt;span class="hljs-keyword"&gt;Function&lt;/span&gt; ReadFromFile(&lt;span class="hljs-keyword"&gt;ByVal&lt;/span&gt; filename As String) As String

    &lt;span class="hljs-keyword"&gt;Dim&lt;/span&gt; sb As StringBuilder = &lt;span class="hljs-keyword"&gt;New&lt;/span&gt; StringBuilder()
    &lt;span class="hljs-keyword"&gt;Dim&lt;/span&gt; str As String = String.&lt;span class="hljs-literal"&gt;Empty&lt;/span&gt;

    Using sr As StreamReader = File.OpenText(filename)
        str = sr.ReadToEnd()
        sb.Append(str &amp;amp; Constants.vbLf)
    &lt;span class="hljs-keyword"&gt;End&lt;/span&gt; Using

    Return sb.&lt;span class="hljs-keyword"&gt;To&lt;/span&gt;&lt;span class="hljs-built_in"&gt;String&lt;/span&gt;()

&lt;span class="hljs-keyword"&gt;End&lt;/span&gt; &lt;span class="hljs-keyword"&gt;Function&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;This function takes a filename, opens a file, reads the entire contents of the file to a variable. It concatenates a line feed to the end of the string it just read, &lt;em&gt;then&lt;/em&gt; appends all of that to a string builder. Finally, we &lt;code&gt;return sb.ToString()&lt;/code&gt;, taking the single string in the string builder, appending nothing to it, and returning the result.&lt;/p&gt;
&lt;p&gt;I&amp;#39;d almost, &lt;em&gt;almost&lt;/em&gt; forgive the code if it was more like:&lt;/p&gt;
&lt;pre&gt;&lt;code class="language-vbscript"&gt;        str = sr.ReadToEnd()
        sb.Append(str)
        sb.Append(Constants.vbLf)
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;You&amp;#39;re not actually gaining much from this, but it follows the broad pattern of &amp;#34;use a string builder&amp;#34; so that if you ever wanted to change the structure of the output, you&amp;#39;re already set up to prepend/append new text in a scalable way. I&amp;#39;d argue that&amp;#39;s premature abstraction, though: a simple &lt;code&gt;return sr.ReadToEnd() &amp;amp; Constants.vbLf&lt;/code&gt; would do the current job.&lt;/p&gt;
&lt;p&gt;The code that we have is a clear superstitious use of string builders. The string builder is used as a charm against poor performance, without understanding &lt;em&gt;why&lt;/em&gt; one might use it, or &lt;em&gt;how&lt;/em&gt; it might work; string concatenation means string builder, always and forever, &amp;#34;why&amp;#34; doesn&amp;#39;t enter into it.&lt;/p&gt;
&lt;!-- Easy Reader Version: Python's "".join(enumerable) remains the weirdest approach to string building that I routinely encounter. Not a WTF, just a "why would you do it that way?" --&gt;&lt;div&gt;
	&lt;img src="https://thedailywtf.com/images/inedo/proget-icon.png" style="display:block; float: left; margin: 0 10px 10px 0;"/&gt; [Advertisement] 
	Keep all your packages and Docker containers in one place, scan for vulnerabilities, and control who can access different feeds. ProGet installs in minutes and has a powerful free version with a lot of great features that you can upgrade when ready.&lt;a href="https://inedo.com/proget?utm_source=tdwtf&amp;amp;utm_medium=footer&amp;amp;utm_content=PlebsFooter"&gt;Learn more.&lt;/a&gt;
&lt;/div&gt;
&lt;div style="clear: left;"&gt; &lt;/div&gt;
</description><slash:comments>21</slash:comments><wfw:comment>https://thedailywtf.com/articles/comments/building-a-line</wfw:comment></item><item><dc:creator>Ellis Morning</dc:creator><title>Unenumerbrated</title><link>https://thedailywtf.com/articles/unenumerbrated</link><category>Feature Articles</category><pubDate>Mon, 16 Nov 2026 06:30:00 GMT</pubDate><guid>https://thedailywtf.com/articles/unenumerbrated</guid><description>&lt;p&gt;Submitter &lt;b&gt;Valts&lt;/b&gt; shares an enumerated mystery:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;This happened a few years ago (before COVID). A colleague called me over because he couldn&amp;#39;t make sense of the results he was getting from some MySQL queries in MySQL Workbench. I don&amp;#39;t remember the queries in particular, but let&amp;#39;s say &lt;code&gt;select * from payments where client_id=1234&lt;/code&gt; showed 12 rows, all having the &lt;code&gt;successful&lt;/code&gt; field set to &lt;code&gt;1&lt;/code&gt;. But when you selected &lt;code&gt;select count(*) from payments where client_id=1234 and successful=1&lt;/code&gt; you got back &lt;code&gt;0&lt;/code&gt; rows. And this was reproducible on my machine, too. Yet in code similar queries worked just fine.&lt;/p&gt;

&lt;p&gt;After a lot of head-scratching and increasingly bizarre hypotheses, we finally figured out what was going on. In the far, far past, in dark days gone by, someone had defined the database field as &lt;code&gt;enum(&amp;#39;0&amp;#39;, &amp;#39;1&amp;#39;)&lt;/code&gt;. This SEEMS pretty rational ... until you start reading up how MySQL treats enums. Enums, it turns out, are all &lt;b&gt;STRING&lt;/b&gt; values. But in queries you can use either their string values, or their integer indices, starting at 1. So in this case, the string &amp;#34;0&amp;#34; has the integer index of &amp;#34;1&amp;#34;, and the string &amp;#34;1&amp;#34; has the integer index of &amp;#34;2&amp;#34;. So &lt;code&gt;select * from payments where successful=&amp;#39;1&amp;#39;&lt;/code&gt; is quite different from &lt;code&gt;select * from payments where successful=1&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;For extra confusion, under most other circumstances MySQL normally silently converts between strings and integers as needed. Some ORM/QueryBuilder frameworks even simply quote ALL values and let MySQL handle the conversions.&lt;/p&gt;

&lt;p&gt;Facepalms were had.

&lt;/p&gt;&lt;p&gt;In the aftermath, I blame the person who defined this field more than I blame MySQL for its bizzare enum conventions. If you&amp;#39;re doing enums (which are generally a good thing), then give them proper names like &lt;code&gt;successful&lt;/code&gt; and &lt;code&gt;unsuccessful&lt;/code&gt; or something. Not &lt;code&gt;0&lt;/code&gt; and &lt;code&gt;1&lt;/code&gt;.

&lt;/p&gt;&lt;p&gt;This code and this database table is still in use today, but luckily it&amp;#39;s the only such gotcha in the entire system. Enums in the database are scarce and the rest of them are sane.&lt;/p&gt;
&lt;/blockquote&gt;&lt;div&gt;
	&lt;img src="https://thedailywtf.com/images/inedo/proget-icon.png" style="display:block; float: left; margin: 0 10px 10px 0;"/&gt; [Advertisement] 
	Keep all your packages and Docker containers in one place, scan for vulnerabilities, and control who can access different feeds. ProGet installs in minutes and has a powerful free version with a lot of great features that you can upgrade when ready.&lt;a href="https://inedo.com/proget?utm_source=tdwtf&amp;amp;utm_medium=footer&amp;amp;utm_content=PlebsFooter"&gt;Learn more.&lt;/a&gt;
&lt;/div&gt;
&lt;div style="clear: left;"&gt; &lt;/div&gt;
</description><slash:comments>14</slash:comments><wfw:comment>https://thedailywtf.com/articles/comments/unenumerbrated</wfw:comment></item><item><dc:creator>Lyle Seaman</dc:creator><title>Error'd: The Artist Formerly Known As</title><link>https://thedailywtf.com/articles/the-artist-formerly-known-as</link><category>Error'd</category><pubDate>Fri, 13 Nov 2026 06:30:00 GMT</pubDate><guid>https://thedailywtf.com/articles/the-artist-formerly-known-as</guid><description>&lt;p&gt;&amp;#34;You want my what?&amp;#34; The artist formerly known as Toyota has a proposition for 
&lt;strong&gt;Chris&lt;/strong&gt;.
&amp;#34;Toyota wants me to trade in my current car, but
the email was missing a few words.&amp;#34;
&lt;/p&gt;&lt;blockquote&gt;&lt;p&gt;&lt;a href="#15f726a5a2ff41c0a9f8685d961cf713"&gt;&lt;img itemprop="image" border="0" alt="15f726a5a2ff41c0a9f8685d961cf713" src="https://d3hvi6t161kfmf.cloudfront.net/images/2026/11/11/15f726a5a2ff41c0a9f8685d961cf713.png"/&gt;&lt;/a&gt;&lt;/p&gt;&lt;p&gt; &lt;/p&gt;&lt;/blockquote&gt;

&lt;p&gt;Just another ordinary zero date here, from 
&lt;strong&gt;Hercules&lt;/strong&gt; 
&amp;#34;I wanted to ship a gift for my sister. I
understand delays, but it&amp;#39;s going to be delayed to before
either of us were born?&amp;#34;  He also reported that another page demonstrated the possibility of nullable drivers which is either terrifying or just proof of more automation.  Or both.
&lt;/p&gt;&lt;blockquote&gt;&lt;p&gt;&lt;a href="#73aed7f12a04487cb86f5b5b1dcede29"&gt;&lt;img itemprop="image" border="0" alt="73aed7f12a04487cb86f5b5b1dcede29" src="https://d3hvi6t161kfmf.cloudfront.net/images/2026/11/11/73aed7f12a04487cb86f5b5b1dcede29.png"/&gt;&lt;/a&gt;&lt;/p&gt;&lt;p&gt; &lt;/p&gt;&lt;/blockquote&gt;

&lt;p&gt;&amp;#34;Can you back date my refund?&amp;#34;
&lt;strong&gt;Totty&lt;/strong&gt; reasonably requests. 
&amp;#34;Thanks for the timely update&amp;#34;
&lt;/p&gt;&lt;blockquote&gt;&lt;p&gt;&lt;a href="#aea653b2a6a94e008b336bf76ddf3858"&gt;&lt;img itemprop="image" border="0" alt="aea653b2a6a94e008b336bf76ddf3858" src="https://d3hvi6t161kfmf.cloudfront.net/images/2026/11/11/aea653b2a6a94e008b336bf76ddf3858.png"/&gt;&lt;/a&gt;&lt;/p&gt;&lt;p&gt; &lt;/p&gt;&lt;/blockquote&gt;

&lt;p&gt;
&lt;strong&gt;WeaponizedFun&lt;/strong&gt; has some Coupon Confusion. Too hungry; didn&amp;#39;t read. 
&amp;#34;I would have thought ordering a two-topping pizza combo would
have been easier, but apparently there are only specific ways
I can use this coupon that still leave me scratching
my head. Ultimately, the coupon wasn&amp;#39;t applicable to what I
wanted to order, so I guess I&amp;#39;ll never know.&amp;#34;
&lt;/p&gt;&lt;blockquote&gt;&lt;p&gt;&lt;a href="#ed81c04aba61495990e21a41adb80948"&gt;&lt;img itemprop="image" border="0" alt="ed81c04aba61495990e21a41adb80948" src="https://d3hvi6t161kfmf.cloudfront.net/images/2026/11/11/ed81c04aba61495990e21a41adb80948.png"/&gt;&lt;/a&gt;&lt;/p&gt;&lt;p&gt; &lt;/p&gt;&lt;/blockquote&gt;

&lt;p&gt;
&lt;strong&gt;appas&lt;/strong&gt; wonders regarding this error dialog from a powerbank renting station 
&amp;#34;Does this qualify as a source code leak?&amp;#34; Personally, I wonder if someone can identify the tools used
to build this website. I frequently find myself struggling with encoding/decoding/armoring strings and I also wonder if anyone anywhere has a good solution.
&lt;/p&gt;&lt;blockquote&gt;&lt;p&gt;&lt;a href="#0cab441686b144b1ac8392ac1cf793cb"&gt;&lt;img itemprop="image" border="0" alt="0cab441686b144b1ac8392ac1cf793cb" src="https://d3hvi6t161kfmf.cloudfront.net/images/2026/11/11/0cab441686b144b1ac8392ac1cf793cb.jpeg"/&gt;&lt;/a&gt;&lt;/p&gt;&lt;p&gt; &lt;/p&gt;&lt;/blockquote&gt;

&lt;div&gt;
	&lt;img src="https://thedailywtf.com/images/inedo/proget-icon.png" style="display:block; float: left; margin: 0 10px 10px 0;"/&gt; [Advertisement] 
	ProGet’s got you covered with security and access controls on your NuGet feeds. &lt;a href="https://inedo.com/proget/private-nuget-server?utm_source=tdwtf&amp;amp;utm_medium=footer&amp;amp;utm_content=GotYouCoveredFooter&amp;amp;utm_campaign=Cyclops2020"&gt;Learn more.&lt;/a&gt;
&lt;/div&gt;
&lt;div style="clear: left;"&gt; &lt;/div&gt;
</description><slash:comments>14</slash:comments><wfw:comment>https://thedailywtf.com/articles/comments/the-artist-formerly-known-as</wfw:comment></item><item><dc:creator>Remy Porter</dc:creator><title>CodeSOD: Next Month</title><link>https://thedailywtf.com/articles/next-month</link><category>CodeSOD</category><pubDate>Thu, 12 Nov 2026 06:30:00 GMT</pubDate><guid>https://thedailywtf.com/articles/next-month</guid><description>&lt;p&gt;One of &lt;strong&gt;Sean&lt;/strong&gt;&amp;#39;s colleagues left Initech on good terms. It caused no small amount of surprise that the very next day their billing system started failing. The billing system which the colleauge had worked on.&lt;/p&gt;
&lt;p&gt;No one truly suspected foul play, it was just a weird coincidence. Still, billing blowing up was a 5 alarm fire, so everyone was throwing every idea out about what could be the cause.&lt;/p&gt;
&lt;p&gt;Late in the evening, after staring at the code for many hours, Sean found this:&lt;/p&gt;
&lt;pre&gt;&lt;code class="language-ruby"&gt;&lt;span class="hljs-keyword"&gt;if&lt;/span&gt; item.next_bill_date.month &amp;gt;= end_date.month
  item.next_bill_date = &lt;span class="hljs-literal"&gt;nil&lt;/span&gt;
  item.save
&lt;span class="hljs-keyword"&gt;else&lt;/span&gt;
  ...
&lt;span class="hljs-keyword"&gt;end&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;If the month of the next billing date is greater than the last billing date for this account, wipe the billing date and update the item.&lt;/p&gt;
&lt;p&gt;It&amp;#39;s worth noting that Sean&amp;#39;s co-worker&amp;#39;s last date happened to be the end of November, and billing started blowing up on the 1st of December. You&amp;#39;ll also note this is checking just &lt;em&gt;the month&lt;/em&gt; and not any other part of the date, like, oh, I don&amp;#39;t know, the &lt;em&gt;year&lt;/em&gt;?&lt;/p&gt;
&lt;p&gt;While this bug could happen to &lt;em&gt;any&lt;/em&gt; bill, it was blowing up in December because &lt;em&gt;every&lt;/em&gt; bill&amp;#39;s ending month was greater than or equal to January. So this code canceled &lt;em&gt;all&lt;/em&gt; the bills due in January.&lt;/p&gt;
&lt;p&gt;The good news was that they could reconstruct the correct next billing dates without having to restore from a backup. The bad news is that some unknown number of billing periods had been canceled for some of their customers, and someone was going to have to check the history.&lt;/p&gt;
&lt;p&gt;Sean reached out to his former co-worker to politely thank them for an early Christmas present.&lt;/p&gt;
&lt;p&gt;&amp;#34;At least I understand our billing code better,&amp;#34; Sean writes.&lt;/p&gt;
&lt;!-- Easy Reader Version: Dates continue to be the hardest thing for programmers. --&gt;&lt;div&gt;
	[Advertisement] &lt;b&gt;Plan Your .NET 9 Migration with Confidence&lt;/b&gt;&lt;br/&gt;Your journey to .NET 9 is more than just one decision.Avoid migration migraines with the advice in this free guide. &lt;b&gt;&lt;a href="https://inedo.com/support/whitepapers/dotnet-guide?utm_campaign=dotnet&amp;amp;utm_source=tdwtf-footer"&gt;Download Free Guide Now!&lt;/a&gt;&lt;/b&gt;
&lt;/div&gt;
&lt;div style="clear: left;"&gt; &lt;/div&gt;</description><slash:comments>11</slash:comments><wfw:comment>https://thedailywtf.com/articles/comments/next-month</wfw:comment></item></channel></rss>