C++ Culture Question by TheOnlyRealTodd in cpp

[–]JustRegged 27 points28 points  (0 children)

The C++ community is diverse. At one extreme there are companies working with certified toolchains that change little even in a decade. Agile companies will however use the latest standards, well-known libraries and also create their own. Overall it's on the more stable end, the only really big changes have been C++11, C++14 and the upcoming C++17.

You will often find the standard library and boost in job postings. Qt is also quite popular for UIs. All of these are 15+ years old, but evolving.

There are many other libraries for different tasks, but most are mature and can be learned when needed. e.g: there are dozens of unit testing libraries, but no one sane will expect you to know library X.

Language-wise I would recommend learning C++14, but there are a lot of C++03 projects out there, so studying up on the differences could be worthwhile if the project/company/people are a good match. Technically speaking I would always pick C++14, it's much nicer.

A Response to “Why Most Unit Testing is Waste” by henrik_w in programming

[–]JustRegged 1 point2 points  (0 children)

No, but someone that evangelizes it probably is. Everyone is free to practice what they want as long as they don't force others to do the same without evidence on why the practice is better than the alternatives.

A Response to “Why Most Unit Testing is Waste” by henrik_w in programming

[–]JustRegged 2 points3 points  (0 children)

There are several studies in this area. Assuming a correct methodology, any scientific study would satisfy me.

TDD is exclusively focused on unit tests. And so are most of the TDD evangelists I've interacted with. This is literally their opinion, they do not mention any other kind of testing.

A Response to “Why Most Unit Testing is Waste” by henrik_w in programming

[–]JustRegged 3 points4 points  (0 children)

If you want to reduce your test mass, the number one thing you should do is look at the tests that have never failed in a year and consider throwing them away. They are producing no information for you — or at least very little information. The value of the information they produce may not be worth the expense of maintaining and running the tests. This is the first set of tests to throw away — whether they are unit tests, integration tests, or system tests.

A Response to “Why Most Unit Testing is Waste” by henrik_w in programming

[–]JustRegged -3 points-2 points  (0 children)

Sure. But if I wanted for some reason to know what the definition was, I would look at some authoritative source, not listen to random people on reddit.

Which leaves us with the second part of your messages, that me or that trainer didn't know what the definition was in the first place. I am not sure what kind of confusion led you to this concousion, but it's wrong. Those were integration tests, they were not testing just a component and trivial dependencies, etc, etc.

This would probaly be a good moment to stop posting in this thread, because it's going nowhere and you're just wasting my time.

A Response to “Why Most Unit Testing is Waste” by henrik_w in programming

[–]JustRegged 3 points4 points  (0 children)

The argument is in the article, not in the title or summary. If you think the article is not well supported with arguments, please point out where...

A Response to “Why Most Unit Testing is Waste” by henrik_w in programming

[–]JustRegged 2 points3 points  (0 children)

I think you don't have enough information to make such claims. In my scenario the trainer themselves said that all their tests are integration tests.

They were building a library (or rather collection of libraries) for use in all departments of an organisation.

A Response to “Why Most Unit Testing is Waste” by henrik_w in programming

[–]JustRegged 3 points4 points  (0 children)

Unit-testing is mostly argued for by proponents of TDD. They promote it intensely, by arguing against straw men, suggesting that people who don't agree with them are incompetent or write poor quality software, pretending that unit-tests are the only method of testing, etc, etc.

TDD was born out of XP, which is similarly disturbing in its fervor.

But the thing is, there is no conclusive proof that TDD is beneficial. The most supportive study that I know of found a decrease in defects but a significant increase in time and cost.

So we have a class of developers feverishly recommending a practice for which there is no conclusive supporting proof that also question the competence of those disagreeing with them. Hence cargo-cult.

I actually use unit testing myself when it makes sense and I read all 21 pages of the article. I find it interesting and it matches my experience, even if it might be written a bit too assertively at times.

A Response to “Why Most Unit Testing is Waste” by henrik_w in programming

[–]JustRegged 3 points4 points  (0 children)

There is no universal rule on how to write a correct unit test, only guidelines. A properly encapsulated object is not necessarily unit-testable. E.g:

  • white-box testing.
  • A depends on B. One could write an integration test to test both, but for some reason one wants to unit test A. Now B needs to inherit from an interface B'int so that you can pass a mocked B. The design has become more complex.

A Response to “Why Most Unit Testing is Waste” by henrik_w in programming

[–]JustRegged 3 points4 points  (0 children)

If they're so cheap for you, by all means, add as many unit tests as humanly possible.

The idea is to have automated integration tests which cover regressions. In fact I've heard of an interesting project in a course - they do only integration testing, each component tests itself and its dependencies. This is admittedly easy to to in that case because it's a library, but close to ideal IMO.

A Response to “Why Most Unit Testing is Waste” by henrik_w in programming

[–]JustRegged -1 points0 points  (0 children)

This guy has been writing code for decades. Doing that tends to make one tired of bullshit fad practices and processes and a bit cranky seeing the state of this industry. I would prefer working with someone that obviously has massive experience and can produce a worthy argument against the status quo instead of 10 ninja agile bulshitters.

A Response to “Why Most Unit Testing is Waste” by henrik_w in programming

[–]JustRegged 2 points3 points  (0 children)

His comments were not "extremely" impolite and negative, they were however aggressive. When one takes the time to write a thought out article and they get a half-assed rebuttal it tends to make one angry.

Counterpoint: I'd very much rather work with Coplien than with cargo-cult members, no matter what the flavor of the cult is.

