Skip to main content

Posts

Showing posts from March, 2021

Monitoring and Observability in Cloud-Native ASP.NET Core apps

Distributed applications are complex and bring in their own set of challenges for developers to debug and fix production issues. Though the microservices architecture helps maintain a smaller team that works autonomously and focuses on separate business domains, it introduces newer challenges due to its distributed nature. For example, in case of an issue during a business transaction, the request needs to be traced end-to-end, which may span across multiple services and infrastructure. Some of the challenges include: Managing known and unknown failures Failures are also distributed Legacy monitoring systems will not work This is where monitoring and observability come into the picture. While monitoring records the overall health of an application while observability helps you dig deeper with contextual data. During the entire month of March, we focused on bringing you newer content around Microservices. On the .NET show, Cecil and I talked in-depth about the Observability and Mo...

C++ coroutines: The initial and final suspend, and improving our return_value method

Last time, we had a basic implementation of a promise type but left with the question of what the initial_suspend and final_suspend are for. When the compiler encounters a coroutine function, it performs multiple rewrite passes. One of the early passes produces the following: return_type MyCoroutine(args...) { create coroutine state copy parameters to coroutine frame promise_type p; The post C++ coroutines: The initial and final suspend, and improving our return_value method appeared first on The Old New Thing . 2021-03-31 14:00:00Z 0001-01-01 00:00:00Z https://devblogs.microsoft.com/oldnewthing/20210331-00/?p=105028

Node.js and Express.js - Full Course

Curriculum for the course Node.js and Express.js - Full Course Learn how to use Node and Express in this comprehensive course. First, you will learn the fundamentals of Node and Express. Then, you will learn to build a complex Rest API. Finally, you will build a MERN app and other Node projects. ✏️ Course developed by John Smilga. Check out his channel: https://www.youtube.com/channel/UCMZFwxv5l-XtKi693qMJptA 💻 Code: https://github.com/john-smilga/node-express-course ⌨️ (00:00​) Introduction ⌨️ (01:41​) What Is Node ⌨️ (02:56​) Course Requirements ⌨️ (04:16​) Course Structure ⌨️ (04:59​) Browser Vs Server ⌨️ (07:50​) Install Node ⌨️ (11:08​) Repl ⌨️ (13:27​) Cli ⌨️ (19:07​) Source Code ⌨️ (20:27​) Globals ⌨️ (29:34​) Modules Setup ⌨️ (32:46​) First Module ⌨️ (45:32​) Alternative Syntax ⌨️ (49:50​) Mind Grenade ⌨️ (53:47​) Built-In Module Intro ⌨️ (56:31​) Os Module ⌨️ (1:04:13​) Path Module ⌨️ (1:10:06​) Fs Module (Sync) ⌨️ (1:18:28​) Fs Module (Async) ⌨️ (1:27:...

C++ coroutines: Basic implementation of a promise type

Last time, we diagrammed out how the pieces of a coroutine fit together. Today we’ll fill in the diagram with code. Fortunately, most of the hard work has already been done for us by the result_holder class we already wrote. We just need to adapt it to the format required by the coroutine specification. The post C++ coroutines: Basic implementation of a promise type appeared first on The Old New Thing . 2021-03-30 14:00:00Z 0001-01-01 00:00:00Z https://devblogs.microsoft.com/oldnewthing/20210330-00/?p=105019

Node.js and Express.js - Full Course

Curriculum for the course Node.js and Express.js - Full Course Learn how to use Node and Express in this comprehensive course. First, you will learn the fundamentals of Node and Express. Then, you will learn to build a complex Rest API. Finally, you will build a MERN app and other Node projects. ✏️ Course developed by John Smilga. Check out his channel: https://www.youtube.com/channel/UCMZFwxv5l-XtKi693qMJptA 💻 Code: https://github.com/john-smilga/node-express-course ⌨️ (00:00​) Introduction ⌨️ (00:52​) Node Intro ⌨️ (01:41​) What Is Node ⌨️ (02:56​) Course Requirements ⌨️ (04:16​) Course Structure ⌨️ (04:59​) Browser Vs Server ⌨️ (07:50​) Install Node ⌨️ (11:08​) Repl ⌨️ (13:27​) Cli ⌨️ (19:07​) Source Code ⌨️ (20:27​) Globals ⌨️ (29:34​) Modules Setup ⌨️ (32:46​) First Module ⌨️ (45:32​) Alternative Syntax ⌨️ (49:50​) Mind Grenade ⌨️ (53:47​) Built-In Module Intro ⌨️ (56:31​) Os Module ⌨️ (1:04:13​) Path Module ⌨️ (1:10:06​) Fs Module (Sync) ⌨️ (1:18:28​) Fs ...

Loop alignment in .NET 6

When writing a software, developers try their best to maximize the performance they can get from the code they have baked into the product. Often, there are various tools available to the developers to find that last change they can squeeze into their code to make their software run faster. But sometimes, they might notice slowness in the product because of a totally unrelated change. Even worse, when measured the performance of a feature in a lab, it might show instable performance results that looks like the following  BubbleSort  graph 1 . What could possibly be introducing such flakiness in the performance?   To understand this behavior, first we need to understand how the machine code generated by the compiler is executed by the CPU. CPU  fetch  the machine code (also known as instruction stream) it need to execute. The instruction stream is represented as series of bytes known as opcode. Modern CPUs  fetch  the opcodes of instructions in chunk...

Java Beginner Course - Get Started Coding with Java!

Curriculum for the course Java Beginner Course - Get Started Coding with Java! Learn how to start programming in Java in this beginners course. What you will learn: -The absolute basics of getting started with Java -Understand the components of the Java platform (JVM, JDK, JRE) -Be able to install the JDK and set it up to write Java programs -Be able to install an IDE to program in Java -Understand the basics of an IDE and the features it offers to help with Java programming -Appreciate foundational Java programming syntax that form the building blocks of Java programs -Have a feel and appreciation for Java and want to take it further! ✏️ This course was created by Matt Speake. Check out his other amazing courses: https://courses.javaeasily.com ⭐️ Course Contents ⭐️ ⌨️ (0:00:00) Introduction ⌨️ (0:02:04) Overview of Java ⌨️ (0:13:08) Java Platform Components ⌨️ (0:27:17) The Java Development Kit ⌨️ (0:40:04) The IDE (Integrated Development Environment) ⌨️ (0:57:07) Java Syntax B...

Six Quick Python Projects

Curriculum for the course Six Quick Python Projects Improve your Python programming skills by coding six different Python projects. You will create a web scraping program, a bulk file renamer, a weather program, a countdown timer, a password generator, and a QR code encoder / decoder. ✏️ Course developed by Code With Tomi. Check out his channel: https://www.youtube.com/c/CodeWithTomi ⭐️ Course Contents ⭐️ (00:00) Intro (00:37) Web Scraping Program (13:53) Renaming Bulk Files (24:54) Getting Weather Information (33:12) Countdown Timer (42:11) Password Generator (53:12) QR Code With Python Connect With Tomi: 🐦 Twitter: https://twitter.com/TomiTokko3 📄 Newsletter: https://www.codewithtomi.ml/p/newsletter.html (and get a python ebook for free) -- Learn to code for free and get a developer job: https://www.freecodecamp.org Read hundreds of articles on programming: https://freecodecamp.org/news And subscribe for new videos on technology every day: https://youtube.com/subscriptio...

Pixel Effects with JavaScript and HTML Canvas - Tutorial

Curriculum for the course Pixel Effects with JavaScript and HTML Canvas - Tutorial Learn how to implement pixel effects using JavaScript. Make your website come to life with interactive animated logos or headers, or just practice fundamental JavaScript coding techniques with me on these fun examples. In this tutorial we will go from basics to advanced and create multiple different pixel effects with vanilla JavaScript and HTML canvas. The tutorial starts with a simple beginner friendly project, where we analyze image for pixel data and use it to color shift the image and turn it into grayscale. Then we use that basic knowledge in a powerful way to create many different advanced animations with vanilla JavaScript and HTML canvas, completely from scratch. ⭐️ Code ⭐️ 🔗Project 1 Smoke: https://codepen.io/franksLaboratory/details/ZEprPKx 🔗Project 2 Rainbow: https://codepen.io/franksLaboratory/pen/MWjBPgB 🔗Project 3 Fire: https://codepen.io/franksLaboratory/pen/XWjBPOx 🔗Project 4 ...

Cloud-Native learning resources for .NET developers

Today, users are demanding responsiveness, the latest and greatest features, and zero downtime from their applications. Businesses are rapidly adopting the cloud’s power to meet user demand, increase scalability and availability of applications. However, to fully embrace the cloud and optimize cost savings, applications need to be designed with the cloud in mind. This means not just changing the way applications are built, but also changing development practices in the organization to adopt this cloud-native architectural style. The .NET team has put together a collection of free resources to help you speed up your cloud-native application development journey. Whether you’re modernizing your application or creating something new, we have guidance to assist your decision-making. These guides are up-to-date and include the latest and greatest cloud-ready features in the .NET platform. Getting started on cloud-native .NET apps If you are a beginner, start building a simple microservice...