16 ms·
I shipped a word processor that formatted the hard drive every 1024 saves
- jancsika 7y agoI'm going to assume that once users were told the formatting was due to a really clever C compiler optimization they were probably fine with it.
- smitty1e 7y agoNo, as you read the thread, he had a user FedEx him a tape that reproduced his bug and got it fixed.
- deleted 7y ago[deleted]
- FpUser 7y agoThe software was written in Forth language and at a time when there was no memory protection.
- dhosek 7y agoYoungsters have no concept of 80s computing where so much was accessible to simple programs.
- RaceWon 7y ago> Youngsters have no concept of 80s In '87 my first 256 computer had 640k of memory with a hd that was less than 1mb IIRC. It cost nearly 5 thousand dollars including the $700 dot matrix printer. Let the good times roll!
- greenyoda 7y agoThe IBM PC/XT, the first IBM PC to be delivered with a hard drive, already had a 10mb hard drive in 1983, so 1mb sounds too small for your hard drive. 1mb was roughly the capacity of a floppy disk.
- dhosek 7y agoMy first PC (in 1991), a no-name luggable with a monochrome plasma display had a 200MB HD. I remember one of my former professors telling me it was nuts to get such a large hard drive, that I'd never fill it up. When I bought its replacement in 1994, the new computer had a 1G hard drive which I split into 200MB partitions with one partition dedicated to a copy of the old computer's hard drive.
- RaceWon 7y ago> had a 10mb hard drive in 1983 Even though it was a Tandy, I appear to be mistaken about the HD capacity.
- FpUser 7y agoThey do not even have enough attention span to read the post enough to realize that what they are talking about has zero relation to the actual topic.
- sgerenser 7y agoThis is clearly a C undefined behavior joke. Not the funniest joke in the world but still made me chuckle
- thomasahle 7y agoAn early version of PyChess had an uninstall script thst would remove the user's entire homedirectory.
- minikites 7y agoBungie did that with Myth 2: https://youtu.be/-p3a8eGORKY?t=513 https://youtu.be/-p3a8eGORKY?t=513
- gpderetta 7y agoValve did it recently with Steam on linux!
- jtlienwis 7y agoThere was once was an operating systems that allowed you to format your entire hard drive when you only intended to format a floppy disk, if you typed format c: instead of format a:. This was called Microsoft Dos 2.x.
- ztjio 7y agoSo it did exactly what you requested it to do, no surprises at all. Got it.
- rmtech 7y agoYeah but there should be a SERIOUS warning preventing that
- Symbiote 7y agomkfs.vfat /dev/sda1 That's not that much different from a plausible error on Linux, with a USB drive and a hard drive. (At least, the man page for my mkfs.vfat doesn't include any options suggesting it protects against formatting already-formatted or mounted filesystems.)
- klyrs 7y ago> Don't use numeric literals for anything but 0, 1, and -1. Excuse me?! So if I'm writing a prng, should I write the numerical constants like int modulus = 1 + (1+1+1)*(0 + (1+1+1)*(-1+... )...);
- monadic2 7y agoI’m assuming the alternative would be to refer to an easy to deduct constant reference.
- klyrs 7y agoYou might have replied before my edit, but one rarely "deduces" magic constants that result in good rngs, hashes, crypto, etc.
- __s 7y agoTheir point is you should have const int MAGIC_THING = 0xdeadbeef & then say MAGIC_THING throughout the code, rather than using 0xdeadbeef in all your expressions
- klyrs 7y agoSure. But OP said not to use numeric literals, which 0xdeadbeef certainly is.
- wpietri 7y agoIn case you somehow haven't figured it out by now, he meant in the body of one's code. He's fine with named constants. Protip: If a smart person says something that seems obviously dumb to you, it's worth trying to find an interpretation that isn't dumb. Doubly so when, as here, it's from a piece that others are clearly finding smart and useful.
- monadic2 7y agoAck, it autocorrected from “dedupe”. Also, you are referring to an orthogonal problem—you would presumably want to put magic constants into a static constant to reduce the chances of disagreement across references. Hell even if there’s a single usage I would expect magic constants to be clearly demarcated and documented. Edit: didn’t see sibling constant, didn’t mean to dupe the reply itself. This certainly refers to in-line use of numeric literals vs those used in constant definitions.
- raverbashing 7y agoThis one is good as well (on the original thread): https://twitter.com/kevin/status/1256431142086955009 https://twitter.com/kevin/status/1256431142086955009 Pro-tip: turn-on the alerts after deploying the site.
- HenryBemis 7y agoOh I laughed so hard!! Computing has come a loooooong way since the early 80s. Oh what a gift is for humanity, what a great tool (not the specific word processor but hey, we've all made mistakes).
- splintercell 7y agoWe once shipped a product (2011) which would delete user's account (and all his data) from the website when all they wanted to do is to 'unfollow' someone. It was hilarious issue of MySQL database issue, instead of deleting the record of the 'follow' it basically removed user's record and thus removing all their files and entries.
- dredmorbius 7y agohttps://threadreaderapp.com/thread/1256342997643526151.html https://threadreaderapp.com/thread/1256342997643526151.html
- freedomben 7y agoThe parent comment link takes you to the full story in a blog post of the OP.
- maxerickson 7y agoThread reader scrapes and combines the Twitter thread. It's not different content than the article link.
- dredmorbius 7y ago"Threadreader' is a service which aggregates a thread of Twitter posts, by a single author (no replies), without the annoyances and repetitive elements of individual tweets. It also integrates all images into the thread, something Twitter itself often fails to do. The textual content is the payload of the original Twitter thread, other than as noted. Whilst often having the appearance of a blog post, it is in fact the original content, only presented vastly more sanely.
- renewiltord 7y agoThese are great. Steam Linux's universal rm is too. https://github.com/valvesoftware/steam-for-linux/issues/3671 https://github.com/valvesoftware/steam-for-linux/issues/3671 Featuring probably the most unflappable human in the history of time as a bug reporter. One day I hope to have the fortitude this man does.
- PureParadigm 7y agoYou can have his fortitude in the face of all your files being deleted if you have a robust, automated backup policy. One of my professors used to say that he should be able to destroy your laptop, buy you an equivalent new one, and you should be up and running again within a few hours. Hard drives fail all the time and computers get lost/damaged/stolen. Losing your home directory on a computer should be expected, and definitely not the end of the world.
- ip26 7y agoI prefer the raid5 approach, I leave my junk strewn all over a sufficiently large number of computers- odds are I'll still have a recent copy somewhere if my laptop explodes.
- PureParadigm 7y agoYou might be interested in Syncthing [1] with the option to keep previous file versions enabled. I use it as one layer in my backup policy by having it on my computers+phone. If I take a picture on my phone, it is synced within minutes to my desktop at home. If I make a document on my laptop, I have a copy on my phone in case something happens to the laptop. [1] https://syncthing.net/ https://syncthing.net/
- canada_dry 7y ago> I prefer the raid5 approach I've been using actual raid5 (via adaptec raid card) for years and very recently had one of my trusty 5TB HGST drives fail (after 3+ yrs of uptime). Fortunately the rebuild worked, but there are so many horror stories of raid5 rebuilds NOT working it has me contemplating going back to simple mirroring.
- freedomben 7y agoMy favorite all time bug was the infamous "Bumblebee" commit of 2011[1]. IIRC this was the first github commit to go viral. Make sure you have 30 minutes to read the thread. It is gold. I have written variants of "GIANT BUG... causing /usr to be deleted... so sorry...." into commit messages over the years. Such a classic part of history. [1] Commit thread: https://github.com/MrMEEE/bumblebee-Old-and-abbandoned/commit/a047be85247755cdbe0acce6f1dafc8beb84f2ac https://github.com/MrMEEE/bumblebee-Old-and-abbandoned/commi... [2] Issue thread (not as good): https://github.com/MrMEEE/bumblebee-Old-and-abbandoned/issues/123 https://github.com/MrMEEE/bumblebee-Old-and-abbandoned/issue... EDIT: Github is timing out trying to load it. May want to use archive.org: https://web.archive.org/web/20130613012555/https://github.com/MrMEEE/bumblebee-Old-and-abbandoned/commit/a047be85247755cdbe0acce6f1dafc8beb84f2ac https://web.archive.org/web/20130613012555/https://github.co...
- contravariant 7y agoThat's the most hilarious diff I've ever seen. At least it's hilarious now, for some people it must've been horrifying.
- mrlonglong 7y agoLost in space ...
- onemoresoop 7y agoThis is why in general I am not the first to get an update, unless I've been waiting for a fix for a while. I also think how shitty the person must have felt for the screw-up. We all screwed up at some point too, I remember removing a database by accident (it was a Dev, luckily not Prod and i was a junior 20 years ago. ), but having that stick like it does nowadays is not pleasant thought. I learned my lesson, and as a rule of thumb I always comb the code a couple of times before I commit.
- AceJohnny2 7y agoAlso why web-powered rolling/staggered updates are a thing
- Konohamaru 7y agoThis is a "usenet shock site" level screamer.
- chx 7y agoWe were a young startup we went to a conference... when the site went down and we found someone DoSing us. But... there was little network traffic however the database was loaded beyond any reason. Turns out, the image importer from mail had a bug in error handling and a broken email came in so it just kept retrying creating an image entity in the database. Ten thousand broken images before we stopped the party, in 2005, that was enough to crash our little server. We DoS'd ourselves.
- pmiller2 7y agoThis is an amusing story, but I disagree with not using numeric literals. Most of the time, sure, you don't want to use numeric literals, but, sometimes, you do. I posted my example in another comment here. As for the other conclusion, I have a story of my own. I once shut down all of my company's asynchronous task processing for about 20 minutes, completely by mistake. Our web servers kept serving, and nobody external would have noticed a difference, but, for 20 minutes, our scrapers stopped scraping, our NLP classifiers stopped classifying, and a bunch of stuff that made us money wasn't happening. Had I not noticed it and fixed it ASAP, we probably would have lost money. Instead, I immediately announced what I had done, got help, and we fixed it. The real moral of the story is that an honest mistake is nothing to be ashamed of. I make mistakes all the time. Some of them make it into production. Big deal. Everybody does.
- StreamBright 7y agoI still like the one when ubuntu devs decided that netcat's behavior to keep the connection open and wait for the answer when connecting to a port is outrageous and closed the connection after sending the request. We used netcat to debug network connectivity. The day I learned that I cannot trust any piece of software that is part of ubuntu. Later the also pretty good purify complains bug followed. Those guys might have been the Debian folks.
- meddlepal 7y agoI cannot for the life of me figure out how Ubuntu became so popular, it's kind of a hot mess.
- rvnx 7y agoBecause Ubuntu included proprietary drivers by default, notably ATi and NVIDIA and Wi-Fi cards, all of them were so tedious to install on Debian (which was one of the most popular Linux distributions at the time)
- necovek 7y agoIt also shipped latest free software from two months ago (GNOME, X) that actually worked on a 6 months schedule! (Remember Debian releases back in the day? If you attempted to get your USB flash drives to just work, you'd otherwise be recompiling half of your system and Gnome with Garnome or jhbuild) And it shipped actual, physical CDs across the world for free. It was 2004! Then it shipped a free LTS that may not have been as stable as RHEL, but it was definitely fresher and with guaranteed updates (for main) for 5 years (3 on desktops early on). It was 2006.
- mod 7y agoI :s (save) so compulsively, I think I would reformat my drive about every day.
- mhh__ 7y agoFallout 76 (amongst literally hundreds of recorded bugs) shipped with a bug that was able to brick PCs and consoles alike.
- rowanG077 7y agoBrick PCs?? How?
- meddlepal 7y agoThey're using the "modern" version of "bricked" which basically means it had to be reinstalled it factory defaults reset.
- rowanG077 7y agoHmm I never knew this was redefined. Bricked always quite literally means you device becomes permanently non-functional. I.E. a brick. What is the new word for this state?
- mhh__ 7y agoGiven that it's almost impossible to do this with modern hardware I don't see what the distinction is? I'm not aware of any way to make a modern x86 processor self-destruct. Apparently you can make an FPGA fry itself but even then not with good heat conduction away from it.
- rowanG077 7y agoNot with a general purpose PC no. But I don't doubt that it is possible to brick any of the current gen consoles if you try hard enough. Actually many general purpose laptops probably also can be bricked since the amount of non-standard hardware is increasing every year.
- mhh__ 7y agohttps://www.youtube.com/watch?v=kjyeCdd-dl8 https://www.youtube.com/watch?v=kjyeCdd-dl8 Not entirely sure (and I have no intention of given Bethesda enough money to find out)
- quezzle 7y agoOr put more positively: “I shipped a hard disk formatting utility that doubled as a word processor.”
- userbinator 7y agoMicrosoft has had its share of giant fuckups too, although from memory they seem to be more recent: https://news.ycombinator.com/item?id=18189139 https://news.ycombinator.com/item?id=18189139 I've been writing code for about as long as him, but because I started with Asm, which makes one become really careful with buffer sizes, doing something like making one thing larger would not be done without carefully looking "down the line" to see if any further changes were required; and they almost certainly were. That's not to say I haven't corrupted files before, but fortunately nothing quite as catastrophic as wiping the disk.
- crimsonalucard 7y agoHow does an incompetent engineer tell the difference between incompetence and imposter syndrome? I don't think it's realistic to say that all incompetent engineers think they're competent.
- benibela 7y agoRecently I got a phone call during breakfast that texstudio had scrambled the file when saving, by rearranging blocks of it randomly. The user had triple backups, on the hdd, usb stick and another one (dropbox?). All files were useless after he saved them at the same time :/ Might be some memory corruption caused by a wrong pointer in any other part besides the saving?
- rincebrain 7y agoThere used to be an absolutely fascinating bug with Wine and Diablo II - if you had raw write access to /dev/hda, running Diablo II would nuke your MBR, so on next reboot, you'd be staring at No Operating System Found. [1] is a Gentoo forum post about it, I can't find the Wine bug. This didn't happen on Windows, just in Wine. It also went away in the 1.10 patch IIRC, so whatever mysterious behavior resulted in that got fixed. edit: Found it! [2] It was even more recent than I remembered. [1] - https://forums.gentoo.org/viewtopic-p-2723361.html?sid=3c70ad39fad18fe01a49bbc8c61e0356 https://forums.gentoo.org/viewtopic-p-2723361.html?sid=3c70a... [2] - https://bugs.winehq.org/show_bug.cgi?id=4672 https://bugs.winehq.org/show_bug.cgi?id=4672
- rvnx 7y agoThe outcome of the WineHQ bug isn't clear, was it eventually fixed ?
- rincebrain 7y agoMy recollection (which has already proven faulty) was that the problem eventually went away with a later patch; it could also be that as most distros don't put users in a "disk" group any more by default, that it's simply gone away as a side effect.
- randomsearch 7y agoWorked with someone who implemented an archival program. Instead of deleting the archived records, it deleted those that weren’t archived. The records were orders. Millions of orders.
- jpxw 7y agoThe thought of realising that mistake makes me feel sick to the stomach
- randomsearch 7y ago(Trying to keep it anonymous) A large international IT company kept backups for the company off-site. Consultants from the company were called in, and the orders were eventually restored - I think it took days, but they got there. Orders were delayed and it cost the company a lot of money. No-one was fired.
- cperciva 7y agoThis reminds me of a bug I ran into in some beta software on Windows many years ago: 1. Create the directory "C:\APPNAME-tmp" 2. Change the current directory to "C:\APPNAME-tmp" 3. Recursively delete everything under the current directory. This worked fine for thousands of users until I came along -- running Windows 2000, with the "C:\" directory read-only for unprivileged users, running as an unprivileged user. At that point it became: 1. Try, and fail, to create the directory "C:\APPNAME-tmp" 2. Try, and fail, to change the current directory to "C:\APPNAME-tmp" 3. Recursively delete everything under the current directory, which is my home directory. The authors were very apologetic when I pointed out the bug.
- maxyme 7y agoThe Steam Linux client had a very similar issue a few years ago where in certain configurations it would delete / https://github.com/ValveSoftware/steam-for-linux/issues/3671 https://github.com/ValveSoftware/steam-for-linux/issues/3671
- noisy_boy 7y agoThis has been a big fear for me - its why in my scripts, I obsessively check whether I am where I should be after a cd before I try any changes. Has saved my back many times.
- pyhtel 7y agoOh man, I did something similar once. Folder with customer files also had a temp folder that needed cleaning, so I wrote a program that went into the temp folder and deleted everything recursively. For some reason, the temp folder had a folder named ".." (no reason how anyone managed to create that). So I ran the script, and upon hitting the ".." folder, it started deleting regular customer files. Good times...
- ineedasername 7y agoRecursive email: Very early in my career, I made something accidentally recursive. There's a reporting & data extraction language called Focus (nowadays WebFocus). I was working in a very old version, and had a few nested GOTO statements to form a loop where the final output was a customized email sent for each row of a query returned. I had to make a simple update, but accidentally deleted a line first. I reinserted it... one line off from where it had been. My careful GOTO structure went from a loop, to recursive. Instead of sending an email to each row returned, I sent an email to the first person. Then I sent an email to the second person and the first. Then to the third, and the second, and the first. The list was about 1,000 recipients... but luckily it usually finished very quick, and I would monitor as it went, and noticed the long run time after about 100 iterations and killed it. I then checked the logs to see why it ran so long, and traced back my error and fixed it... and sent an apology email to the 100 recipients I accidentally spammed.
- sfgweilr4f 7y agoAh yes. Back in the days when you chose "New Document" it apparently meant "a fresh new start". (Or not, I'm glad it was just a bug!)
- fouc 7y agoI thought this was going to be a story about making a simple application with a deliberate limitation. Like a feature.
- dekhn 7y agoI never documented the "quit" command for a MUD client I wrote on VMS back in '89. For years I got emails from users who couldn't figure out how to exit the app.
- atum47 7y agowell, I was testing something on s a clone version of a game and end up publishing that version to the app store. When I uploaded the game on my phone, my progress ware gone, all my saves. the colone version created a new database (thank God without deleting the old one). my game only had like 1k installations, and I found out my mess quick enough. just published a new update with the original database name and was lost.