Code Quality

Working with Rust: Formatting, Linting & Auto-completion

Every language has its own toolset for writing effective and clean code, Rust is no different. So in this blog, we would be describing how to format the rust code, while working with different editors or IDE. Formatting code is a mechanical task which takes both time and mental effort. By using an automatic formatting tool, a programmer is relieved of this task and can Continue Reading

The Law of Demeter

You’ll often get to hear from good programmers about having “loosely coupled” classes. What do they mean by saying that? Let’s understand this first before jumping onto the Law of Demeter. Loosely Coupled  In object-oriented design, the amount of coupling refers to how much the design of one class depends on the design of another class. In other words, how often do changes in class

CodeSquad: An insight into code quality

http://getcodesquad.com/ Software development has reached beyond the mere question of, “Does it work?”’ However, the question of “how to improve the code quality and its efficiency?” becomes the primary concern. The code quality improvement is one of the things that requires well-developed strategy and adhering to it throughout the project’s lifecycle. It’s only a matter of time when it catches you up and causes problems Continue Reading

Knolders review of #venkat_50_50_tour at #DelhiJUG17 meetup

Dr. Venkat Subramaniam celebrates his 50th anniversary with distributing his smiles throughout the world’s Java User Groups (JUG) meetups, conferences, and events. Recently, he was in India and Delhi-NCR Java User Group organized one stop meetup for him. Needless to say, core to our culture of knowledge sharing caring,  Knolders were a part of the event. In meetup, Venkat spoke about Designing Functional Programs Java 8 streams and why functional programming is Continue Reading

Maven Plugins for Scala Code Quality

SBT is an excellent tool for Scala and there are many plugins available for SBT to improve and measure the code quality of our Scala code. Sometime you may require to use only the Maven as a build tool and most of the popular plugins available in SBT for Scala are also available in maven. In this blog I will try to list down  the Continue Reading

Domain Driven Design with Scala

The benefits of DDD have been elucidated multiple times. For us, at Knoldus, we want to make sure that quality of software developed goes a long way. More than 70% of the cost of the software is spent in the maintenance of the software and hence it becomes absolutely essential that a good amount of time is spent in making the right software right. The Continue Reading

Getting started with ReactJS, Play 2.4.x, Scala, Anorm and WebJars

playing-reactjs This blog describes a basic example to render UI using React(A JavaScript library for building user interfaces) with Play 2.4.x, Scala, Anorm and WebJars. It also demonstrates the use of evolution in Play 2.4.x This is a classic CRUD application, backed by a JDBC database. It demonstrates: Handling asynchronous results, Handling time-outs Achieving, Futures to use more idiomatic error handling. Accessing a JDBC database, Continue Reading

Play 2.4.X : Microservice Architecture using Play and Scala

Playing-Microservices This blog describes a basic Microservice architecture design using Play 2.4.X and Scala. The big idea behind microservices is to architect large, complex and long-lived applications as a set of cohesive services that evolve over time. The term microservices strongly suggests that the services should be small. In short, the microservice architectural style is an approach to developing a single application as a suite Continue Reading

Play 2.3.x PDF : Basic example for generating PDF documents dynamically from Play Application with the help of play2-pdf module

In this blog I have created a basic example for generating PDF documents dynamically from Play Application with the help of play2-pdf module Play 2.3.x PDF module: This module helps generating PDF documents dynamically from your Play! web application. It simply renders your HTML- and CSS-based templates to PDF. It is based on the Flying Saucer library, which in turn uses iText for PDF generation. Continue Reading

Playing Gravatar: A basic example to generate gravatar using email address with Play Framework

Playing Gravatar Image In this blog I have created a basic example to generate gravatar using email address with Play Framework Gravatar: An “avatar” is an image that represents you online—a little picture that appears next to your name when you interact with websites. A Gravatar is a Globally Recognized Avatar. You upload it and create your profile just once, and then when you participate Continue Reading

Tutorial #3: Getting started with HTTP Programming in Play Framework

We have already discussed about the Play development environment in Tutorial #1 and use of WebJars, jQuery, Bootstrap & Bootswatch with Play in Tutorial #2 So, In this blog we would discuss about HTTP programming in Play Framework which would drive us through rest of the tutorial series.  We would be running this blog as a series and we would be looking at various aspects Continue Reading

AWS Services: AWS SDK on the Scala with Play Framework

playing-aws-scala The following blog and attached code represent a simple example of Amazon Web Services in the Scala way with Play Framework using AWScala but in this blog I have implemented only Amazon Simple Storage Service (Amazon S3) functionalities. AWScala: AWS SDK on the Scala REPL AWScala enables Scala developers to easily work with Amazon Web Services in the Scala way. Though AWScala objects basically Continue Reading

Conditional logging with Logback in Scala

Hello Folks In my project , i got a scenario where I wanted conditional logging. I was using Logback framework for the same. I wanted to set different logging level for staging and production. Either i could do manually changes in logback.xml for logging level for staging and production both. But this is not the good practice. Then I found the solution of implementing the Continue Reading

%d bloggers like this: