Content tagged with: c++
Kevlin Henney explores the typical styles used for C++ unit-testing frameworks before going on to look at other possibilities that are more likely to encourage programmer testing and higher quality unit tests. From the raw use of the assert macro, to xUnit-style frameworks, to more natively C++-style frameworks and then onto a specification-centric approach that abandons functions as the basic unit of test case decomposition. The technical and practitioner pros and cons of each approach are examined.
Watch this video on Skillsmatter.com
In this video, Chris Pels creates a managed Windows Forms control to use in a C++ application, and teaches you how to capture events from the Windows Forms control in your C++ application.
Javaâ€™s appearance at the dawn of the Internet Age helped to propel it to near-instant prominence, and lodged cross-platform virtual machines and garbage-collection firmly into our mainstream consciousness. In Javaâ€™s wake, .NET introduced the concept of the â€œcross-languageâ€ virtual machine, and helped to foster a new discussion on the benefits of functional programming. Did Java and C# have an evolutionary advantage over C++, or were they simply â€œCoolâ€ (the original code name for C# / .NET)?
Watch this video on Oredev.org
Mock objects make unit testing easier and more effective. They cut code dependencies, make the tests fast and robust, make the test intent clear, and enable developers to easily test the interaction between components. While an invaluable technique, mocks haven’t caught on in the C++ land due to limitation of the language and lack of good tools. gMock is a library that makes C++ mocks easy and practical. A user would describe the interface he wants to mock and gMock will automatically generate the …
This is the introductory course for computer science at UNSW. This lecture deals with Style, clarity, hackers vs elite programmers, simple c programming, side effects, compiler options, segmentation faults.
This is the introductory course for computer science at UNSW. This lecture deals with strings, elements and layout of a c program. using gcc, comments, ints, printf, scanf, main, #include, printing newlines.
Whenever unit-tests are written, chances are good that the code is not isolated. Many tests run against a given class/interface/function. The design didn’t consider isolating the dependencies of this function, which makes tests slower, larger, less focused, and likely depending on external dependencies (e.g. database access) which decreases the reliability. In addition, it disables much of the interaction-based testing or verification of behavior at error conditions. In this session I will demonstrate the value of small, isolated tests and explain good engineering practices for how to structure them. I will …
Tutorial on how to inherit from a form in Visual Studio
The advent of multicore processors has generated profound debate on the merits of writing parallel programs with threads and locks. Nonetheless, for many application domains, this remains the standard paradigm for writing parallel programs, and at the moment, there is no apparent universal replacement. And it is the focus of this talk. Somewhat surprisingly, there are a number of often subtle, but generally fixable, industry-wide problems with current approaches to threads programming. Â Since solutions to these problems generally require a coordinated industry effort, we …
In this video we will get you familiar with the approach to debugging JNI code based on a new debug interface implemented on top of Apache Harmony JVM. This approach provides support for seamless debugging native methods in Java applications and access to native data. The user interface is plugged into Eclipse IDE and based on the JDT and CDT debug interfaces. We will demonstrate the new approach on basic debug scenarios.