- Feature Articles
- CodeSOD
- Error'd
- Forums
-
Other Articles
- Random Article
- Other Series
- Alex's Soapbox
- Announcements
- Best of…
- Best of Email
- Best of the Sidebar
- Bring Your Own Code
- Coded Smorgasbord
- Mandatory Fun Day
- Off Topic
- Representative Line
- News Roundup
- Editor's Soapbox
- Software on the Rocks
- Souvenir Potpourri
- Sponsor Post
- Tales from the Interview
- The Daily WTF: Live
- Virtudyne
Admin
O(n^2) version control. Neat!
Admin
zip -ur derpecated.zip comment.1.st
Admin
git filter-branch --index-filter 'git rm --cached --ignore-unmatch derpecated.zip' HEAD
Admin
Admin
Admin
'Course in Perforce, you'd just "p4 obliterate derpecated.zip" and have done with it... I think it's even smart enough to wipe out changelists that only reference the obliterated file. (And no, in a real system you don't let just anybody have obliterate rights, of course.)
(Yes, I like Perforce. I store all manner of (Finnish words) in it at home, and my repository backs up in a big ol' tgz that currently tips the scales at around 8GB. And I've occasionally obliterated stuff that I didn't want in the repository anymore. It seems to just work.)
Admin
Beware of people that repeatedly refuse help but are obviously stuck. They likely just don't want to be caught in the mess they put themselves in.
Best to explain to them that they are causing the company money even if they work best alone. If they aren't getting work done, then they are just sucking money from the company.
Admin
= furiously masturbating at desk.
Admin
I hope that he wrote commit messages at least; let's say informational commit messages (Git would normally not allow empty commit message, but "v012" as a description of changes doesn't really help much).
The solution is to create custom importer / exporter, based e.g on https://github.com/git/git/blob/master/contrib/fast-import/import-zips.py . And perhaps use reposurgeon to clean up history.
Admin
The Inner-Platform Effect applied to VCS.
Admin
So TRWTF wasn't that nobody bothered to check on the new guy's changes? The repo size exploding by some orders of magnitude didn't ring any bells before it was too late?
Admin
Admin
Admin
Ah! One of my favourite flame wars: You'll add binaries to our repo over my dead body.
Admin
What if those binaries are actually required for the application to work? Like data files containing game's levels, etc. or images used as icons within the application?
Admin
Someone please clue me in WTF a giant crying ... ? Potato? Crisps Packet? Has to do with this story? I'm sure I'm just being dumb, or maybe it's an unfamiliar cultural reference. Hmm.
Admin
Nevermind; google image search; know you meme. Forever alone. Got it.
Admin
DERPecated... hahahah funny. :P
Admin
TRWTF is that the manager had multiple clues that someone was amiss, including statements about committing binary files, and didn't at least check the repo himself. If his code was any good, they just lost a good dev (who just needed to learn how to use proper source control), to a bad manager.
Admin
Admin
A dev who refuses to ask for help when he's having problems is not a good dev.
Admin
It does make me wonder if perhaps it was a local Repo and had never made it up to the shared repro....that is the power and pitfall of distributed source control.
Admin
Admin
Hmm, I thought .zip would by default compress each file individually, which would mean that most part of the .zip file would stay the same (unless, of course, the user zipped the old .zip (instead of its content) together with the changed files into a new .zip).
On the other hand, git filter-branch can really take ages, and in case of a quite old repo created with an old version of git (I think that somehow did not include the author in the root commit - that particular repo was github.com/rapid7/metasploit-framework if anyone wants to try to remove all .mp3 and .dll from its history) can run a few hours and then abort on an internal error. Nothing that cannot be fixed (first run filter-branch with a filter that corrects the author) but you can indeed spend a long time fixing history in git...
Admin
Admin
Derp
Admin
The first thing when backing up source code is not to make complaint about redundancy. That is one place where redundancy is good.
Admin
Yeah, the real WTF is definitely a manager willing to agree that "works best alone" (which is fine) should extend to "not looking into a guy having a problem for days". I mean, if nothing else, complaining about git could mean he was doing it wrong, but it could also mean something that should really have been looked into by IT. That's what a manager is for.
That said, the other real WTF is git. I freaking hate git.
Admin
Dev meaning god.
Admin
Oh my glob… It's like he challenged git with the following taunt: "Hey git! Bet you can't efficiently store that!", then proceeded to come up with the worst version control torture test the world has ever seen.
Admin
people who cannot use software always hate them. like "forum favorite blackeyrat" hates lotus notes.
Admin
To the hell with the git abuse WTF, I want to know if William was really competent and churned through the issues like a proper professional (minus the git part) like the article seems to imply.
Please?
Admin
To be fair, anyone who doesn't hate lotus notes obviously never used it.
Admin
Derpecated is such an appropriately Freudian slip.
Admin
derpecated.zip
Please tell me that was the actual name of the file and not a typo or creative addition on TDWTF's side.
Admin
TRW checking binary files into a repo is the easiest way to deal with our current workflow because Sharepoint is a PoC:
http://www.gfycat.com/ArtisticIncomparableGerbil
CAPTCHA: plaga Binary files are a plaga on repos
Admin
Admin
From the source: One mysterious file, derpecated.zip<-- intentional mispelling -->, drew Dan’s attention.
Admin
The real WTF is the lack of any sign of code review in this organization. For new employees in particular, there should be plenty of warnings that something untoward is going on, no matter what VCS you choose to use. Yeah, if he never pushed, you'd never know, but how was this code being deployed without a proper build automation plan?
Admin
TRWTF: I was once working on a huge InstallShield project for a company and stood by my assertion that it wouldn't be able to do a dependent install, then reboot the machine and automatically continue with the next stage. When it was already written to do that, in a four stage process.
The project lead was gracious enough to suggest a couple of places in the IS documentation, and matching points in the existing code, and gave me the time to figure it out. My apology and a check-in showing I understood how to modify one of the stages AND the next stage trigger, was sufficient and we moved on.
All in all, a very good learning experience in many ways.
Admin
Yeah, I'll turn all your code into gold for you, no problem.
Admin
Can someone explain how adding a file to a zip causes a delta "nearly as large as the archive itself"? Adding more files doesn't change how pre-existing files are compressed, and any half-decent binary diff algorithm should be able to take advantage of that.
Admin
Dear Article Author:
You're using the wrong brand of LED bulbs. Sincerely,
The Modern Day.
Admin
Important lesson learned: Never believe a developer when he says something is done.
Software is truly done when it's:
Even in a 1-person shop like I usually am in, I go through all those steps except step 2. But when I'm running a team, you can bet that I'm watching that code repo like a hawk and will notice when you tell me something is done when it's not even checked in.
Also, never believe a developer who says something is 90% complete. A typical project status goes from 0% to 50% to 90% to 95% to 96% to 97% to 98% to 98% to 98% ... only asymptotically approaching 100%. That's because the dev believes they only have to fix the last bug, only to discover there's another last bug.
Admin
Funnily enough, Subversion with its efficient handling of binary data would hide this problem for along time.
(I like SVN (By way of TSVN :D) and use it, also I consider as sane (D)VCS Mercurial; GIT and Bazaar are bizarre...)
Admin
I think "derpecated" is my new favorite word of the day. :-D
Admin
Use git-annex.
Admin
Sounds like this guy was on the autism spectrum.
Admin
It's a spectrum. Literally everyone is "on the autism spectrum" somewhere.
Admin
Do you work for Microsoft? Your comment is accurate, but completely useless.