• ray10k (unregistered)

    Always fun to see someone hit rock bottom, and then gleefully reach for a pickaxe.

  • Jonathan (unregistered)

    Folks, Git is not a substitute for making backups, they would have been just as screwed if the Git repository got corrupt due to faulty hardware, or any other kind of disaster.

    At the very least, there should be weekly backups, if not daily.

  • Martin (unregistered)

    @Jonathan

    It's 21. century! We have copy-on-write filesystems capable snaphots every 5 seconds and everything could be copied off-site

  • Yak Barber (unregistered)

    "Adding people to teams" smells a lot like using GitHub, in which case that is TRWTF.

  • Bradley (unregistered)

    Wait, they fired the correct guy? WTF?

  • kitihounel (unregistered)

    Okay! It seems that posters that preceded me did not notice it!!! The TRWTF is a programmers team with two ladies... Is such a thing possible?

  • (nodebb)

    "The TRWTF is a programmers team with two ladies... Is such a thing possible?"

    Yes. We have two in our team (of 11)

  • (nodebb) in reply to Yak Barber

    Or Gitlab

  • Jonathan (unregistered) in reply to Martin

    "copied off-site"

    That part looks like a backup to me :)

    The important part is that you have an alternate copy of the data, preferably offsite. It's also preferable that you can restore versions of the data far enough back in time that you notice any possible corruption before the last good copy is overwritten by a more recent (corrupt) backup.

    And even very nifty file systems like ZFS are not completely impervious to certain kinds of hardware issues.

  • J. (unregistered)

    "Shortly after, they'd copied over the files from master, pasted them in the working folder, and force pushed with a fake name, erasing all history on said branch in a terrible attempt to cover their tracks.

    Remember how Clarissa had wiped her MacBook the night before? If Toni hadn't cloned the entire repository to her ThinkPad for Thanksgiving tinkering, Clarissa would've lost four to eight months of work."

    git fsck --dangling

  • Bonkey (unregistered)

    Umm, you can limit privileges in GIT. Why can anyone tinker with master? That is the real WTF. This should not have occurred if the most trivial of permissions were utilized correctly. Only our CM team where I work can merge into master or do anything with it really. Maybe 4 or 5 people out of 50 that work in the REPO.

  • gnasher729 (unregistered) in reply to Jonathan

    Git is no replacement for backup - but I do a "git clone" and now my machine is a backup for the whole repository.

  • Calli Arcale (unregistered) in reply to PJH

    Heck, one of the projects I'm on has four women (including me) and two men. ;-) It's the 21st Century; we ladies are still a minority in tech, but we aren't quite the novelty we used to be.

  • Paul Neumann (unregistered)

    This whole article is TRWTF -- local branches for local development, no need to push every little change every time. And how TF were these people working WITHOUT having a local clone of at least the dev branch on their machines? Add in the ability to undo those arbitrary changes via the REF_LOG, there was never a REAL problem with the code in source control, just its users.

  • Herby (unregistered)

    At least the problem is solved in the end. That in and of itself is almost a WTF moment, as in normal WTFery, the manager might be promoted to show off even more of his incompetency.

    So, there is a WTF God!

  • Ron Fox (google)

    Another example of disobedience to the first rule of holes: "When you are in one, stop digging"

  • (nodebb) in reply to Paul Neumann

    local branches for local development, no need to push every little change every time

    That depends on team culture. Some groups really prefer to keep things out in the open, at least on the group level.

  • Gargravarr (unregistered)

    TRWTF has to be the ability to affect live sites just by committing - how TF were they able to bypass QA just by committing to different places?!

    We still use SVN here, but even if we used Git, we'd have a pipeline like such:

    Developer -> VCS -> Jenkins build -> automated site deployment system

    Nobody should ever be able to affect production by committing to version control!

    Good article, nice to see the mentally-retarded having to answer the awkward questions and actually taking the fall for it for once!

  • Garragh (unregistered) in reply to Calli Arcale

    Sadly, the trend may not continue, as fewer women than before are getting an education in Computer Science.

    http://www.crainsdetroit.com/article/20161020/NEWS01/161029993/fewer-women-in-technology-roles-threatens-to-reverse-earlier-gains

  • operagost (unregistered)

    TRWTF is jumping on a plane when you get an SMS instead of using the phone and letting your team handle the technical issues.

  • _that_guy_ (unregistered) in reply to Bonkey

    When the story reached the "force pushed to master" bit, I immediately wanted to know why that was even possible. Score a point for part of management being competent, lose a point for whoever set up the repos/deploy process in the first place not being worth their salt.

  • Stephen (unregistered) in reply to _that_guy_

    We have a repo in our shop that only one system user is allowed push to. Once or twice a year the permissions have to be reset because some "helpful" manager decided their team needed push access to "everything" and a user has pushed something to the repo.

  • Brendo (unregistered)

    The real problem with mercurial isn't rewriting history. Merging trunk into your branch before committing to the trunk is basically the same thing as a rebase, and results in fast-forward merges. The thing I like better about git is the way it handles branches. They feel like a much more permanent structure in mercurial. In git, you can just create a bunch and throw them away. It feels much more like the way I actually use branches.

  • Tim (unregistered)

    Mercurial is entirely capable of rewriting history. It just makes it very explicit - hg rebase, hg strip, etc. You don't get history rewriting by accident. Another big difference between Git and Mercurial in this respect is that in Git if a changeset isn't an ancestor of a branch, at some point the changeset may be deleted automatically. In Mercurial, changesets are never deleted unless explicitly deleted.

    Mercurial also has a much more advanced extension - changeset evolution - which in theory should result in avoiding the major issue with history rewriting (people having out-of-date or duplicate changesets in their repositories). However, it's a hard problem which has been being worked on for a long time and I'm personally still not confident in using it.

    Git branches are almost identical to Mercurial bookmarks. Mercurial also has additional branching options, including anonymous branching and named branches (I'm personally a fan of named branches, but many people aren't).

  • foxyshadis (unregistered) in reply to Garragh

    CS degrees are all but completely useless for actually working in the field, so I'd hope that fewer men and women alike are getting them. Software Engineering and Information Technology are the degrees that universities (and trade schools) should have, but don't, because computer science sounds so much more prestigious.

    My CS degree taught me to create programming languages, write compilers and OSes, and design standard libraries, none of which I actually ever did (except on a private whim). They basically instill grads with the idea that they have to reinvent the wheel and create inner-systems, because using existing libraries is utterly anathema to the CS curriculum. CS degrees are TDWTF fillers.

    In all but the top universities, CS should have been replaced with SE more than 20 years ago, but it keeps trundling on, another unkillable dinosaur of academia.

  • löchlein deluxe (unregistered) in reply to Bonkey

    "We're just $smallnum people here and we know what we're doing, so we don't need to build safeguards for the clueless, and we don't have time to anyway."

  • löchlein deluxe (unregistered) in reply to foxyshadis

    A CS degree is not vocational training, true. But not knowing about compiler construction, you might think "hey, I need something quick and simple for my web pages, how hard can it be?" and end up inventing PHP.

  • Warren Young (github) in reply to dkf

    Some groups really prefer to keep things out in the open, at least on the group level.

    Yes. Public commits palliate the "guy in the room syndrome" identified by Jim McCarthy. (http://apcmag.com/foobar_blog.htm/)

    That problem was identified in a time when most developers likely worked at the same site, but now we've got DVCSes leading people to believe that forking the repo and going off on uncontrolled tangents is a good thing.

    I'm working on a project right now, in fact, where one of the key difficulties we overcame is that the bulk of the code base was just blindly cloned from an open source project then hacked directly on, with no attention given to the possibility of merging the upstream trunk again at some point. Now we're 15 months down the line and it took several people a few days of our recent winter vacation to do the detective work and grunt coding to merge the upstream changes over those 15 months back into our fork. And that work is going to recur to a lesser extent until we can extract our local changes from the base in such a way that a simple diff-and-patch is likely to work without hand-editing.

    If, by contrast, this project I'm working on was forced to work within the upstream project, it would have been architected differently, so that there never would have been any difficulty merging in trunk changes as needed.

    I am a Fossil fan, which like Mercurial, actively tries to prevent history modification. From what I can tell, Fossil is even more strict than Mercurial. It's basically a DVCS that operates like Subversion, day-to-day. So, it keeps all your remote developers on-track by sending all commits back to the repo they cloned from, by default. Thus, no guy-in-the-room.

    Developers can still hide what they're doing if they work at it hard enough, but when the default is to share what you're working on, it makes hiding difficult.

  • David Hemming (google) in reply to PJH

    We have 6 on a team of 8.

    It's kind of weird.

  • I dunno LOL ¯\(°_o)/¯ (unregistered)

    TRWTF is doing a full hard drive wipe to reinstall OS X. Even with no internal optical drive, you can install from an external optical drive, so that isn't a valid excuse.

    Maybe if the filesystem was sufficiently hosed (the HFS equivalent of fsck is based on Disk First Aid from ~25 years ago, which is notoriously stupid), in which case someone should invest in a copy of DiskWarrior. But you can still boot from an external drive or install disk to get in deep enough to a shell prompt to cp -r everything to an external drive.

  • Mason Wheeler (unregistered) in reply to foxyshadis

    Knowing how to create a compiler is incredibly valuable for real-world work, even if you never have to create a compiler, because it teaches you about parsing, about trees and visitors, and about code generation, all of which are things that come up over and over again in real-world problems.

  • Lurking (unregistered) in reply to löchlein deluxe

    A CS grad is more likely to try to roll their own rather than using one of many existing frameworks/platforms, because they think they know how to make a compiler. And in my experience 99% of the CS grads, I have worked with would create mess that would make PHP look incredibly good. CS teaches theory and the expansion of theories, not the practical application of the theory and that is a big difference.

  • Herr Otto Flick (unregistered) in reply to Garragh

    Excellent, they won't need quite so much re-training then

  • Ulysses (unregistered) in reply to Garragh

    In an equally sad trend, the innocent continue to be underrepresented in the prison system. Some things just aren't meant to be.

  • Jim H (unregistered) in reply to Calli Arcale

    At my last job, I was the only man on a team of 5. Also, our manager was a woman (and the best programmer of all of us). Really comfortable team to work on.

    ("What do you mean, 'last job?' Why aren't you still there?")

    Good question. Basically, because the director over our manager was a liar. But that's a whole other WTF... I would note that 4 out of the 6 of us have moved on. The two remaining will soon, I suppose...

  • Wes (unregistered) in reply to foxyshadis

    I'm currently a Computer Science student in Australia. My CS degree has taught me none of those things, the lowest level practical application I have encountered is the use of Unix system calls. That was in an operating systems unit where students could elect to write a shell or some sort of client server application (http/ftp/develop own protocol).

    Apart from the academic stuff (research/science methodology) the majority of my degree has focused on design, algorithms and data-structures. One of my early units, Foundations of Programming, taught basic C, top-down design, algorithms and testing with a focus on low coupling/high cohesion/module re-usability. That lecturer also strongly enforced good coding style, proper variable name selection and informative code commenting. It was one of the best units I've taken.

    We've never been told to throw away the standard libraries (they're fast and well tested), just to encapsulate the STL structures because they come with all the baggage of design by committee. I was required to implement my own Vector and Binary Search Tree although that was simply to understand how they worked.

    I certainly don't feel the content of my degree is useless. At my university it is the Games Tech (double major with CS) students that are in demand in industry because they make shit-hot programmers.

  • Bert (unregistered)

    Git users are unusually obsessed with rewriting history; apparently a clean log is more important than recording what actually happened. Fuck-ups should be kept as evidence and learning material. Accidental private key commits aside, of course.

    Anyway, who wipes their computer for a reinstall without taking a backup first?

  • Guest (unregistered) in reply to Ulysses

    Innocent people are not meant to be prison, but there is no issue with women being in CS careers. Why are you comparing the two?

  • Sandman (unregistered)

    For never having used a version control system before, seems that they were able to do quite a bit. Hmm...

  • Warren Young (github) in reply to Wes

    My CS degree has taught me none of those things

    Then your degree is misnamed. Computer Science and Software Development are different things.

    Computer Science is a largely academic discipline; Edsger Dijkstra is credited with saying, "Computer Science is no more about computers than astronomy is about telescopes." Much of proper Computer Science is a branch of academic mathematics, yet you will not find too many practicing software developers frequently writing software documentation in TeX purely so they can typeset the mathematics necessary to properly describe their design.

    Incidentally, I also take issue with the term "Software Engineering." Engineering is applied physics; software development is rarely applied physics. I don't care if you call it Software Development or Computer Programming or Hacking or anything else, but I will resist if you try to pretend that what we do is "engineering." This isn't just pedantry: this very site is proof enough that our approach to robustness is vastly different from that of what we used to call the engineering disciplines before that term started to become diluted. A proper engineer can produce a physical equation proving the design correct; a "software engineer" rarely can, irrespective of skill and training, because software is simply too far removed from the underlying physics governing the computer's operation.

    This is not an excuse to not be an adult, or an invitation to do the right things wrong, or to do the wrong things right. It is simply an abandonment of pretense.

  • Andreas (unregistered) in reply to Sandman

    I blame stackoverflow.com

  • Someguy Inoz (unregistered)

    Engineering is applied physics; software development is rarely applied physics

    Yeah, look, some actual engineers read these forums too, you know. The discussion is a lot more complex than you can fit in a sentence, not least because most engineers end up writing software at least part of the time. They just call it "a spreadsheet" or "this R script" or something other than "a program". Is a program that does an engineering task "applied physics"? How about if the task is does isn't physics, or even well-defined and is definitely not tractable or calculable?

    Engineering, like software development, is as much art as science. So is much science.

  • a (unregistered)

    TRWTF is this comment section

  • zboot (unregistered)

    I know this is old, but it's funny that so many comments are "how did someone manage to commit to master" . . .as the story explains, the overzealous manager had the keys to the kingdom and added new people giving them abilities to do whatever they wanted. Hence Toni's first instinct being that they were hacked and not a co-worker screwed things.

  • Https://Www.Waste-Ndc.Pro/Community/Profile/Tressa79906983/ (unregistered)

    Hey! This is kind of off topic but I need some help from an established blog. Is iit difficult to set up youhr own blog? I'm nnot very techincal but I can figure things out pretty quick. I'm thinking about setting up my own but I'm not suree where to start. Do you have any ideas or suggestions? Cheers https://www.Waste-ndc.pro/community/profile/tressa79906983/

Leave a comment on “The Helpful Manager”

Log In or post as a guest

Replying to comment #:

« Return to Article