Tuesday, May 15, 2012

Google try improving Web with Dart & new JavaScript classes

Google try improving Web with Dart & new JavaScript classes

SpinChimp - The Professional Spinner


These days Google is working hard on various advanced programming technologies to ease the stress on complex web application development. All recent developments were announced by Google engineers at a conference for software developers.

Web is turning into the run time integration platform for real components. This is why Google is working on different projects to bring some advanced software engineering concepts to the real web. The basic idea is to launch low level control elements without making the Web stack more complex for novices.

Cascading Style Sheets has its own limitations for design

Much of the power of the web lies in its ease of use. Mobile app developers can view and reuse source code. Browsers also tend to forgive errors and technologies such as CSS offers simple ways to perform complex work like formatting text.
But, more habit of convenience restricts the developer in terms of expression.

The issue with CSS is that you are not able to poke I and construct your own style of line. With CSS you can get same text layout on all the web sites. Thus, you have the same design because you have same constraints.

Efforts made by Google

Google is working on inclusion of unified component model, adding classes to JavaScript and even developing its own language for complex Web application development. By introducing unified component model for web technologies, Google is setting a stage for web application developers to develop new instances of an element and do things with it.  

Getting JavaScript for supporting classes

It is also reported that Google engineers have proposed to add classes to the next version of JavaScript. A core element of object oriented programming classes is blueprints for reusable chunks of data and behaviors. Usually, JavaScript does not support classes. Therefore, many JavaScript programmers tend to use function calls to describe many chunks of operational code that are not in real functions such as methods and constructors. This is a time consuming work and also make code unfit for reusability.

New language by Google called Dart

The current programming languages are hard to scale when creating heavy and complex applications for the Web. The Dart aims at providing an easy way to create small web applications while having support for large, complex applications as well.
 


These days Google is working hard on various advanced programming technologies to ease the stress on complex web application development. All recent developments were announced by Google engineers at a conference for software developers.

Web is turning into the run time integration platform for real components. This is why Google is working on different projects to bring some advanced software engineering concepts to the real web. The basic idea is to launch low level control elements without making the Web stack more complex for novices.

Cascading Style Sheets has its own limitations for design

Much of the power of the web lies in its ease of use. Mobile app developers can view and reuse source code. Browsers also tend to forgive errors and technologies such as CSS offers simple ways to perform complex work like formatting text.
But, more habit of convenience restricts the developer in terms of expression.

The issue with CSS is that you are not able to poke I and construct your own style of line. With CSS you can get same text layout on all the web sites. Thus, you have the same design because you have same constraints.

Efforts made by Google

Google is working on inclusion of unified component model, adding classes to JavaScript and even developing its own language for complex Web application development. By introducing unified component model for web technologies, Google is setting a stage for web application developers to develop new instances of an element and do things with it.  

Getting JavaScript for supporting classes

It is also reported that Google engineers have proposed to add classes to the next version of JavaScript. A core element of object oriented programming classes is blueprints for reusable chunks of data and behaviors. Usually, JavaScript does not support classes. Therefore, many JavaScript programmers tend to use function calls to describe many chunks of operational code that are not in real functions such as methods and constructors. This is a time consuming work and also make code unfit for reusability.

New language by Google called Dart

The current programming languages are hard to scale when creating heavy and complex applications for the Web. The Dart aims at providing an easy way to create small web applications while having support for large, complex applications as well.
 

Decrease website lag time and improve the overall website functionality with the use of javascript and preloaders.

Preloading Images on Your Website with Javascript
Fast-loading pages reduce errors, conserve bandwidth, and please visitors. One way to decrease loading times and enhance performance involves maximizing image display efficiency. Your mantra for achieving image efficiency should be "reuse, optimize, and preload." While each of these methods plays an important role, we will focus on methods for preloading images.

What javascript does is allow you to start loading the images in the HEAD section of your page, which means that with this technique (unless the images are large or great in number) your viewers will have the necessary images in their browser's cache before the script starts to run. Therefore, an image rollover will be less likely to make the viewers wait for the browser to download the second image, because it is in their browser's cache.

