Compare JSON Arrays

How do you compare two similar JSON array set ? I bet that is a scenario you might have across atleast once in your developer life. Let us say you have following two sets of JSONs. Json Set 1 [ { "SourceLocation":"England", "DestinationLocation":"Spain", "DeliveryDate":"9/12" }, { "SourceLocation":"England", "DestinationLocation":"Germany", "DeliveryDate":"9/12" } ] Json Set 2 [ … Continue reading Compare JSON Arrays

The required modifier : Understand the limitations

C# 11 introduced the required modifier, which indicates that the applied peroperties and fields should be initialized by all available constructors or using object initializer. We learned more about the modifier in our earlier post. In this post, we take a look into a limitation of the functionality. Consider the following code. publicclassFoo { public required string Name {get;set;} public … Continue reading The required modifier : Understand the limitations

K-Sum – A generalized solution

In this blog post, we will attempt to address the 4-Sum problem from Leet code using the generic approach of K-Sum. Let us state the official definition of the problem. Given an array nums of n integers, return an array of all the unique quadruplets [nums[a], nums[b], nums[c], nums[d]] such that: 0 <= a, b, … Continue reading K-Sum – A generalized solution

QT #3 : Hello World using Qt Widgets

Earlier in this series of Qt byte sized tutorials, we wrote our first program, a console based "Hello World". In this part, we will build a GUI application (after all Qt is mainly a GUI Framework) using Qt Widgets. In doing so, we will also leverage the functionalities of Slots and Signals, which we learned in previous post. Widgets … Continue reading QT #3 : Hello World using Qt Widgets

QT #2 : Signals and Slots

In this section, we will sneak peak into one of the key concepts introduced by Qt - Signals and Slots. Qt uses Signals and slots for communicating between objects. Or to be more precise, all objects that derieved from QObjects (or one of its subclasses). Objects often want to communicate with each other, particularly in GUI programming where … Continue reading QT #2 : Signals and Slots

gRPC-Web : Using gRPC over browser application

Previously, we created a gRPC server in .NET and connected it using a Flutter Desktop client. In this blog post, we would attempt to connect a web application running on a browser to the gRPC server. We will look at the problems, and the solutions we have, particularly, the gRPC-Web .Net Microsoft have come out … Continue reading gRPC-Web : Using gRPC over browser application

QT #1 : Introduction to QT C++

QT(pronounced as Cute) has been around for a long time now. At the time of writing of this blog, Qt 6.4 is the latest stable version. Why Qt ? Qt is a cross platoform framework for development of application across Windows, Linux, Android, IOS and embedded devices. Cross Platform application development allows developers to use the … Continue reading QT #1 : Introduction to QT C++

Migrating to null safety in Flutter/Dart

If you are starting with Flutter, just like me, and end up having used dependency packages with versions which do not support null safety checks then you are most likely to come across with errors such as the following when you do build. error GBA2BE6E0: A library can't opt out of null safety by default, … Continue reading Migrating to null safety in Flutter/Dart

Process Stream data from gRPC Server using Flutter/Dart

In the earlier post, we addressed how to create a simple Grpc server in C# and consume it using a client developed using Flutter/Dart. We will now take the next step and address how to create expose a streaming remote method in the server and consume the same in the client. Streaming method in Server (C#) … Continue reading Process Stream data from gRPC Server using Flutter/Dart