Sunday, September 28, 2014

Software Industry in 2100



The Software industry is changing very fast and new technologies are emerging every day. The technologies that we used few years ago are outdated now what we are using now may be outdated in a few years’ time in the future.

In this fast-paced world, I just wanted to see (imagine) how the software industry will be in a 100 years, may be in 2100? To find an answer, let me fly along with the horse mind and let me share what I found there. :)



In 2100……..
I see loads of changes in the new era. Here are a few.

1)      Robots- Not only human engineers but robots also work in the software industry and there is huge competition going on between human and robots.

2)      Tools based development – Not like in the start of 21st century, all the software developments are based on tools means very less coding and more conceptualized.

3)      Action oriented programming – The object oriented concept and procedural language concept have ceased to exist and there is a new concept called “Action oriented programming” that has become famous in the software industry. “Action oriented” means all the common functions or actions have been implemented in tools and developers’ work is to identify them and may be a drag and drop will be enough.

4)      Upside down interview culture – In 2010, there were limited no of entrepreneurs and job hunting culture was to hire employees by conducting interviews. As the years pass by, now in 2100, no of employers seems to be more than the no of workers. So the current culture is to conduct interviews for employers and select a person who has the best work offer.

5)      Universalization - with the immense growth of space technology, the earth is now strongly connected with other planets such as Mars and Saturn. The software industries in Mars are willing to outsource to earth mainly for cost reduction.

6)      The largest universal airport – Sri Lanka, a small country in the Asia continent has seen incredible growth in space science and the world first space/universal airport has been built in Sri Lanka. The people from west, east and north have to come to Sri Lanka if they want to visit Mars. :)

Wish I got more time to stay in the imaginary world so I could have shared more with you. :P

Anyway let me fly back from the dream world and here I’m getting ready for my monday’s business. :)

Sunday, September 14, 2014

Compare software to human

Can we compare software to a human being? I would say “Yes” and here are my reasons.:) I’m going to use the term “product” which is common for both software and human. Please check it out and see if you can relate. I have given some possible explanations for some of the points at the end.


  • Only the creator knows the internal details especially with the complex versions.
  • The more a product is networked the more it will be vulnerable to any virus or malicious attacks.
  • Some products will have amazing look and feel but no great functionalities inside.
     Some products will not have an impressive look but would have some extraordinary   functionalities.But, in general, all the products will have some special functionalities with a good look.

  • At the very beginning stage, the product might seem bug-free but when we start interacting with it only we will get to know all the issues in it.
  • There should be at least two (types of) products linked together to make it look like a complete product.
    1. Front end
    2. Back end

          Front end - It can work alone ideally but won’t be much useful without a strong backend support.
          Back end – This too can work alone but it will not give a “whole product” feeling.

  • Most of the products are made with a particular set of functionalities and they are not meant to cater any other functionalities.
       But in some exceptional cases, some products come with “All in one” functionality.

  • No product is perfect. Every product has its own set strengths and weaknesses. The amount of defects in each of them may vary.
  • Some products will be compatible with many other products and will be able to communicate with them. But some of them have limited compatibility and narrowed communication channel.
  • After a certain time period, the product will be expired and either it will be disposed or it will be rewritten as a solely new product with the very same concept


     Let me explain some of the terms/concepts I used.

     "Complex versions"- Hope you know the very famous complex versions in the world. That is “women”  :)

      "At the very beginning stage"- infant-hood. Having said that new born baby is pure in the heart.
       As per my understanding, we all are born with some talents as well as some defects.
       And when it comes to software when you start using it only, all the issues will start to pop-up.

     "Front end"- Woman
     "Back end"- Man
     You could put it in the other way as well .It is debatable.

     “Communicate with many other products”- Some people are very out-going and    friendly.
      But some are bit reserved types. Again that is a design issue

     “Either it will be disposed or it will be rewritten as a solely new product with the very same concept.” –
     I have given both options because some people do believe in the concept of life after death
     but some do not.

               “Either it will be disposed” – The death will be the end of the journey.

               “Solely new product with the very same concept”-
                With reincarnation, the soul will get a new body in  the  next  birth.

Sunday, August 31, 2014

Performance analysis of a shopping process


I wanted to try something a bit different and here is my “so called creativity”. :)

Before I go into the story I just want to introduce a term called “Performance analyst” which I’ve never heard under software job titles  here in our country(It must be a sub category under software quality engineering anyway)but let it be an imaginary one where software  performance and cost factors will be analyzed.

A software engineer (male) is asked to go for a grocery shopping and once he comes back to home, his wife who is an experienced and exceptional performance analyst gives him a detailed report on how effective the shopping process was.


Here is the report

Dear XXXX,

