Archives / 2016 / January
  • Builder desgin pattern

    Helo everybody,

    today I want to say few words about another design pattern: Builder.

    And that probably one of design patterns which I describe in words without using UML schema.

    As name implies, Builder is intended for building something. And what exactly it builds? It builds classes. Think about your life, when you build castle from the send on the seashore or oceanshore, do you pay for proffesional castle sand builder? Well you can do it, but as usually people play with it by themselves and don't pay for some kind of proffesional castle sand builder.

    The same is situation with classes instantiantion. If you have some kind of class, which has one, two, three paramethers, as usually you … more

  • Bridge pattern in C#

    Hello everybody,

    Today I want to speak about design pattern Bridge. 

    Before I'll continue, here is definition of bridge design pattern:

    Decouple an abstraction from its implementation so that the two can vary independently.

    Very easy to grasp? For me honestly talking wasn't. 

    I propose another definition:

    If your class need some kind of functionality that can be changed, you can inject this functionality as interface. And the question you can get for now, after reading my previous post about Adapter is what is difference between adapter and Bridge?

    Well, the main difference is that you have access to all code. Or in other words you need adapter, if you have some library, but if you … more

  • The Adapter Pattern

    Hello everybody,

    today I want to make post about one of design patterns which is called Adapter. There are many articles over the web about this topic, but I hope to bring some clarity in this area.

    Before I proceed any further, let me describe situation, when you can need it. One of the cases for consideration can be option, if you have your own class, let's name it A. And then let's say that there is some other class B, which has some needed function for you. For example like this:

    How you can deal with this? One of the common ways which many people do, is to use class be directly in your code. For example like this:

    Aggregate class B from class A in some kind of function, and do … more

  • Summary of my Acumatica certification

    Hello everybody,

    recently I was asked about my level of knowledge in Acumatica.

    Here I want to make short summary of my Acumatica certificates:


    T101  :





    Below also goes pdf editions of my certificates ( which I downloaded from ):

    T900 T101 T100 S400 T300 T200 more

  • deferred in AngularJS

    Mechanism of deferred objects, or if to be more precise the idea of deferred objects has been added to AngularJS from the library Q of Chris Cowan. Its essence lies in the fact that if a function can return a value or exception without blocking, it returns Promice object, which is an observer of the result of execution. Once a result is obtained or exception was raised, Deferred object notifies the observer.

    Quite often, before loading of the controller, controller needs to get data for its activities. Speaking of data acquisition, I mean data receival hich can last undefined amount of time. The most frequent case - is to receive data from a server application. To solve this problem we … more

  • $watch with controller as in Angularjs

    Hello everybody,

    today I want to write few words about interesting case which I faced.

    Recently my company asked me to follow code convention of John Papa according to which I shouldn't use in my controller code $scope, but instead use vm. 

    In code it looks like this:



        .controller(cnt, mosController);//register

    morningStarController.$inject = ['$scope'];

    and continuation:

    function mosController($scope) {    var vm = this;

        var settings = {};

        vm.settings = jsonSettings;

    Then question arise, how to use $watch or how to track variable?

    Below goes way of implementing it with help of $scope:

    var variable = 5;

    $scope.variable = variable;

    $ … more

  • SVG drawings

    Hello everybody.

    Today I want to share with you simple way to draw Mutual Style Fund box with help of javascript and svg in html5 with usage of module pattern of javascript. 

    Recently I had task to make at web site drawings with javascript. After some research I decided to use javascript and svg. Here is screenshot of result:

    You can choose scaling size and row and column to display.

    Here it goes html code:

    <!DOCTYPE html>




    <meta charset="utf-8"/>

    <script src="Scripts/jquery-1.10.2.js"></script>

    <script src="Scripts/MorningStar.js"></script>



        <script type="text/javascript">

            function Display() {

                var  … more

  • Module and revealing module design patterns in Javascript

    Hello everybody,

    today I want to propose you interesting comparison of two design patterns in javascript.  As you probably know, javascript doesn't have idea of public and private members. So in order to implement them some tricks are used. That is module and "revealing module".

    Take a look at samples of them:


    Revealing module

    var md = ( function(){

     var privateMember = “private”;

    return {

                publicMember : “publicMember”




    var md = ( function(){

     var privateMember = “private”;

     var publicMember = “publicMember”;

    return {

                publicMember : “publicMember”




    The difference is where are … more