Thread: Google Browser
View Single Post
  #16 (permalink)  
Old 09-02-2008, 08:04 PM
kgun's Avatar
kgun kgun is offline
WebProWorld 1,000+ Club
WebProWorld MVP
 
Join Date: May 2005
Location: Norway
Posts: 5,709
kgun RepRank 10kgun RepRank 10kgun RepRank 10kgun RepRank 10kgun RepRank 10kgun RepRank 10kgun RepRank 10kgun RepRank 10kgun RepRank 10kgun RepRank 10kgun RepRank 10
Default Re: Google Browser

C++ Old technology? It is todays "portable assembler".

You can even use inline assembler statements in that platform:

ASM { Your assembler statements here ..... }

You can even use C to reduce overhead, but ususally programming hours are more expensive than CPU hours.

Combining that with conditional compilation, you can make complex fast applications.

You don't know what you are talking about young man.

Take a look: C++ Builder 2009

This is promising from the features js file: http://tools.google.com/chrome/intl/...js/features.js

Code:
function getElementsByClass(searchClass, node, tag) {
 
   var classElements = new Array();
   if (node == null)
           node = document;
   if (tag == null)
           tag = '*';
   var els = node.getElementsByTagName(tag);
   var elsLen = els.length;
   var pattern = new RegExp('(^|\\s)' + searchClass + '(\\s|$)');
   for (i = 0, j = 0; i < elsLen; i++) {
           if (pattern.test(els[i].className)) {
                   classElements[j] = els[i];
                   j++;
           }
   }
   return classElements;
}
 
var current_feature = ''
 
// Toggles feature preview 
function showfeature(feature) {
   current_feature = feature
   featurethumb = document.getElementById(feature);
   featurepreview = document.getElementById(feature + '-preview');
That is good use of a regular expression class and it follows the W3C DOM standard.

Last edited by kgun; 09-02-2008 at 08:26 PM.
Reply With Quote