Code Maven

Search for '{{search_term}}'

CMOS is the Code-Maven Open Source podcast that also includes video interviews. Subscribe to this feed RSS feed with your Podcast listener app or via iTunes iTunes.

Welcome to the Code Maven!

Programming Exercises for any language.

For now, just read the articles...

If you want to make sure you don't miss any new articles, you can subscribe to the Code Maven newsletter, follow via atom feed, Twitter, or even my Google+ account.

Filters in AngularJS

Filters in AngularJS have two major uses.

Some filters work as the map function in Perl, Python, Ruby, JavaScript and in many other languages. They allow us to apply some transformation to one or more values at once. Among many other things this can be used to change how a single value is displayed.

Other filters are similar to the grep function in Perl, which is called select in Ruby, and filter in Python and JavaScript. These filters usually apply to a list of values and return a subset of the original values. They filter out certain values using some condition.


Filters in AngularJS


Quality and Value

We talk a lot about creating high-quality (software) products or services, but it is not evan clear what do we mean by quality. Maybe what we should really talk about is creating value. But to whom? To the client? To the shareholder? To the employees?

On this page I am collecting some concepts and links related to the subject. In time I hope this will be transformed into something usable.


Quality and Value


Count number of lines in a file and divide it by number of seconds in a day

This title might sound strange with two unrelated tasks, but there is a story behind it. I was working on some data processing application that was converting files to some other format. After checking the code, I found that it takes about 1 second to convert a single file and I wanted to know how long will it take to convert all the files.


Count number of lines in a file and divide it by number of seconds in a day