错误日誌:零到零,用时零秒

Daily WTF 又收录了一条槽点代码:某抽奖或奖金系统把数值显示成了"一堆零",引发读者调侃。文章以虚构论坛对话形式呈现,穿插对 SignUpGenius、JustWatch、The Register 等网站的小吐槽,最后还夹带 BuildMaster 广告。
评论点赞收藏2 天前

代码屎山:从不吃饼干

自由职业者 Maciej 接手遗留 PHP 项目,发现核心 HTTP 请求逻辑用 cURL 发起请求后结果存入变量 $s 却从未使用。旧开发者把 CURLOPT_TIMEOUT 误认为请求间隔参数,整段代码在项目中多处 copy-paste。
评论点赞收藏3 天前

禁止分支

"您提交了拉取请求。" 表明 事实上,当她的老板比尔走到她身后时,她正在审查她在同一个拉取请求中收到的评论。 她不明白的是为什么比尔说得好像是在指控一样。 "是吗?”她回答道。 "好吧,我们这里不这样做。 您是新人,所以我不会介意,但请查看开发人员指南。" 嗯,Indika 已经查看了开发者指南,或者至少她认为已经查看了。 事实证明,有 官方的,全公司开发人员指南。 这就是她读过的那本。 但比尔为...
评论点赞收藏4 天前

十字路口:辞职后收到的最大诱惑

刚递交辞呈的技术支持员工被新HR总监Leila拦下,邀其担任变革管理小组负责人,可内部招募同事、升职加薪,还允许多休丧假。主角拒绝——觉得留下等于背叛自己,但把同样想改革的朋友推荐给了Leila,包括推行32小时工作周和工会的提议。
评论点赞收藏6 天前

Error'd: Time Wounds All Heels

Looked to the past for some time-traveling entries to round out a themed post. They're 25% fresh. Robert apparently got a notification of a planned past delivery. It could be just a case of two system...
评论点赞收藏9 天前

A More Civilized Age

Greta ( previously ) sends us more updates from her "Ancient Development Environment". An important task an IDE must do is report build errors to its users. Arguably, that's one of the most important ...
评论点赞收藏10 天前

CodeSOD: Connection State

Frederick A sends us a bit of null checking code, and offers us a better solution. class ConferenceService { /// /// Checks if conference is active /// public bool IsCalling { try { return m_Connectio...
评论点赞收藏11 天前

CodeSOD: Always Take the Option

Frequent submitter Capybara James sends us this simple snippet, which highlights that even when you have the lovely convenience of Optional types, you can use them wrong. if (StringUtils.hasLength(dto...
评论点赞收藏12 天前

Lose Some Padding

Flat-file style databases were designed to fit the constraints of the systems they were running on. You specify your schema in terms of "how many characters in a file we use to store this data", meani...
评论点赞收藏13 天前

错误集锦:我相信越橘

微软邮件编辑器突然弹出无法解释的错误对话框,OnSolve 声称保护用户名却自己也不知道用户名是什么,IKEA 肉丸比家具更值得忠诚——几则读者投稿的软件吐槽合集。
评论点赞收藏16 天前

CodeSOD: Negative Days

Killian Brendel was looking through the.NET source code, and found this comment on the TimeSpan struct. // TimeSpan represents a duration of time. A TimeSpan can be negative // or positive. // // Time...
评论点赞收藏17 天前

Representative Line: Something Wonderful

Today, we look at a "representative comment" from Mark W. This particular comment appears on a function: /// /// Does something wonderful. /// Well, I'm glad it's wonderful, but are we talking "Christ...
评论点赞收藏18 天前

代码吐槽:WPF 的 IValueConverter 命名混乱与空值处理陷阱

WPF 框架中 IValueConverter 接口的 Convert 和 ConvertBack 命名方向反直觉,开发者实现时混淆双向转换逻辑。 Fredrika 同事编写的 StringToDoubleConverter 在 Convert 方法中直接返回 null,ConvertBack 却负责将空字符串转为 null,违背数据绑定预期。这种实现依赖.NET 隐式转换且变量名 parsed 无意义,埋下未来维护隐患。
评论点赞收藏19 天前

The Hard Goodbye

One minute, you’re fine. The next, you’re doubled over with tears spilling down your face while an aching black hole in your heart threatens to drag you into oblivion. Grief’s funny like that. Aggie S...
评论点赞收藏20 天前

Error'd: The Song that Never Ends?

"Watch to the end", the scammers demand. In today's episode of Error'd, the end is a long time coming. But at least it's amusing. In the meantime, Amazon irked and/or terrified thousands of their cust...
评论点赞收藏23 天前

Classic WTF: My Many Girlfriends

Honestly, with the wildfire smoke and the oppressive heat, maybe it's time to find a nice quiet cave to hang out in. Something with no natural light and no natural ventilation. I wonder if anybody has...
评论点赞收藏24 天前

经典WTF:机房风扇与更多趣事

The Daily WTF 汇总了一系列服务器机房和IT基础设施的荒谬维护案例。包括用风扇对着杂乱线缆吹、传真机受潮故障、木质服务器机架、裸露的扩展插座以及挂在公共楼梯间的网络设备。这些案例展示了缺乏规范的基础设施管理带来的安全隐患和工作困扰。
评论点赞收藏24 天前

CodeSOD: Classic WTF: Fork and Log

We keep our summer break going. Today, there's something floating in the pool, and I don't think it's a Snickers bar. Original. -- Remy A few years back, Adam C. was brought in to help with some perfo...
评论点赞收藏26 天前

CodeSOD: Classic WTF: The Table Selector

It's summer break time, which as always, means we dip back into classic articles. Today, we pick which table we want. Original. -- Remy "In my native language of German," writes Christian, "the word q...
评论点赞收藏27 天前

Error'd: Princess Pricing

Sam suggests this Error'd indicates "Disney+ preparing the ground for usage-based billing." I'm intrigued by the idea that Disney might charge by the minute, but I suspect the reality is far more mund...
评论点赞收藏30 天前

登录芦苇

登录后关注作者、收藏内容和参与讨论。