Tuesday 5 March 2013

10 Tips Make Embedded-System Code Easy to Maintain



 In the rush to get a product out the door, programmers often ignore code maintenance — a key aspect of application development. For applications with short lives, this rush may not pose a significant problem because once deployed, no one will touch the code again. Embedded systems applications, however, may have lives that span decades, and early coding mistakes can result in significant bug-fix and update costs later on.

You must consider code maintenance during design and implementation of software for an embedded application that will have a long life. The following ten tips do not constitute a complete list, but they address common issues that can give the team that maintains your application cause to curse your name. And you may be part of that team:

1. Avoid assembly code.

On a low-end PIC microcontroller (MCU), you have no choice but to use assembly language, and on a high-end ARM processor you probably do not need it. Between those processor extremes, many programmers may use assembly language to increase performance and to reduce code size. But using assembly-language code can derail your project and set it back months.

Assembly language lets you directly access a machine’s functions, but the difficulty of understanding just what happens in assembly language code can overshadow the performance gains you hope to achieve. For this reason, people developed higher-level languages such as C and Java. Always treat assembly language code with suspicion, because it can easily violate the “safety” features built into higher-level languages.

If you must use assembly language, include verbose comments that will save time and reduce frustration when someone examines your code. Use comment blocks of assembly-language code that include no more than five or six instructions. Ideally, use pseudo-code in comments to describe the operation of an algorithm.

Create Your Best User experience (UX) Design for eCommerce

User experience (UX) is the overall emotional feeling a user gets after interacting with a product or website. It’s also an important factor in turning browsers into buyers. Give online shoppers a convenient, intuitive, enjoyable experience, the collective wisdom goes, and they’re more likely to buy.



So how can you optimize the UX for your customers? Here are four tips from Magento eCommerce design experts Something Digital:

1) Let shoppers browse their way – Create an intuitive navigation structure and add breadcrumbs so shoppers can navigate back to main pages. Include comprehensive search tools, with multiple ways to filter and sort; incorporate options for viewing product results.

2) Give products the spotlight – Provide shoppers with multiple views of each product; include as much detail about each product as possible (size, material, weight, etc.); show related products, up-sells, and cross-sells on the same page; enable wish lists, sharing, and notifications; display product reviews and ratings.

3) Highlight “calls to action” – Add primary and secondary action items (examples: sign up now, shop now, enter now) to the homepage; include at least one call to action on every page (examples: add to wishlist, read reviews); use active language to describe the action and differentiate between primary and secondary action items using caps and bold fonts.

4) Streamline the checkout process – Make the shopping cart clearly accessible from every page; show all fees in shopping cart (shipping plus estimated tax, for example); allow customers to buy without creating an account; make checkout a single page, with fewer forms for fastest completion.


For more information visit : http://www.magentocommerce.com/blog/comments/ecommerce-tips-create-your-best-ux/