Thursday, 7 August 2014

Code Quality = Save Processor + Save Memory + Optimize Storage

Is anyone having a justifiable definition of Code Quality? We don't think there is a good definition, and We see plenty of bad definitions. There are many definitions for Correctness. But don’t be nervous we have correct examples of code ethics.


Our definition of code ethics is term used to depict the speed and programming methodology used in developing codes for software. Code is directly linked with algorithmic efficiency and the speed of run-time execution for software.


Let’s make it simple, in simple words code must be Economical. No worries we will elaborate you more.

The code should make reasonable use of system resources: Storage, Memory and Processor. To run any software system must require Storage, Memory and Processor resources. What we mean by code ethics or code quality is code which use less resource of system. A code which less occupy system resource in order to Processor, Memory, Storage is a code of ethics.

Please have a look at simple two PHP conditions examples both conditions perform same operations and same result. But both conditions occupy different bundle of system resource. Let’s have a look.

  •  Normal Case 
 $num = mysql_num_rows($qResult);  
 $i=0;  
 echo "<table>"  
 while($i < $num)  
 {  
 if ($i % 2 == 0){  
 echo "<tr class='style1'>";  
 }  
 else{  
 echo "<tr class='style2'>";  
 }  
 echo "<td>" . mysql_result($qResult,$i,"lastName") . "</td>";  
 echo "<td>" . mysql_result($qResult,$i,"firstName") . "</td>";  
 echo "</tr>";  
 $i++;  
 }  
 echo "</table>";  

This condition occupies more system resource in order to Processor, Memory, Storage so as structure and result wise code is been good while as a run-time execution speed of software is not well as second condition.
  •  Quality Case 
 $nTotalRecord = mysql_num_rows($qResult);  
 $nCount=0;  
 $aRowClass = array('style1'=>'style2','style2'=>'style1')  
 $sRowClassName = 'style1';  
 echo "<table>"  
 while($nCount < $nTotalRecord)  
 {  
      echo "<tr class='$sRowClassName'>";  
      echo "<td>" . mysql_result($qResult,$nCount"lastName") . "</td>";  
      echo "<td>" . mysql_result($qResult,$nCount,"firstName") . "</td>";  
      echo "</tr>";  
      $nCount++;  
      $sRowClassName = $aRowClass[$sRowClassName];  
 }  
 echo "</table>";  

This condition occupies less system resources in order to Processor, Memory, and Storage so run-time execution speed of software will be faster than first condition. This is what we mean by Economical code.

Good quality code, especially in the final product, can sometimes mean the difference between success and failure. Simply "fast" is also a measure of quality

I hope that this post has given you an insight how to write conditions into your own projects.

Like it or not you are what you code!

Stepin Solutions is a community of people passionate about quality. We use our experience and ideas to make over work better.

To know more interesting things  and about Stepin Solutions please visit us.

 www.stepin-solutions.com


Tuesday, 9 April 2013

Stepin Family moves to NEW HOME!!!



It is altogether a different feeling when a family moves to new home. It brings new energy, motivation and a sense of satisfaction. Precisely the same thing happened with Stepin family when we moved to our new work place on 4th April, 2013, Thursday.  We are proud to own a work space which is nearby the city’s corporate base and within the vicinity of the spiritual and holy temple of Lord Krishna. 



After a month long effort by our team with enjoying all odds that came in between, we together have developed a floor into a premise with enhanced amenities, bigger occupancy and above all a place which we have cultivated with our love and affection. When we Stepped in, we could feel the love that team has poured in. It is nothing short then fun to work in a place which is filled with love. It is really a second home for us.







When we say our team as Family, it just cannot be completed without our parents. They are the ones who have brought each of us to the level where we are today and we needed their blessings before we move to our new workplace. Parents’ obviously have shared their blessings for Stepin family but on top of it, we have came up with a unique POST BOX where team and their parents can share the emotions they wanted to share with their each other since long but just couldn’t do so till now for some reason. And to everyone’s surprise, POST BOX letters literally brought tears of joy in everybody’s eyes. It was the time where everyone came closer to each other and got associated emotionally. Strange, but this is how Stepin Solutions operates and would love to operate.












Overall the inauguration event was lifelong memorable event for us. We hope and pray that our new workplace brings prosperity and happiness. If you happen to be near to S.G. highway, Ahmedabad at any time, just drop in. We would definitely like to host you.