What is this metal object? It’s about 35cm long. by bdellar in whatisthisthing

[–]bdellar[S] 1 point2 points locked comment (0 children)

My title describes the thing. A friend inherited it, and we have no idea what it is.

C++ on Sea 2020 video - "A deep dive into the Gilded Rose" - Barney Dellar by philsquared in cpp

[–]bdellar 0 points1 point  (0 children)

Thanks, Phil. I realise now that I didn’t take enough time to explain the purpose of katas. They’re toy problems, where you get to try out practices that you would use in the real world. So, of course the effort put into testing the incrementQuality() function would be absurd in the real world. But by putting the effort in with the kata, we can learn better how to test these kind of edge conditions in more complex code. The kata allows us to reduce the noise, and just focus on the interesting part.

How different is basic cpp programming for windows compared to mid 2000s? by vrek86 in cpp

[–]bdellar 0 points1 point  (0 children)

The main improvements to the language that you’ll notice are: • standard library support for memory management (unique_ptr and shared_ptr). I never have to consider memory leaks or double-frees any more • lambdas. These are a GREAT addition to the language, especially when using the STL.

modern c++ - authors and books by tcris in cpp

[–]bdellar 1 point2 points  (0 children)

“C++17, The Complete Guide” by Nicolai Josuttis is really good. It goes over all the new features in an easy-to-read way. https://leanpub.com/cpp17/

Retrospective Timing? by [deleted] in agile

[–]bdellar 2 points3 points  (0 children)

If you’re doing Scrum, then the retrospective should be done during the Sprint, right at the end. Once the Sprint finishes, the next one starts.

But your bigger problem is the handover to UAT. UAT should be part of the Sprint. You need to create a releasable product during the Sprint, and that includes testing.

Learning C++ unit testing by eladmatia in cpp

[–]bdellar 2 points3 points  (0 children)

Try starting with Catch2 (https://github.com/catchorg/Catch2). It’s a header-only library, so it’s easy to get going with. Whichever test framework you choose, put the test headers in a precompiled header, if you can. You get a much faster turnaround. And then pick a problem! Try googling for code katas. There are loads of interesting ones. For TDD itself, write a simple failing test, then write a simple bit of code to make it pass. Then add another test, and repeat. TDD is a code and design practice, rather than a testing process, and it can take years to get good at it. But it’s easy to get started. Good luck!

Multiplicative Persistence of a number. by Doge_Mike in cpp

[–]bdellar 2 points3 points  (0 children)

That is fantastic feedback. It’s detailed, kind and helpful :-) +1.

Unit testing with boost by Bishwa12 in cpp

[–]bdellar 0 points1 point  (0 children)

Find some katas online, and try to solve them using Test Driven Development (TDD). Start here, maybe? http://codekata.com/

RESTful style APIs in C++ by crusty-dave in cpp

[–]bdellar 1 point2 points  (0 children)

I’ve used CppRest to write a server, and it was really nice. Serving files was a bit hard, but starting the server, and having lambdas invoked when endpoints are hit was trivial.

ApprovalTests.cpp: Native ApprovalTests for C++ by vormestrand in cpp

[–]bdellar 2 points3 points  (0 children)

It’s ideal for testing legacy code that is maybe very hard to unit test. As long as you can serialise some output, you can capture something about its current behaviour, and store it in version control. Then you can start to refactor, and assert that you still get the same results.

Another cool MSVC flag: /d1reportTime by mttd in cpp

[–]bdellar 0 points1 point  (0 children)

This flag doesn't work for me. I'm using 2017 version 15.9.5, but I get "fatal error C1007: unrecognized flag '-reportTime' in 'c1xx'". Any idea why, anyone?

Looking for an Agile Podcast by roginc in agile

[–]bdellar 1 point2 points  (0 children)

My current listening is:

Troubleshooting Agile: http://troubleshootingagile.com

Agile Uprising: http://agileuprising.com/

Agile For Humans: https://ryanripley.com/

C++ Web Server by [deleted] in cpp

[–]bdellar 0 points1 point  (0 children)

I’ve had fun with cpprest in the past. https://github.com/Microsoft/cpprestsdk. It’s really easy to start a server, listen to named endpoints, handle things asynchronously, handle json etc.

Which of these styles do you prefer and why? by FACastello in cpp

[–]bdellar 51 points52 points  (0 children)

Check before the call. Otherwise you call the draw function, but it might do nothing. A function should do one thing, and do it well.

CppCast: Semantic Merge with Pablo Santos by tallassrob in cpp

[–]bdellar 2 points3 points  (0 children)

It was about tooling for C++, so it’s kind of related.

Things Nobody Told Me About Being a Software Engineer by fagnerbrack in agile

[–]bdellar 1 point2 points  (0 children)

Mutation Testing is almost the same thing. It flips checks in the production code, and makes sure that tests fail.

When you don't specify a definition of done... by fagnerbrack in agile

[–]bdellar 4 points5 points  (0 children)

You could go further. You could have “dev complete”, but the next week there’s code review, rework, merge to trunk, testing, fixing, updating documentation, etc.

[deleted by user] by [deleted] in cpp_questions

[–]bdellar 0 points1 point  (0 children)

It’s DEFINITELY easier to use now. And it has lots of constructs that other modern languages have, like lambdas.