Flag Arguments
Flag Arguments are bad programming practice. Well known experts like Martin Fowler and Robert C. Martin denounce using Flag Arguments, and advise to avoid them at all cost.
In this blog post, we will be walking through a sample code which uses Flag Argument, and see why it’s a code smell. Then the bad code will be refactored to follow the SOLID principles.
Java Function Chaining
Functional programming, being a subset of declarative programming, offers several constructs and
function chaining
is one of them.Java function chaining leads to very concise and readable programs, and we are going to see an example of using the function chaining construct.
Working with SQL queries
In many of my projects I extensively use simple sql queries to work with data. Many of these queries are related to grouping the data, joining the tables or finding the top n results.
In this repository blog, I am going to present few simple customer/salesperson tables and write some sql queries show casing the usage of group by, join clause.
Page: 1 of 1