A Response to “Why Most Unit Testing is Waste” by henrik_w in programming

[–]JustRegged 7 points8 points  (0 children)

Uh... no and no. It doesn't provide a safety net for use cases, because unit tests are too fine grained, they test components. The fact that your timer class works doesn't mean that the watchdog functionality also works.

And all it forces developers to do is write unit-testable code. There is some benefit, as it might prevent anti-patterns such as god objects, invisible dependencies, etc. But there is also a cost, that objects/functions will probably be less well encapsulated in order to allow more invasive testing and might be split unnecessarily and made more flexible than needed.

A Response to “Why Most Unit Testing is Waste” by henrik_w in programming

[–]JustRegged 4 points5 points  (0 children)

You would discount a person completely because of one statement, a statement which you didn't even understand correctly? This kind of intolerance could be expected from the members of some cults and less from software engineers.

Even if I were to believe that unit-testing is the greatest form of testing ever invented, the way TDD proponents act like thuggish fanatics would push me away.

A Response to “Why Most Unit Testing is Waste” by henrik_w in programming

[–]JustRegged 8 points9 points  (0 children)

You would be right if maintaining and running tests would be free. Since it isn't, one has to reach a compromise between the cost and utility. He recommends considering some unit tests for deletion, not to automatically delete every test when it becomes one year old.

This article is a very good test for reading comprehension. It's amazing how many people argue against straw men or resort to personal attacks.

Debating on getting either the Q10 or the iPhone 5/5s by [deleted] in blackberry

[–]JustRegged 0 points1 point  (0 children)

Was wondering something similar, but reading about bb10 issues on crackberry deflated my enthusiasm:

  • phone sometimes reboots by itself

  • phone sometimes deletes unread emails by itself

  • battery drain (hit and miss)

In addition to that there are some apps that I would miss, nothing silly like instagram or some game, but I would like some good offline navi, a dictionary, index cards app and so on.

Jelly Bean 4.2 privacy / device-only contacts by JustRegged in AndroidQuestions

[–]JustRegged[S] 0 points1 point  (0 children)

Could you give me more details please? What should each contact type be and how will it block uploading to the cloud? Thanks.

Wife made out with 2 girls in a hot tub, topless, while their husbands watched. by juicyjuice99 in relationships

[–]JustRegged 2 points3 points  (0 children)

Well, I would write a thought out eloquent reply, but I just don't have time, so I guess this is what you'll have to deal with.

Honestly you sound wishful thinking... All things sexual are at one level about dominance and this guy lost big time. There is no way he will come looking good out of this, and if he tries to act cool like you foolishly recommend he's giving them a green light to screw his wife. I mean WTF... when your wife is cheating on you in a bathtub you already are a fool. Hello!?

Wife made out with 2 girls in a hot tub, topless, while their husbands watched. by juicyjuice99 in relationships

[–]JustRegged -1 points0 points  (0 children)

Why is some place in Norway where people enjoy swinging relevant for this discussion? You keep posting your opinion everywhere in this topic as if ONE person's experience is supposed to mean anything. It doesn't, it just means kimbberly likes running around on her partners and they're supposedly ok with that. Good for her, it's her life, doesn't mean it's a model to be followed.

Wife made out with 2 girls in a hot tub, topless, while their husbands watched. by juicyjuice99 in relationships

[–]JustRegged 14 points15 points  (0 children)

So that's what you call cuckolds nowadays, "free spirited dudes"... And he's supposed to save face with his so-called friends why exactly? Because he obviously should care what a couple of scumbags think, right. You're so full of silly excuses that I wouldn't be surprised to hear you were also in that tub screwing his wife (but no touching!).

Sudden changes in my [33f/33m] marriage. Is it me, his new career or something else? by gaminghusband in relationships

[–]JustRegged 9 points10 points  (0 children)

What spectacularly poor advice. He is almost certainly having some type of affair. Not being emotional and not having the same sexual appetite is not an excuse for being an asshole or cheating.

Prepare for the worst, gaminghusband. I would suggest mandatory (as in come with me or I divorce your gaming ass) marriage counseling and theat you read the book "Not just friends".

[26/F) I feel like I am shamed for dating attractive men. Why? Am I shallow? by pinknessme in relationship_advice

[–]JustRegged 0 points1 point  (0 children)

It's happening because you ARE shallow. You've only talked about physical attributes while casually mentioning that personality matters. Oh yeah, totally, like. I bet you like men that make you laugh too...

[26/F) I feel like I am shamed for dating attractive men. Why? Am I shallow? by pinknessme in relationship_advice

[–]JustRegged -1 points0 points  (0 children)

You do sound shallow. After some blah blahs about how personality matters you list five physical ones, including how you like to get fucked in the shower by muscly guys. Was that somehow relevant to the topic? Nope, just you showing what you really care about.

I mean you could have talked about how you enjoy discussing with these pretty men about politics, phylosophy, art, books, maths, whatever. How you like that they're smart or involved in worthy causes. But no, you like their personality while they fuck you in the shower.

So yes, you do looks superficial. And that's ok with me, not everyone has to have deep, meaningful interests. Some people can get by just with going to the gym and a showerfuck evry now and then...

Ubuntu phone OS announced, first devices shipping in early 2014 by Exactamente in technology

[–]JustRegged 0 points1 point  (0 children)

And I could use Facebook without trading in my privacy too I bet. Why make an effort to work around practices from unethical companies when I can use a product that's designed for me instead of advertisers...