Remove c
article thumbnail

C# Coding Convention: Coding Standard in C#

DZone

Coding conventions are a set of guidelines for writing code that is consistent, readable, and comprehensible. They are also sometimes called programming conventions, style guides, or coding standard. These conventions cover various aspects of the code, such as naming conventions, indentation, commenting, and formatting.

Code 225
article thumbnail

C# Errors by Example: Checking the DotNetNuke CMS

DZone

Today, we discuss C# code quality and a variety of errors by the example of CMS DotNetNuke. We're going to dig into its source code. DotNetNuke is an open-source content management system (CMS) written mainly in C#. The source code is available on GitHub. You're going to need a cup of coffee. DotNetNuke.

C++ 262
Insiders

Sign Up for our Newsletter

This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

article thumbnail

How To Generate Code Coverage Report Using JaCoCo-Maven Plugin

DZone

Code coverage is a software quality metric commonly used during the development process that let’s you determine the degree of code that has been tested (or executed). To achieve optimal code coverage, it is essential that the test implementation (or test suites) tests a majority percent of the implemented code.

Code 319
article thumbnail

MongoDB SSL with self-signed certificates in C#

Scalegrid

In this blog post, we show you two methods to securely connect to a MongoDB server configured with self-signed certificates for SSL, using the official C# MongoDB driver. How to Connect MongoDB SSL to your C# Application Click To Tweet. Note: All the code samples have been tested using MongoDB Driver v2.8.1 Prerequisites.

C++ 244
article thumbnail

Sorting in C#: OrderBy.OrderBy or OrderBy.ThenBy? What's More Effective and Why?

DZone

In C#, we can do this with the help of OrderBy().OrderBy() To answer this question, we need to delve into the source code. Suppose we need to sort the collection by multiple keys. OrderBy() or OrderBy().ThenBy(). But what is the difference between these calls? The article has three chapters:

C++ 271
article thumbnail

C++ safety, in context

Sutter's Mill

To talk about C++’s current safety problems and solutions well, I need to include the context of the broad landscape of security and safety threats facing all software. Many of the most damaging recent security breaches happened to code written in MSLs (e.g., tl;dr: I don’t want C++ to limit what I can express efficiently.

C++ 143
article thumbnail

The Pitfalls in C++ Unit Testing

DZone

Recently there has been a surge of interest in C++ unit testing. C++ unit testing has not been common in C++ development in the past. Although C++ is a kind of programming language that fits well with unit testing, several complexities require extra care. In this article, I’ll discuss the most common pitfalls.

C++ 191