Home » Archives

Content tagged with: c++

[25 Aug 2010 | No Comment | ]

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

[25 Jan 2010 | No Comment | ]

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.
http://msdn.microsoft.com/en-gb/vstudio/bb821244.aspx

[29 Dec 2009 | No Comment | ]

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

[25 Mar 2009 | No Comment | ]

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 …

[16 Mar 2009 | No Comment | ]

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.

[16 Mar 2009 | No Comment | ]

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.

[7 Jan 2009 | One Comment | ]

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 …

[30 Dec 2008 | No Comment | ]

Tutorial on how to inherit from a form in Visual Studio

[16 Dec 2008 | No Comment | ]

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 …

[11 Dec 2008 | No Comment | ]

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.