Home » Software Development (page 10)

Software Development

How to Remove Leading/Trailing White Space from a String in SQL Server? LTRIM, RTRIM Example

Unlike Java, Microsoft SQL Server 2008, 2012, 2014,  and even the latest version don’t have a built-in trim() function, which can remove both leading and trailing space from the given String. But, SQL Server does have two built-in functions LTRIM() and RTRIM() to remove leading and trailing space. The LTRIM() function removes space from the left side of String so you ...

Read More »

When microservices becomes darkservices

Micro services is great and many company comes and talk about it on how it is used for scaling team, product etc Microservices has dark side also and as a programmer you should know about it before going on ride. In this post i will share some of the myths/dark side about micro services We needs lots of micro services ...

Read More »

How to Format a Large Code Base Automatically

If you introduce code formatting rules retroactively, you have to solve the problem how to format existing code base according to the new formatting rules. You could checkout every code repository one by one in your IDE and click on Autoformat the whole project. But this is boring and waste of time.   Fortunately, Intellij IDEA has a format CLI ...

Read More »

Mocking as a Design Tool

Mocking is still a point on contention among TDD practitioners. The biggest complaint is that when we use mocks the tests end up knowing too much about the internals of the module under test, making it difficult to refactor in the future. Because of that, a common recommendation is to avoid the use of mocks and only use them as ...

Read More »

The Functional Style – Part 5

Higher-order functions I: Function composition and the Monad pattern. What is a higher-order function? In the previous article we saw several examples of functions as first-class citizens and some of the kinds of uses they can be put to. Just to recap, a function is a first-class citizen when it is a value in its own right, and can be ...

Read More »

Practicality: The Key to Learning New Languages

With the rapid development of programming, everyone is focused on becoming the fastest learner. So what’s the correct approach to learning? Being practical. Being practical means to practice what you’re learning, to learn by doing. Say you want to learn how to cook. Being practical isn’t looking up videos on YouTube on how to cook or reading some chef’s recipe ...

Read More »

Architecture Decisions in a Software Development Team

Every type of work needs some structure for things to go smoothly. In software development projects, an important part of this structure is the architecture of the software we’re building. Architecture describes the building blocks of our software and how they work with each other. If every team member builds the blocks as he or she thinks best, it may ...

Read More »

Behavioural Design Patterns: Command

Previously we used the Chain of Responsibility pattern in order to handle a complex problem with road incidents in a region, solving the problem in the first place or forwarding it to another incident handler. The command pattern is quite different to the cor pattern since it helps us in order to delegate an action/request to another object capable of ...

Read More »