8 ms·
I think my favorite (in terms of humor) is a commit from mpv complaining about locales and encodings. You can practically feel the committer's sheer frustration
by beefhash 7y ago
I think my favorite (in terms of humor) is a commit from mpv complaining about locales and encodings. You can practically feel the committer's sheer frustration.
[1] https://github.com/mpv-player/mpv/commit/1e70e82baa9193f6f027338b0fab0f5078971fbe https://github.com/mpv-player/mpv/commit/1e70e82baa9193f6f02...
- jplayer01 7y agoFinal paragraph: > All in all, I believe this proves that software developers as a whole and as a culture produce worse results than drug addicted butt fucked monkeys randomly hacking on typewriters while inhaling the fumes of a radioactive dumpster fire fueled by chinese platsic toys for children and Elton John/Justin Bieber crossover CDs for all eternity. I also nominate this commit.
- rpmisms 7y agoPure, rage-filled, git commits are possibly the most honest form of art.
- thameera 7y agoAlso from the commit message: > like Shift JIS (sometimes called SHIT JIZZ) Back then when I was working for a Japanese outsourced project, the code won't compile unless the computer's locale was set to Japanese because the C code had comments in Shift JIS.
- mikehollinger 7y agoMy favorite (in terms of dark humor, if we’re honest) is YOLO, one of the more interesting deep learning object detectors. [1] It is the exact opposite of yours in every way. The code is brilliant however. Even the papers are snarky. [2] [1] https://github.com/pjreddie/darknet/commits/master https://github.com/pjreddie/darknet/commits/master [2] https://arxiv.org/pdf/1804.02767.pdf https://arxiv.org/pdf/1804.02767.pdf
- jplayer01 7y ago> But maybe a better question is: “What are we going to do with these detectors now that we have them?” A lot of the people doing this research are at Google and Facebook.I guess at least we know the technology is in good hands and definitely won’t be used to harvest your personal information and sell it to.... wait, you’re saying that’s exactly what it will be used for?? Oh. > Well the other people heavily funding vision research are the military and they’ve never done anything horrible like killing lots of people with new technology oh wait..... > The author is funded by the Office of Naval Research and Google. He's being funded for this. This is fantastic. https://pjreddie.com/darknet/yolo/ https://pjreddie.com/darknet/yolo/ https://pjreddie.com/static/Redmon%20Resume.pdf https://pjreddie.com/static/Redmon%20Resume.pdf This is the kind of guy I'd love to hang out with.
- magashna 7y agoThat resume is something else.
- na85 7y agoBronies creep me way the fuck out.
- russh 7y agoThats swell, we don't think about you at all.
- woodrowbarlow 7y ago
- testplzignore 7y agoThat reminds me of the glorious https://en.wikipedia.org/wiki/File:JIS_and_Shift-JIS_variants.svg https://en.wikipedia.org/wiki/File:JIS_and_Shift-JIS_variant....
- microcolonel 7y agoWonder if there's some more ideal way to lay out those so they are less of a tangled web. This graph makes me want an adjacency list.
- zentiggr 7y agoI have an Untagle game on my phone... is there an SVG editor that could do something similar?
- throw0101a 7y agoI've found Graphviz / DOT to be surprisingly handy at times: * https://www.graphviz.org/gallery/ https://www.graphviz.org/gallery/ * https://en.wikipedia.org/wiki/DOT_(graph_description_language) https://en.wikipedia.org/wiki/DOT_(graph_description_languag...
- pault 7y ago"this is a simplified representation" :D
- RHSeeger 7y agoThat is... wonderful. I've spent some time dealing with locales in C and other places that depend on the things being discussed in the commit. Just reading it bring back some of the rage I felt.
- Daemon404 7y agoNot a commit but from the same author, so you may enjoy: https://github.com/wm4/dingleberry-os/blob/master/README.rst https://github.com/wm4/dingleberry-os/blob/master/README.rst It does go off on a few tangents, but it's an interesting read.
- antsar 7y ago> Descent 2 custom level reviews You weren't kidding about the tangents.
- dmitryminkovsky 7y ago> “Those not comfortable with toxic language should pretend this is a religious text.”
- twic 7y agoThis message says much more about the author than it does about the commit.
- john-radio 7y agoYeah. People who use the term "retarded" that way are stupid, no matter how smart they are.
- computerex 7y agoI disagree. Words are just words and we give them meaning. Being derogatory and unkind to mentally deficient folks is ethically wrong. Using that word in a different context to communicate frustrating imo is fine.
- ashes-of-sol 7y agoFor some, the word has indeed been given meaning, and was used to bully and demean them. There are plenty of other words to use, so that they don't have to hear it
- pault 7y agoTry telling that to my boss, who has an autistic child. I held your opinion until I stuffed my foot in my mouth in a meeting. Now I don't use that word.
- carapace 7y agoThere it is. "When you omit courtesy you're throwing sand in the gears of a machine that doesn't work too well in the first place." ~Heinlein (I'm paraphrasing.) There's no glory in being a boor, and no shame in being courteous. None of this is news: https://en.wikipedia.org/wiki/Etiquette#History https://en.wikipedia.org/wiki/Etiquette#History A fool never learns, A man learns from his mistakes, A wise man learns from the mistakes of others.
- hellllllllooo 7y ago
- mark-r 7y agoAgreed, that's an over the top commit message. I do disagree with the assertion that it takes a lot of code to convert between the various UTF variants, 3 pages is an overestimate. https://stackoverflow.com/a/148766/5987 https://stackoverflow.com/a/148766/5987
- btilly 7y agoOh. Locales. The remembered pain. Save a file in Notepad. Open in vi. See that it is different. Find data in the database, no clue the weird characters were originally supposed to be. And so on and so forth. I once wrote a reasonable program and sent it as a bug report to the maintainer of the Perl module DBD::File. He sent it as a bug report to BerkeleyDB. They said they never thought about it but yes, that would be silent data corruption with no way to recover. The program? Maintain an address book in a BTree sorted in the current locale. Enter names. Change locale and insert something else. Voila! Lost data with no way to recover!
- hermitdev 7y ago> Oh. Locales. The remembered pain. More like the ongoing pain. I had to write the following just this year because SQL Server still defaults to using CP 1252 for text. The culprit? One of those damned stylized quotes that Office loves to insert for you. The code: def _wrap_str(value: str): try: return SqlVarChar( value.encode("cp1252") ) except UnicodeEncodeError: logging.getLogger("bulk copy").exception(f"value causing error: {value}") raise
- btilly 7y agoI would call that Windows pain at this point, not locales. In the Linux/Postgres world, everything is UTF-8. Which is the default for all internet protocols. Do that and the pain is gone. Of course Windows doesn't do that...
- batat 7y agoSQL Server prior to 2019 stores unicode data in UCS-2 (UTF-16 analog, rougly). SQL Server 2019 supports UTF-8.
- hermitdev 7y agoLinux is not entirely UTF-8, though plenty of people treate it as if is so. Even if on Linux, you might need to consume files from other OS's or other Linux systems with different locales. Once had issues with systems configured with "C" locale vs "en-US" should have been near identical, but enough slight differences to cause failures. Been +10 years, so I dont remember the details. Windows, the OS, is UTF-16 (or UCS-2 - I forget the details between the two), SQL Server has, for historical reasons, defaulted to CP1252, probably for compatibility with Office components. But, it's not really a Windows problem, per se, because you have to deal with this issue if you deal with data originated from numerous Windows apps, even if on Linux. Yeah, you can insert a byte order mark (BOM) to indicate UTF-8, but most tools expecting UTF-8 actually dont check for the BOM and blow up in interesting ways if present. Ive seen this far too many times. Enough that anytime I see an encoding error from the likes of Python or Ruby, its an instant recognition (I do a lot ETL work from a number of vendors, so I see a lot of different files "types").
- cryptonector 7y agoThis needs to be REQUIRED READING at the Open Group and the ISO C standards committees. I'll quibble just a bit and say that: a) the C locale should be a UTF-8 locale... that tolerates invalid sequences (because the C locale historically is a just-use-8 locale), b) even with new functions that take a locale handle, we need functions that use a global one, however that global one should be set once and NEVER changed in the life of the process, and it should be set either before main() starts, or before main() does anything that needs a locale, or starts any threads.
- oefrha 7y ago“mpv”, “sheer frustration”... I didn’t have to click the link to know it was authored by wm4.
- badsectoracula 7y agoThis is why i stick with ASCII :-P.