Posts

Why companies choose Kotlin over java for server-side development ?

Image
It’s short, simple, easy to debug — and, now, far easier to secure with Contrast’s new, Kotlin-tuned AppSec testing.  Kotlin — which originated in 2010 at JetBrains and has been open source since the year 2012 — is a statically typed programming language that runs on the Java Virtual Machine (JVM) and which can also be compiled to JavaScript source code as well as to use the LLVM compiler infrastructure.  The appeal of Kotlin is that it gives you the ability to essentially create a web app with one language on both front and back end.  Unique qualities of Kotlin NullSafety  — The Billion Dollar Mistake is the name given to the danger of null references in code. Kotlin’s type system is aimed at eliminating the danger of these null references. This has been one of the most common pitfalls in Java — and many other programming languages, as well. No more Raw Types  — Kotlin is designed with Java interoperability in mind: It can effectively call  existing Java code. Alternatively, Kotlin co

Difference between asynchronous and synchronous in C#

Image
  Difference between asynchronous and synchronous in C# Before we jump into the juicy stuff, let’s start by clarifying the difference between asynchronous and synchronous programming. In  synchronous  operations tasks are performed  one at a time  and only when one is completed, the following is unblocked. In other words, you need to wait for a task to finish to move to the next one.  In  asynchronous  operations, on the other hand, you can move to another task before the previous one finishes. This way, with asynchronous programming you’re able to  deal with multiple requests simultaneously , thus completing more tasks in a much shorter period of time.  Synchronous Programming Synchronous represents a set of activities that starts happening together at the same time. the synchronous call waits for the method to complete before continuing with the program flow How bad is it? It badly impacts the UI that has just one thread to run its entire user interface code. Synchronous behavior lea

ASP.NET Core overview in .NET 7

Image
  In .NET 7 they plan to make broad investments across ASP.NET Core. Below are some of the areas they plan to focus on: Performance HTTP/3 Minimal APIs gRPC SignalR Razor Blazor MVC Orleans resources from developer blog of Microsoft

Handle Java Code Errors Without Finalize Method

Image
What is finalize? Before we understand why finalize is going away and what to use instead, let’s understand what finalize is or was. The basic idea is to allow you to define a method on your objects that will execute when the object is ready for garbage collection. Technically, an object is ready for garbage collection when it becomes phantom reachable, meaning no strong or weak references are left in the JVM.  At that moment, the idea is the JVM will execute the  object.finalize()  method, and application-specific code will then clean up any resources, such as I/O streams or handles to datastores. The root Object class in Java has a  finalize()  method, along with other methods like  equals()  and  hashCode() . This is to enable every single object in every Java program ever written to participate in this straightforward mechanism for avoiding resource leakages.  Notice that this also addresses the cases where an exception is thrown and other cleanup code might be missed: the object w