The overall performance of the shopping process was quite ok and all the assigned tasks have been completed. But there are few concerns let me point them out.

     Time consumption - The grocery shop is only X km away from here and you have taken a taxi when returning. So it would have taken only Y mins even if you crawl from home to the shop and to come back. It seems some additional processes like sighting girls on the way or at the grocery shop which is completely irrelevant to the given task were going on and it should be avoided in the future to achieve the super performance.

     Cost - effectiveness – The costly wheat flour that was bought violates the policy on cost effectiveness. I would like enforce the idea here again that whatever we buy should be in a high quality with a reasonable price. We cannot afford to go for the costliest brands. 

     Cost of Transport – The taxi has been used to carry the items to the home which is considered to be the cheaper way normally but not in today’s case.
As a normal taxi was taken rather than meter taxi, again the best possible option was not considered and it costed x bucks more.

    Selection of best providers -. Fruits were not in a very good condition which could have been avoided by going to some other place. It is great to buy everything at one place but it is not quite practical and we need to be aware of the specialized providers. 

    Quality– The vegetables seem to be affected by worms and extra care must be given on finding worm free veges.

Please keep these concerns in the mind and please make sure that you will get a highly positive feedback on your next shopping process.



Monday, August 4, 2014

Angular JS vs Ember JS

 There are wide varieties of java script frame works used in the software industry nowadays. While I was learning one of those frameworks called “Angular JS” I got to know a bit about one other framework called “Ember JS”. I have played a bit around angular code but when it comes ember JS I’m yet to go into detail of how to implement/ how to write code in ember JS.

Anyway let me share what I have found on “Angular JS vs Ember Js”. And this basic understanding might help us to choose among multiple available frameworks.

Common features of Angular and Ember

1)      Two way binding- In two way binding the view and the model is fully synchronized. That means when we update the view the model will be updated automatically and vice versa. Only a few java script frameworks support two way binding and angular & Ember are among them.

2)      Routing support – Angular and Ember both support routing but having said that Ember has a robust routing process.

Strengths of Angular JS
  1.  Clear separation of view and model- Our html code and java script code is not mixed as in Jquery.      We  put the script logic/model in separate file(s) and bind them to the html using some angular tags called “directives”.
  2.     Code Expressiveness – There is a feature called “Template expanding directives” in angular which helps developers to move a part of html code to a new html file and allow us to load that sub html file dynamically in the main file. This increases the readability of the code. And it makes the code reusable.
  3. Simple bootstrapping- Angular has the simplest bootstrapping process of any modern framework I can think of. Just include one JS file, and add an ng-app directive to the page and you're in business.   
  4. Constructor-based Dependency Injection- This framework is built around its own IOC container that actually uses a pseudo-constructor-based DI approach that is generally preferred by developers from most contemporary backgrounds (such as Java or C#). This makes Angular highly testable, as well as providing the ability for Angular to easily detect circular dependencies.
  5. Reusable components –Please refer the second point #2 above. 
  6. Easy to learn
Strengths of Ember JS
  1.  Standard code – In angular the developer has more flexibility and the developer might end up writing in-efficient or not so good quality code. But in Ember JS the frame work itself forces us to write a good code.
  2.  Support for old browsers
  3.  Robust routing 
  4.  Convention over configuration- Ember uses convention to help the developer organize their code. For example, a route named "test" would automatically look for a "test.js" file under the controller’s directory, and a "test.hbs" Handlebars template under the templates directory. Likewise with files for models and the route itself.

When we consider the performance of the application, theoretically it is said that Ember is better than angular because of its two way data binding process.

Angular uses a mechanism called “Dirty checking”.

What is dirty checking and how it’s done in angular application?

               Like we have private, public and other scopes in our programs, there is a concept called scope in angular too. It’s basically the same as our DOM structure. When an angular application loads, all the directives (angular binders which used to bind the behavior to the view (html) file) will be registered to the particular scope ($scope) and watch ($watch) will be created to watch all the expressions (fields) inside the scope. When an event like key down (typing some input) or click is detected the event will be passed to the angular context and it will trigger a process called “digest cycle” which will check the current values of the objects with the previous set of values (angular keeps track of old values of data) and if there are any changes it will call the update process. The issue with this approach is every time it’s going to go through the loop of all objects in the scope and do the check where we might expect a performance problem.

In Ember JS it doesn’t use dirty checking but it uses assessors and change listeners to update the changes in two way binding.

Even though dirty checking approach seems inefficient having said that if we have more than 2000 objects in a page only we may experience/notice the performance issue and in most of the practical applications it may not be the case. Anyway there are several ways to overcome this. One is to identify that kind of situations and use non-angular way to do the binding there.

You may refer these links


 
Hope this gave at least an idea about angular and ember.