Product Development Blog

Latest Post

Optimizing for loop in javascript

We normally don't pay much attention when it comes to writing simple loops and assigning variables.

Here I would like to show two ways of writing a simple code that alerts an array's value. 

var arr = new array("red","green","blue");
var len = arr.length;
for(var i=0; i<len; i++) {
	var value = arr[i];
	alert(value);
}

You could write the same script in a more optimized way

var arr = new array("red","green","blue");
for(var i=0,len=arr.length; value=arr[i], i<len; i++) {
	alert(value);
}

Posted by Sunil Lukose on Oct 22, 2008


sunil.lukose

Share/Save/Bookmark

Recent Posts

New Products to Improve the Customer Experience!

Posted by gregory.davis on Oct 14, 2008

This afternoon, Solid Cactus introduced three new products from the Product Development team. We’re looking forward to seeing the success of these latest products as our clients take advantage of the new or enhanced functionality they bring to e-commerce.
- The Interactive Site Content and Item Page:
Enhance your ability to provide frequently asked questions. [...]

Boot Camp Gets First Dibs

Posted by gregory.davis on Oct 9, 2008

This morning the Marketing and Product Development team unveiled new products for the Yahoo! Store. There were several great questions in the session and even some new ideas for products, which we greatly appreciated. It’s important to hear from our customers on what will make their lives easier and more importantly, make their [...]

Cool Javascript based site

Posted by Sunil Lukose on Oct 9, 2008

Recently I came across a site that was programmed fully using JavaScript. The whole site is single page and with the help of JavaScript you scroll around the site. It’s pretty well done and you should check it out.
Link to the site

Product Development

Posted by John Dawe on Oct 3, 2008

Product Development is the newest department at Solid Cactus.  Since the company was founded, Solid Cactus has been the number one developer of new features for the Yahoo! Merchant Solutions/Store platform.  This blog will take a look inside the process and minds of those responsible for the latest and greatest products from Solid Cactus.