Posts

How to simplify your markup using IDs for anchors | Perishable Press

Use id's instead of name's for anchors.  There are a couple of advantages: Any element with an id can be targeted as an anchor, and many elements you would want to be a target already have an id for CSS styling, so you can both save space, and simplify the DOM. IE8 in quirks mode can't dynamically change the name of an <a>, it will instead create a new attribute submitName, which is not targetable as an anchor. How to simplify your markup using IDs for anchors | Perishable Press

Writing Efficient JavaScript: Chapter 7 - Even Faster Websites - O'Reilly Media

The performance of web pages can be dictated by the javascript, and the efficiency varies by browser.  While most modern browsers are pretty efficient at JS execution, browser such as IE8 can really slow down.  Using techniques that improve performance in Internet Explorer do also help other browsers as well, and can make web pages even snappier.  While with IE an improvement by a factor of three might be several seconds, even saving a tenth or two in Chrome or Firefox can improve the user experience. Writing Efficient JavaScript: Chapter 7 - Even Faster Websites - O'Reilly Media

Troubleshooting JavaScript

JavaScript errors can be tough to find.  Asynchronous execution, different browser behaviors and interaction with other scripts on the page can all result in problems that occur on some browsers, or are difficult to track down. Two ways to catch many of the most commons problems in JS are to simply make use of the  JavaScript "use strict"  option which works everytime you run the script.  The second, which is more labor intensive, is to use the JSLint tool.

Avoiding Software Commmon Weaknesses

The  2010 CWE/SANS Top 25 Most Dangerous Programming Errors  was just released. Many of these most common errors can be avoided by using Vortex properly in your applications. For example: The use of  parameters  when constructing SQL statements avoids SQL injection problems, as well as greatly simplifying code. Vortex removes the need to worry about buffer sizes and array indexes, preventing overflows. The default Vortex settings are designed to limit resource utilization when  crawling  and  searching . These can of course be changed to suit your needs. No programming language can prevent all errors, so you are encouraged to use the CWE/SANS list as a checklist when developing your application. If you have any questions about the functions that can help, for example by sanitizing input and output data, you can search our manual or call tech support.