To get this going, you need to have a small section of script in the HEAD section of your page.

Here is a sample of a script that preloads a single image:

First let me explain what is going on. In the first line we are declaring a new variable "Image01" and telling Javascript that it is of type Image with a width=width and a height=height. In place of "width" and "height" you would enter the dimensions of your image in pixels minus the "px" and quotation marks. For example:

//Image width=225px and height=40px Image01 = new Image(225,40); //Image relative URL is image01.png Image01.src = "image01.png";

A simple and effective method to get you started on your preloading campaign. However with anything simple it is not too effective. There is a chance your viewer will come through with an older browser which doesn't support the image object. So, to be on the safe side you may wish to implement a form of browser or object detection to keep from creating a javascript error on older browser. Object and browser detection are outside the scope of this article but I will provide a quick demonstration.

I will utilize object detection for simplicity in this article. We want to know if the image object exists, which is known in javascript as "document.images". We simply need to check whether or not this object exists using a simple if statement, if the objects exists then we run our preloader, if it does not we do nothing and let the webpage load as it would. We take our previous code and make one simple tweak:

All we are doing is stating if document.images exists then we want to perform the following instructions. If it does not then we do nothing. Here we have it, a simple and effective preloader with the ability to check for Javascript compatibility.

Our next issues is what if we have multiple images to preload. We could go about this in two manners. The first is simply taking what we have already done and repeating it as so:

It works but is not ideal for my needs and it becomes rather tedious especially when dealing with a large number of images. Therefore, we need to find a simple and effective method that lends itself to being both scalable and reusable.

In our example we added a few new elements. Firstly we created a variable "i" that is our counter and set it value to zero. Next, we created a new object "imageObj" that is a place holder for images we wish to load. We created an array "image" to hold the name of our images we wish to preload. Finally we added a counter that cycles through our array and loads the images.

The code is fully scalable, we can use for one image or one hundred images. The only things we have to add or change are the elements in the array and the number "i" is less than or equal to. There you have it, we have our Javascript preloader.

Android Javascript

Jon Stark's new book. We love this series --- its brought a tonne of positive attention to the PhoneGap project. =) Building Android Apps


These days Google is working hard on various advanced programming technologies to ease the stress on complex web application development. All recent developments were announced by Google engineers at a conference for software developers.

Web is turning into the run time integration platform for real components. This is why Google is working on different projects to bring some advanced software engineering concepts to the real web. The basic idea is to launch low level control elements without making the Web stack more complex for novices.

Cascading Style Sheets has its own limitations for design

Much of the power of the web lies in its ease of use. Mobile app developers can view and reuse source code. Browsers also tend to forgive errors and technologies such as CSS offers simple ways to perform complex work like formatting text.
But, more habit of convenience restricts the developer in terms of expression.

The issue with CSS is that you are not able to poke I and construct your own style of line. With CSS you can get same text layout on all the web sites. Thus, you have the same design because you have same constraints.

Efforts made by Google

Google is working on inclusion of unified component model, adding classes to JavaScript and even developing its own language for complex Web application development. By introducing unified component model for web technologies, Google is setting a stage for web application developers to develop new instances of an element and do things with it.  

Getting JavaScript for supporting classes

It is also reported that Google engineers have proposed to add classes to the next version of JavaScript. A core element of object oriented programming classes is blueprints for reusable chunks of data and behaviors. Usually, JavaScript does not support classes. Therefore, many JavaScript programmers tend to use function calls to describe many chunks of operational code that are not in real functions such as methods and constructors. This is a time consuming work and also make code unfit for reusability.

New language by Google called Dart

The current programming languages are hard to scale when creating heavy and complex applications for the Web. The Dart aims at providing an easy way to create small web applications while having support for large, complex applications as well.
 

Decrease website lag time and improve the overall website functionality with the use of javascript and preloaders.

Preloading Images on Your Website with Javascript
Fast-loading pages reduce errors, conserve bandwidth, and please visitors. One way to decrease loading times and enhance performance involves maximizing image display efficiency. Your mantra for achieving image efficiency should be "reuse, optimize, and preload." While each of these methods plays an important role, we will focus on methods for preloading images.

