Search Results for: Type system

Type Parameterization and Type System: Introduction

Reading Time: 3 minutes Scala is a static type language, which means types are checked at compile time instead of runtime. Type System provides safety during the compile time because we are detecting the error beforehand as these can be a potential error at runtime. Type parameterization also called as generics combined with Scala’s type system. We can write generic code so that we can reuse that code. Suppose, Continue Reading

Back2Basics: Scala Type System in Depth

Reading Time: 5 minutes In this blog, I will put emphasis on the power and awesomeness of the Scala Type System. Also, I will try to reiterate that it is not difficult or complicated as perceived.  In layman terms, the Scala Type system helps us keep the code tidy and type safe.  So in this blog, I shall take you through the following : Parameterized types In-Variance Co-Variance Contra-Variance

Back2Basics: Introduction to Scala Type System

Reading Time: 5 minutes As programmers, we often come across a concept called type inference. To begin with let me clarify that type inference is not something unique to Scala, there are many other languages like Haskell, Rust and C# etc that have this language feature. Going by the bookish definition “Type inference refers to the automatic detection of the data type of an expression in a programming language”. Continue Reading

Back2Basics: Catalogue #1

Reading Time: 2 minutes Knoldus Inc is proud to announce the launch of program “Back2Basics”. Back2Basics is our effort to add value to the Scala ecosystem by exploring not so explored concepts in Scala. The idea behind the inception of the program is to develop an understanding of Scala concepts that are hard to understand and not frequently used by developers. In this program, we have two parallel tracks Continue Reading

Scala 3 Survey: The Conclusion

Reading Time: 3 minutes Scala 3 community build is here, and we are too excited about it. At Knoldus, we are actively exploring Scala 3, and we have been enjoying it a lot. Therefore, we thought why not to get a community perspective about the new and exciting features of Scala 3. We reached out to the community with a survey in December 2020, which we ran for a Continue Reading

Demystify GraphQL

Reading Time: 4 minutes In this blog, I will be introducing and demystify the GraphQL. I will be elaborating its advantages. And also put some focus on its inception and reasons for its popularity. GraphQL is both a query engine and a query language. It was first created by Facebook in 2012. Initially, the design was more of a specification. Facebook used it as a specification to describe the Continue Reading

Whats new in Dgraph v1.1.0?

Reading Time: 3 minutes In this blog, we will cover the new features Introduced in Dgraph v1.1.0 which was released on 3rd September. We can also find the breaking changes in dgraph v1.1.0 . Also, we can find all the changes and new features detail in the change-log. New Type System This version of Dgraph supports a type system that can be used to categorize nodes and query them based Continue Reading

The breaking changes in Dgraph v1.1.0

Reading Time: 4 minutes Dgraph v1.1.0 was released on 3rd September, 2019 with significant changes and new features. So, It becomes important to know these changes that could break our existing code when we try to upgrade Dgraph with the new version. In this blog, we will cover the important changes introduced. We can find all the changes and new features detail in the change-log. 1. Predicates of type UID Continue Reading

Dotty – Union Data Types

Reading Time: 2 minutes Hello folks, As we know that dotty is new Scala compiler (also know as Scala 3.0) which is coming with some new features and improvements. To get more details about the dotty and its environment setup. Please follow our beginner guide blog. In this blog, I will describe you about newly introduced Union data type of dotty and its various properties. A union is data type, which Continue Reading

Is GraphQL better than REST?

Reading Time: 4 minutes In this blog, we will be going to explain a brief difference between GraphQL and REST APIs, Why GraphQL comes into the picture, and give some benefits over REST APIs. So without any further delay let us begin with an understanding of brief about GraphQL and REST APIs. GraphQL is a new API standard that provides a more efficient, powerful, and flexible alternative to REST. Continue Reading

Excerpt: From DOT to DOTTY

Reading Time: 3 minutes Hi Guys, In this blog we will see some excerpts from the slides by Martin Odersky and Dmitry Petrashko. How From DOT to DOTTY evolved? So, let’s begin. The DOT calculus is intended to be a new minimal foundation of Scala which is to be Scala 3. Its type structure is a blueprint for the types used internally in the compiler. DOT is a core Continue Reading

:)