Posts

Showing posts with the label code

Why Gitops isn’t ready for the mainstream (yet)

Since being coined in 2017, Gitops has emerged as a natural evolution of modern software development practices like devops , infrastructure as code , and CI/CD principles, specifically for organizations that are building microservices deployed across distributed containers and orchestrated by Kubernetes , as is the fashion these days. To read this article in full, please click here

Next.js taps Webpack 5 for faster builds

The latest upgrade of Vercel’s Next.js framework for building React web applications speeds up builds and refreshes with expanded use of the Webpack 5 module bundler. Introduced April 28, Next.js 10.2 uses Webpack 5 to improve disk caching, allowing the compiler to persist work between build runs. Because only changed files will be recompiled, performance of subsequent builds is dramatically improved, by up to 63 percent. [ Also on InfoWorld: 10 tips for tuning React UI performance ] With Next.js 10.2, all applications that do not use a custom webpack configuration in their next config.js will automatically use Webpack 5. Webpack 5 also offers benefits including better fast refresh and improved long-term asset caching. Also, CommonJS now can be tree-shaken to automatically remove unused code. To read this article in full, please click here

Codecov Hacked! What To Do Now if You Use Codecov

Codecov was hacked in a way that impacts all of its customers. Thousands of commercial enterprises and open-source projects are affected. Here’s what you need to do if you’re one of them. Read This Article on CloudSavvy IT ›

When to use String vs. StringBuilder in .NET Core

Two popular classes that you will use frequently when working with strings in .NET Core are the String and StringBuilder classes. You should be aware of the best practices when using both these classes to build applications that minimize allocations and are highly performant. This article discusses the best practices we can follow when working with strings in C#. To work with the code examples provided in this article, you should have Visual Studio 2019 installed in your system. If you don’t already have a copy, you can download Visual Studio 2019 here . Note we’ll also use BenchmarkDotNet to track performance of the methods. If you’re not familiar with BenchmarkDotNet, I suggest reading this article first. To read this article in full, please click here

Mozilla spins out Pyodide Python-in-the-browser project

Pyodide has been spun out by Mozilla into an independent, community-driven project. Consisting of the CPython 3.8 interpreter compiled to WebAssembly , Pyodide allows Python to run in web browsers. The Pyodide project has a new home in a separate GitHub organization, at github.com/pyodide , with documentation at pyodide.org . The project will be maintained by volunteers. A governance document has been published along with a project roadmap , which outlines goals such as better performance of Python code, reducing download sizes, and simplification of package loading. To read this article in full, please click here

Make the most of R colors and palettes

There are a lot of built-in colors and ready-made palettes for R users — if you know how to find and use them. Here are some of my favorite tips and tools for working with colors in R. How to find built-in R colors There are more than 650 colors built right into base R. These let you use color names instead of hex or RGB codes. The color() function lists all of the color names , but that doesn’t help you see them. To read this article in full, please click here

How to use SortedDictionary, SortedList, and SortedSet in C#

SortedDictionary, SortedList, and SortedSet are collection classes that store key-value pairs and can be sorted based on the keys. A SortedSet is a collection that is maintained in sorted order. A SortedList is a collection that lets you retrieve the keys and/or values using indexes. A SortedDictionary lacks indexes but offers faster insertion and removal of unsorted data than a SortedList. This article talks about SortedDictionary, SortedList, and SortedSet, how they differ, and how we can work with them in C#. To work with the code examples provided in this article, you should have Visual Studio 2019 installed in your system. If you don’t already have a copy, you can download Visual Studio 2019 here . To read this article in full, please click here

How to use Parallel.For and Parallel.ForEach in C#

Parallelism is the ability to have parallel execution of tasks on systems that have multiple cores. Support for parallel programming in .NET was introduced in .NET Framework 4. Parallel programming in .NET allows us to use system resources more efficiently and with better programmatic control. This article talks about how we can work with parallelism in .NET Core applications. To work with the code examples provided in this article, you should have Visual Studio 2019 installed in your system. If you don’t already have a copy, you can download Visual Studio 2019 here . [ Also on InfoWorld: Introducing Microsoft .NET 6 ] Create a .NET Core console application project in Visual Studio First off, let’s create a .NET Core console application project in Visual Studio. Assuming Visual Studio 2019 is installed in your system, follow the steps outlined below to create a new .NET Core console application project in Visual Studio. To read this article in full, please click here