Article of the week

Bash recursion examples - part 1

Bash recursion examples - part 1

15 Jan 2017 16:58:45


Some recursive Maths functions written in BASH.


Recursion in computer science is a technique based on two cases. One is non-recursive terminating case, the other, recursive. The former finds you the final solution, the latter reduces problem to the termination case. This is I guess the most important bit, one should ...

Read full article »

Recent articles

Compound interest in PHP part 1

20 Sep 2017 00:25:21

Compound interest in PHP part 1

In this article I look at how to write a reusable piece of code for finding compound interest and total accumulated value of deposit or loan in PHP programming language. Code developed here will become a basis to both a command line interface script and website form then. Since ...

Read more »

Validating user input with functions in PHP

09 Sep 2017 21:07:45

Validating user input with functions in PHP

User input validation is one of the oldest and most frequently occurring problems in computer programming. It crops up regardless of programming language and at almost every project. If not dealt with skillfully, in particular when larger amount of user input is involved, it ...

Read more »

Mapping numeric score to feedback message in PHP

06 Sep 2017 23:04:22

Mapping numeric score to feedback message in PHP

The other day I coded a sort of game in PHP programming language. One of it's features is a final score pop-up message, which consists of three parts. They are a number, a percent and a few words of a humoristic player performance feeback. The feedback is based upon the ...

Read more »

Traversing array from the middle in PHP

30 Aug 2017 15:51:20

Traversing array from the middle in PHP

Traversing an array starting from the middle item in it is in many ways similar to traversing it from the beginning or the end. One small catch is such that, the middle item, or to be more accurate, the middle index of the array, has to be found before the rest of job can be ...

Read more »