Skip to content

ProgramBuddy

Get To Know

  • About Me
  • EnglishEnglish
    • SlovenščinaSlovenščina
    • EnglishEnglish

Year: 2016

programming

Make Validation Explicit

Posted on December 25, 2016January 8, 2017

Does the following method have single responsibility?

programming

Separate Validation of Input Parameters With a Proxy

Posted on December 18, 2016January 15, 2017

Validation of input parameters are at the beginning of the method. If the method has code after validation, then it has not a single responsibility. How can we separate validation code for input parameters and rest of the code?

programming

Java Streams: Collector Instead of Constructor

Posted on December 11, 2016

Let’s create a class that it stores a list of values and it can compute some value based on stored values. Internally elements are stored in a List. When class is created form the list of values, we can create a collector for it. There is no need for public constructor.

programming

Test Execution Time

Posted on December 4, 2016December 4, 2016

Cumulative time is increasing by executing tests through time. Is every lost second important?

self improvement

How to Get Rid of Back Pain?

Posted on November 27, 2016November 28, 2016

Start practicing yoga.

programming

In-Memory Repository – Layered Repository

Posted on November 20, 2016November 27, 2016

Unit test is executed in less than half of the second. When we have an integration test which is using a repository that is connected to a database it will be executed in several seconds. With a repository, that has an implementation in-memory, tests will be executed faster. There are also other benefits.

programming

Entities With Attributes That Are Data Values

Posted on November 13, 2016November 27, 2016

Can entities have only attributes that are data values and aren’t collections? What is alternative?

programming

Code Without Tests

Posted on November 6, 2016November 27, 2016

You have a test coverage 90% or more but not 100%. You have tests that cover all exceptional cases. What about code that is not covered with tests?

programming

Do Tests Have to Be Written As Good As The Production Code or better?

Posted on October 30, 2016November 27, 2016

Without tests, you can’t know how the production code works. When you write a test for the production code, you define how the production code works. Latter you can easily change the production code with refactoring or rewrite. Do test have to be written as good as the production code or better?

programming

Entities As Immutable Objects

Posted on October 23, 2016November 27, 2016

Entities can be changed. Why represent them as immutable objects?

Posts navigation

1 2 3 Next

Categories

  • programming
  • self improvement

Archives

  • January 2017
  • December 2016
  • November 2016
  • October 2016
  • September 2016
  • August 2016
  • July 2016
ProgramBuddy > 2016
Proudly powered by WordPress | Theme: Sydney by aThemes.