TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Comments by a developer inside the Windows Media Player source code

319 pointsby saranshkover 4 years ago

15 comments

CurtHagenlocherover 4 years ago
Ten years ago I found a comment in Excel&#x27;s code base preceding a function over 1000 lines long that seemed to be parsing dates:<p><pre><code> &#x2F;&#x2F; I just cleaned up the code. I have no idea what this fn does. Here is &#x2F;&#x2F; what the comment said earlier for your reference! &#x2F;&#x2F; --&gt; BUG!! - this code is a crime against nature and has absolutely no &#x2F;&#x2F; --&gt; redeeming value (other than the amazing fact that it works)</code></pre>
cm2187over 4 years ago
Lecturing on keyboard shortcuts when windows media player is the only video player in the world not using the space bar as a shortcut for play&#x2F;pause.
评论 #24604892 未加载
评论 #24606067 未加载
评论 #24603436 未加载
评论 #24605385 未加载
评论 #24605432 未加载
评论 #24605430 未加载
评论 #24603131 未加载
sam_goodyover 4 years ago
OT: There&#x27;s an thread on SO with a collection of awesome comments in code. Well worth a read. If not for the insight, than for the chuckle:<p><a href="https:&#x2F;&#x2F;stackoverflow.com&#x2F;questions&#x2F;184618&#x2F;what-is-the-best-comment-in-source-code-you-have-ever-encountered" rel="nofollow">https:&#x2F;&#x2F;stackoverflow.com&#x2F;questions&#x2F;184618&#x2F;what-is-the-best-...</a>
评论 #24605802 未加载
notionalover 4 years ago
&gt; so we need to add yet more ugliness in the form of assembler to an app which is already hardly a paragon of pulchritude<p>Throwing some serious vocab shade in these comments, love it.
评论 #24605786 未加载
评论 #24604548 未加载
kamel3dover 4 years ago
YouTuber Barnacules, use to work for Microsoft and he did tell a story on his live stream about ridiculous comments MS developers use to put in their code, I am sure they still do
cybert00thover 4 years ago
Pulchritude!? Boy, I had to look that one up!
评论 #24606019 未加载
评论 #24601979 未加载
评论 #24604915 未加载
评论 #24606423 未加载
评论 #24605050 未加载
tibbydudezaover 4 years ago
One of the ugly hacks you do in SAP to make it work is reading&#x2F;changing variables and structures inside the SAP standard code because there is no API exposing them.<p>It is blessed officially as doing a &quot;dirty&quot; assign.
评论 #24604043 未加载
DavidSJover 4 years ago
At a web startup I worked at years ago, I spent all night tracking down a nasty bug related to user signups.<p>I eventually traced it to one specific line of original founder code, and lo and behold, on that line was the comment: &quot;this is probably buggy&quot;.
jackewiehoseover 4 years ago
The bug here is in media player to listen on key-up events. Mouse-button-up makes sense because the user can move the mouse to cancel the click. But key events should be on key-down and that&#x27;s how it is done most of the time. So if you use key-up you run into these problems.
评论 #24603036 未加载
评论 #24604517 未加载
评论 #24620685 未加载
zerrover 4 years ago
That&#x27;s the good side of working on proprietary closed source codebase - one has so much freedom of expression, be it in the code or in the comments.
ackbar03over 4 years ago
What is the best library to use these days for developing in Visual C++? I had to write some VCpp code a few days ago using the Winhttp api and it was a nightmare. I&#x27;m not sure if its because I&#x27;ve been spoiled rotten by python where you can do a get&#x2F;post request with a few lines of code, and that this is just how CPP is, but most of the complications are to do with calling and using the (not very well) documented API itself. Is there usually a easier way to do this? I&#x27;m just doing simple post and get requests, and I couldn&#x27;t even do a file upload post properly by passing the binary data in, had to convert to base64 text in the end for it to work.
评论 #24605740 未加载
评论 #24605255 未加载
rbrbrover 4 years ago
Pretty much what I am expecting from Windows based software considering the mess windows always was and is to this day.
评论 #24605204 未加载
评论 #24605424 未加载
评论 #24610641 未加载
评论 #24605930 未加载
joemazerinoover 4 years ago
Microsoft internal shade. Juicy!
Alopisover 4 years ago
My favorite part is<p>&gt; If you add some obscure code such as below, to this or any other app, even if it has only the teeniest chance of being less blindingly obvious to someone else than it is to you at the time of writing, please please please add a fing comment.<p>This rings as true now as it did then and its my favorite comment so far out of this whole leak. I&#x27;ve reached a point where my comments are there to remind <i>myself</i> why I did a thing, because more often than not I&#x27;m the poor bastard who&#x27;s stuck fixing what past me did, and past me was either a sadistic asshole or a blithering idiot.
评论 #24604987 未加载
chris_wotover 4 years ago
This is why I love open source. In LibreOffice, cruft like this is often removed due to the embarrassment factor.
评论 #24602906 未加载
评论 #24603767 未加载
评论 #24604469 未加载