Sun.May 12, 2019

article thumbnail

Top 5 JUnit and Unit Testing Courses for Java Programmers

DZone

Today, we're going to talk about JUnit and unit testing, one of the key skills for any software developer. You may already know that JUnit and Mockito are two of the most popular testing libraries for Java applications, and you will find them in almost every Java application classpath. I often meet and work with Java developers who know Java well but haven't written a single unit test.

Java 189
article thumbnail

f() vs f(void) in C vs C++

Nick Desaulniers

TL;DR. Prefer f(void) in C to potentially save a 1B instruction per function call when targeting x86_64 as a micro-optimization. -Wstrict-prototypes can help. Doesn’t matter for C++. The Problem. While messing around with some C code in godbolt Compiler Explorer , I kept noticing a particular funny case. It seemed with my small test cases that sometimes function calls would zero out the return register before calling a function that took no arguments, but other times not.

C++ 111
article thumbnail

An open-source benchmark suite for microservices and their hardware-software implications for cloud & edge systems

The Morning Paper

An open-source benchmark suite for microservices and their hardware-software implications for cloud & edge systems Gan et al., ASPLOS’19. Microservices are well known for producing ‘death star’ interaction diagrams like those shown below, where each point on the circumference represents an individual service, and the lines between them represent interactions.