scalastyle

Effective Programming In Scala – Part 1 : Standardizing code in better way

Reading Time: 4 minutes A language is a set of standards. One has to follow them in order to avail benefits from the language. In order to maintain these standards, code in Scala has to be written in order to minimize the errors whether they are related with the concepts like redundancy of operations, use of properties of language those not supported by ScalaStyle or ScapeGoat or other checkers. Continue Reading

Generating, visiting and unit testing grammar using ANTLR4 with Java and Scala

Reading Time: 6 minutes “Quality is free, but only to those who are willing to pay heavily for it” – T. DeMarco Now unit testing is not that heavy to pay off so lets start the blog. In this blog we will be continuing the voyage to the kingdom of ANTLR4 RECAP In previous blog we discussed how to test whether a string is grammatically correct or not using Continue Reading

Adding Scalastyle in a Multi-Module SBT Scala Project

Reading Time: 2 minutes Nowadays, building a Multi-Module SBT project is becoming very common. It helps us to keep multiple related projects in a single build. Moreover, each sub-project in the build has its own SBT default directory. Also, it generates its own build and works like any other project. But, adding Scalastyle in a Multi-Module SBT Scala project is not easy because Scalastyle does not support Multi-Module SBT Continue Reading

Building Quality into Scala Development

Reading Time: 3 minutes The argument and debates regarding writing quality code have mostly rested in the favour of writing clean code. Cleanliness fosters quality. Clean code is straightforward, direct, reads like a story and makes it very understandable. As a rule that we have at Knoldus, if your code does not read like a story and we have to interrupt in between to understand wtf is going around Continue Reading