- 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
TDWTF commenting system sinks to new lows: if you just click on the link, it takes you to a page which informs you that it's a private comment thread and you need to sign in.
Admin
Still better than no tests at all~
And Discourse not wanting people to comment is hilariously ironic.
Admin
Admin
Assertion failed, expected [proper comment section] but got [Discourse]
Admin
TDWTF: your friendly provider of 75% of the unit test coverage for Discourse.
Admin
Assert.isFalse(Comments.RequiresSignIn)
1 test failed...
Admin
Frist? Can you assert it for me?
Admin
I can assert that you are sceond.
Admin
I work in SQA. This is not even remotely unusual. Even for in-house developers.
"What do you mean it's not testing anything? Look, it makes a call to the function and dumps the output to the screen. That's a test."
Admin
What I've noticed is that you need to do some hand-holding when introducing new concepts. Don't just tell them they need to add asserts and tell them about the great benefits of asserts. An assert can be for a precondition that shouldn't happen. It shouldn't be to verify the impossible happened. Sure. Testing getters and setters should be done somewhere, but not in every test. At our work, we do test all the getters and setters are doing what is expected. We also verify when set fails, it doesn't corrupt what was there.
Unfortunately, we have some very verbose QA tests that might take hundreds of lines to verify one functionality. As a developer we tried to show them it could be done in 10, but it is hard to change process now.
Admin
Assert.isTrue(Comments.HasPaging)
Another test failed...
Admin
A couple of things:
If you're continuing to use an offshore team which seemingly has a long history of reducing productivity, you're doing it wrong. But I'm willing to bet the code isn't ever completely broken, they just take a few retries to get it fully functional.
Demanding that "thou shalt write unit tests for all code" doesn't fix the problem anyway. They did exactly what you asked, after all. What you wanted was for them to "write tests which enforce that the code works as it's intended, and meets all requirements". You don't even care if they're unit tests specifically.
Sometimes I wonder how the developers in these stories survive (either career or sanity wise) being so smug.
Admin
Interesting because in no other contracting situation would you see something like that.
But with offshoring / outsourcing everybody seems to take it as the norm that the people contracted have such a low professional standard that you must babysit them.
Quite an argument against offshoring, if you ask me.
Filed under: Been there, done that, learned that "just improvise something" is not a valid spec.
Admin
Admin
Onde I joined a project where unit tests followed this pattern:
Passing every possible parameter makes the code go through all the possible execution paths. And the method never returns null, it either returns "something" or throws an exception, so the assert is guaranteed to pass.
Result: easily meeting the customer requirement of 100% test coverage, with 100% success.
And yes, this was an offshore team.
Admin
Sounds like : You will not lose weight by standing more frequently on a scale
Admin
Just another example of "you get what you pay for."
Hire cheap developers, you get cheap code. You ask for unit tests, you get cheaply written unit tests.
Admin
A couple of points:
If the builder building your house is not making the walls straight, it is his fault and you should probably fire him. So it is argument against this particular offshore agency, certainly.
This is not analogous to hiring a general contractor to build a house. I an offshoring case, you're hiring an outside agency to replace some function which otherwise would be done internally, which means you effectively are the general contractor. A general contractor who doesn't closely manage his subcontractors is likely to have serious problems if he's not very very lucky.
I do agree you shouldn't have to hand-hold them, though; if you have to hand-hold them, there's something seriously wrong and the entire relationship should be re-evaluated. On the other hand, sometimes you don't have much choice. If you're left managing a subcontract dictated by high mucky-mucks above you who negotiated a ten year deal that would be costly to back out of, then you're kind of stuck with it.
Admin
Unfortunately, experience has shown that to be the norm. It shouldn't be, but it is.
I agree, but I have no input into those decisions. The senior manglement only sees that they can hire off-shore devs for a scoop of rice and a piece of naan per day; 100 of them cost less (money) than 1 competent on-shore dev. They never see the cost of the WTFy but sort-of-working result.Admin
In our case, it's our own office in $thirdWorldCountry, or rather $thirdWorldCountry[$n], since we have more than one. So we get to see more of the WTF behind the WTF. At least some of the devs are capable of doing good work, but their managers are in favor of taking shortcuts, and senior on-shore management isn't willing to fight the local management and "just enough to get by" culture.
Admin
The article states it is an offshore team, not an outsourced company. So it is a bit different in that the onshore team might have to do some more initial teaching to make sure the remote team is following procedures.
If it were a contracted company and they produced poor results, then fire them and find someone else that can do the job. Yes, there is a difference between contractors and employees whether or not they are local or remote. Being remote and in a completely different timezone means there is probably going to be things that are disparate, but that is what is the companies responsibility.
(And I say this as someone who is both remote and in a large company with maybe 50+% remote in many different regions).
Admin
A timer is a terrible way to determine when your steak is cooked right
Admin
Still, you'd expect your team, offshore or not, to have basic programming knowledge (which writing sensible unit tests constitutes). Otherwise, they shouldn't be hired in the first place.
Admin
I've found that offshoring and outsourcing cause you to become a teacher with students that you are paying to learn, more than anything.
Admin
Sure. I have noticed at my company, it is hard to fire someone once they are hired though. And when doing an interview involving programming, there is usually not enough time to cover whether they can program very well. Sometimes they ace the interview and write very crappy code, or good code but it takes them a century. Or their coding skills are fine, but their English comprehension is poor (because they grasped enough during the interview to do whatever basic question was asked).
Hence all the "tales from the interview" that would show up here. (and uhh, what chubertdev said)
Admin
The real WTF here is that if you are working with an outsourced team, you should be writing the tests yourself, and they should be writing the code that passes those tests. Your spec should be your test. That said, you must make sure your test is thorough, and when you accept code, you must run some hidden tests as well to make sure they didn't just program 'to the test'.
Admin
And then they never pass tests, you get blamed for holding up the project, and you have to fire up Word...
Admin
It also seems to be common that they get hired, get company-paid training in $skill, quit, and get another job where they can get paid more because they can now put $skill on their CV and maybe talk their way through a couple of interview questions.
Admin
Which is perfectly fine for explicitly entry-level positions. But when you have HPCs who can't code their way out of a wet paper bag, it's a huge WTF.
Admin
The number of responses per article has been reduced drastically and apparently the people that tend to sign up for this kind of thing rather than leave anonymous comments also tend to be the ones to blame the submitter rather than the WTF the submission is about. Lose/lose!
Needs more anon trolls saying stupid things we can all laugh about.
Admin
You can tell on the front page which system is used for comments simply based on the number of comments.
Guideline 28: Don't force registration
http://www.amazon.com/Defensive-Design-Web-improve-messages/dp/073571410X
Admin
Note to self: never eat a steak @faoileag or anything else for that matter.
Admin
[quote user="chubertdev"][quote user=HardwareGeek] It also seems to be common that they get hired, get company-paid training in $skill, quit, and get another job where they can get paid more because they can now put $skill on their CV and maybe talk their way through a couple of interview questions. [/quote] Which is perfectly fine for explicitly entry-level positions. But when you have HPCs who can't code their way out of a wet paper bag, it's a huge WTF. [/quote] I can't code my way out of a wet paper bag (in fact it seem to me a task that really doesn't len itself well to programming). Maybe if I had a robot....
Admin
Admin
My experience with offshore developers: they build exactly what you ask them to build. No more and (mostly) no less. Don't expect the same level of thought going into what they build as from the in-house team. The in-house team have much more at stake than the offshore team.
Admin
I'd never eat an @faoileag either.
Admin
Can you quote your way out of a paper bag?
Admin
Admin
Is a timer even worth if if you want your steak blue, as it should be.
Admin
TRWTF is this crappy new comment system. It even captures ctrl-f making it much harder to do a useful search.
Admin
Admin
I'm totally at a loss of what that is saying - it starts as a question, ends with an assertion, and I don't know what a blue steak is...
Admin
Admin
Never heard that term used that way - wonder if it's a cultural thing.
Admin
The term is known to almost all the chefs I've used in UK, US and NO, so it's not that, erm, rare.
Admin
Well done isn't well.
Admin
Si vous ne savez pas c'est quoi exactement de la viande blue vous pouvez cherchez la réponse sur votre site internet préférer. Un steak blue et encore moins cuite que un steak saignant. C'est a dire que c'est pratiquement pas quite. Si vous doutez quand vous faits votre commande demande à point, c'est entierement cuite mais pas tros seche.
http://en.wikipedia.org/wiki/Temperature_(meat)
I would even say that well done is hardly ever done well.Filled under: I think I heard my French teacher throw up
Admin
Just stumbled over coworkers unittests:
At least i can be sure the Database doesnt manipulate data when inserting :frowning:
Admin
I've been a grill cook in a steak house and never heard called blue.
Admin
I'd never heard it before. I googled it and stuff seemed to say it came from French (i.e., bleu). I don't usually think primarily in terms of temperature, so this seems wrong.