Month: December 2018

Java Adapter Pattern explanation

Let us return to the consideration of structural design patterns. This time we will look at a design pattern called Adapter (also called the Wrapper along with the Facade pattern). This article will talk about the following: Object adapter Class Adapter The difference between the adapter and the facade An example of using an adapter

Rest-Assured best practice

Testing RESTful Web Services can be cumbersome because you have to deal with low-level concerns which can make your tests verbose, hard to read and to maintain. Fortunately, there are libraries and best practices helping you to keep your integration tests concise, clean, decoupled and maintainable. This post covers those best practices. Use Reusable RequestSpecifications

REST-assured: useful tips

In this article, I gathered useful tips on using REST-assured, one of the most common Java libraries to automate REST-API testing. All examples are vital, they are collected from my practice of conducting code-review in more than 10 projects with automation tests. Take end-points to a separate place. It would seem that this is obvious.

Introduction in Cucumber with examples

1. Introduction Cucumber is a BDD (Behavioral Driven Development) testing framework. Using the framework to write repetitive scenarios with different permutations of inputs/outputs can be quite time-consuming, difficult to maintain and of course frustrating. Cucumber came with a solution for reducing this effort by using the concept of Scenario Outline coupled with Examples. In the

Using JavaScript’s Bitwise Operators

Bitwise operators in JavaScript introduce a weird, wild world where (12 & 3) = 0 and (12 & 4) = 4. Seriously, try it out in your console right now. I’m not lying! If you don’t know how they work precisely, read on: They might just be the solution to a programming problem you aren’t quite sure how

How to reduced initial JS/CSS size by more then 50%

We have been working on reducing the amount of bytes that we send to all Fider users. Being a web application built with React, we have focused on JS and CSS. On this post we share our learnings, some concepts and suggestions on how you can do the same with your web application. Fider is

Metaprogramming, Higher-Order Components and Mixins with Angular Ivy

Everyone in the Angular community is excited about the approaching release of Ivy — the new Angular renderer. Makes Angular faster. Tree shakes better (the hello world Angular app built with it is under 4k). Simplifies the generated code making Angular easier to debug. Streamlines the build pipeline (no more metadata or ngfactory files) making things like

Angular 7: New Features

Angular 7 was just released and while it looks a little light on new features, there are some very interesting new tooling changes as well as some great features to improve performance. And continuing the recent trend from previous versions, upgrading is a breeze (and actually faster than ever). NEW FEATURES The list below is just

Type of constructors in java

In this post we will explain type of constructors in java and what is the difference between constructors and methods. What is a constructor Constructor is a block of code that initializes the newly created object. A constructor resembles an instance method in java but it’s not a method as it doesn’t have a return