What javascript does is allow you to start loading the images in the HEAD section of your page, which means that with this technique (unless the images are large or great in number) your viewers will have the necessary images in their browser's cache before the script starts to run. Therefore, an image rollover will be less likely to make the viewers wait for the browser to download the second image, because it is in their browser's cache.

To get this going, you need to have a small section of script in the HEAD section of your page.

Here is a sample of a script that preloads a single image:

First let me explain what is going on. In the first line we are declaring a new variable "Image01" and telling Javascript that it is of type Image with a width=width and a height=height. In place of "width" and "height" you would enter the dimensions of your image in pixels minus the "px" and quotation marks. For example:

//Image width=225px and height=40px Image01 = new Image(225,40); //Image relative URL is image01.png Image01.src = "image01.png";

A simple and effective method to get you started on your preloading campaign. However with anything simple it is not too effective. There is a chance your viewer will come through with an older browser which doesn't support the image object. So, to be on the safe side you may wish to implement a form of browser or object detection to keep from creating a javascript error on older browser. Object and browser detection are outside the scope of this article but I will provide a quick demonstration.

I will utilize object detection for simplicity in this article. We want to know if the image object exists, which is known in javascript as "document.images". We simply need to check whether or not this object exists using a simple if statement, if the objects exists then we run our preloader, if it does not we do nothing and let the webpage load as it would. We take our previous code and make one simple tweak:

All we are doing is stating if document.images exists then we want to perform the following instructions. If it does not then we do nothing. Here we have it, a simple and effective preloader with the ability to check for Javascript compatibility.

Our next issues is what if we have multiple images to preload. We could go about this in two manners. The first is simply taking what we have already done and repeating it as so:

It works but is not ideal for my needs and it becomes rather tedious especially when dealing with a large number of images. Therefore, we need to find a simple and effective method that lends itself to being both scalable and reusable.

In our example we added a few new elements. Firstly we created a variable "i" that is our counter and set it value to zero. Next, we created a new object "imageObj" that is a place holder for images we wish to load. We created an array "image" to hold the name of our images we wish to preload. Finally we added a counter that cycles through our array and loads the images.

The code is fully scalable, we can use for one image or one hundred images. The only things we have to add or change are the elements in the array and the number "i" is less than or equal to. There you have it, we have our Javascript preloader.

JavaScript is the scripting language of the Web. JavaScript is the workhorse of the common Internet page. It is used to carry out the higher, more advanced functions inherent to more and more of today's web pages. JavaScript is used in millions of Web pages to add functionality, validate forms, detect browsers, and much more. The main benefit of JavaScript is to add additional interaction between the website and its visitors with just a little extra work by the web developer. JavaScript allows industrious web masters to get more out of their website than HTML and CSS can provide.

JavaScript is Object Oriented, meaning that you create an object with a certain set of properties that does a certain thing. You then re-use it as many times as you have a need for. This object oriented architecture is what all new and semi-new languages are migrating to - it solves many of the problems of the older "inline" languages which start processing from the top and work down the list of commands.

These inline languages are slow and tedious, and are of limited capability. Object Oriented languages solved the problems inherent to this form of programming by making its objects available to the rest of the script.

JavaScript is used in Web site development to do such things as:

Automatically change a formatted date on a Web page Cause a linked-to page to appear in a popup window Cause text or a graphic image to change during a mouse rollover

Benefits of JavaScript

associative arrays loosely typed variables regular expressions objects and classes highly evolved date, math, and string libraries W3C DOM support in the JavaScript

Hire JavaScript developers can build powerful and reliable JavaScript applications including websites and portals to boost your esteemed online business in today's competitive online business environment.

JavaScript development team can develop dynamic and interactive website for your online business according to your requirements. They are masters in developing web portals, content management system (CMS), collaborative networking systems, shopping carts, API Integration and numerous web applications.

Hire JavaScript developer creates professional application architecture and develops websites which are fully optimized, efficient and scalable.

Hire JavaScript developers are experts in improving the volume or quality of traffic to websites from Search Engine.

0 comments:

Post a Comment