15 Aug 2016
Writing unit tests is divided into two categories: TDD (Test Driver Development) and BDD (Behavior Driver Development). But, first let me write some things about its importance positive or negative.
When I get a requirement I dive into the implementation previously having the design of the classes and the databases in mind or simple wrote on paper. Nobody has time for writing tests. That’s the first mistake I usually make. Before the requirement is finalized it is being estimated together with business analysts and managers. So, having in mind that we need to put some extra hours for the writing of tests, the estimations might become bigger and scare the client, even more don’t accept that release since usually developers are charged by hours.
Continue reading...
20 Jul 2016
We have multiple ajax requests that need to be executed one by one. Each of the ajax requests is run after the success of the previous ajax. This usually happens when we want to get something from API, display some information and do another action and so on in multi nested levels.
Continue reading...
04 May 2016
Where are we with functional programming and should that improve code quality. It sure is interesting. This is how I understand it. Functional programming is based on immutability and statelessness. The first means the function doesn’t change anything, it gets data and returns some other data (data in - data out) and statelessness which means it doesn’t depend on anything previous as if it is declared in separate file.
Continue reading...
11 Apr 2016
There are different ways developers, managers, people involved in the project divide the work between themselves in order to be more efficient, usually assigning tasks to what the person is most comfortable with.
Continue reading...
08 Jul 2015
Basically I have couple of ways to build a form with a lot of inputs, maybe that won’t be the best practical solution but let’s just see where I am going with this.
In one tr I have at least 20 inputs, it maybe be more and I want to multiply that by 1000. Solutions based on JavaScript are done using jQuery. These are the scenarios I have tried:
Continue reading...