StudentShare
Contact Us
Sign In / Sign Up for FREE
Search
Go to advanced search...
Free

The Pros and Cons of Different Scripting Languages - Essay Example

Cite this document
Summary
Not so long ago, the Internet was mostly the province of academics and programmers, and the World Wide Web was a vague idea in the minds of a few researchers. Today both are experiencing explosive growth and unparalleled interest…
Download full paper File format: .doc, available for editing
GRAB THE BEST PAPER97.9% of users find it useful
The Pros and Cons of Different Scripting Languages
Read Text Preview

Extract of sample "The Pros and Cons of Different Scripting Languages"

The Pros and Cons of Different Scripting Languages Introduction Not so long ago, the Internet was mostly the province of academics and programmers, and the World Wide Web was a vague idea in the minds of a few researchers. Today both are experiencing explosive growth and unparalleled interest. Web pages are being created at an astonishing rate. The fundamental challenge of Web page development is that while it is easy to create a Web page, it is more difficult to create an attractive and exciting one. HTML, the markup language that describes the appearance of a page, is easy to learn, and requires no background in programming. HTML has undergone several revisions in order to meet the expanding needs of Web page authors. However, there are limits to what can be achieved inside HTML. The Java programming language was introduced to dramatically extend the Web developer's set of tools, but is still more complex than HTML. Java is very easy to learn; however, like most programming languages, it isn't easy to master. In this context more and more scripting languages surfaced around the WWW. Some of the most popular scripting languages that will be discuss in this report are: JavaScript, CSS, XML, XHTML, and PHP. This report will also discuss XSL as emerging technologies. JavaScript JavaScript offers the Web page author a new level of sophistication without requiring him to become a programmer. JavaScript brings dynamic and powerful capabilities to Web pages, yet JavaScript is no more difficult to learn than HTML. JavaScript can be used to solve common problems, such as validating forms input, and can also be used to create dramatic and visually appealing content, which would be impossible with HTML. The Pros -JavaScript is an object-based scripting programming language based on the concept of prototypes, like Visual Basic and C. -JavaScript has a C-like syntax so if a programmer already know C, which is the introductory computer language for beginners in most cases, if would be very easy to learn JavaScript. -JavaScript extends the capabilities of an HTML web page. -JavaScipt can be used to write functions that are embedded in an HTML pages, which interacts with the Document Object Model (DOM) of the page. DOM is an API that represents an XML document as a tree. Each node of the tree represents a piece of the XML document. Through these interactions, tasks that are not possible in static HTML can be performed such as opening a new window, checking input values, changing images as the mouse cursor moves over, and many other web interactions. -Client side input validation, computation and processing through JavaScript can minimise the load on the web server's processing and thus affects the overall performance of the website. The Cons -Interfaces in various browsers differ and do not always match the W3C (World Wide Web Consortium) DOM standards and different browsers expose different objects and methods to the script. This means that JavaScript functions will not run in other browsers different from where the script is written. The most probable and necessary solution is to write different variants of a JavaScript function for the various browsers, which in this case very time consuming. Another solution is to extend the capability of the browser with plug-ins, Java applets, or other external applications. These programs may or may not make their objects available to JavaScript. -Unlike a full pledge language like Java and C, debugging (finding and tracking errors) in JavaScript is exremely difficult since errors in JavaScript only appear in run-time, and since JavaScript is interpreted by the web browser as the page is viewed. In this case, it is common to spend a great deal of time debugging the code. Cascading Stylesheets (CSS) CSS (Cascading Style Sheets) is used to define many aspects of web page presentation. Is is designed to separate presentation to structure, as writen in HTML or other similar markup language. Styles in a CSS are nomarlly stored in style sheets externally. These external style sheets saves a lot of work to web programmers for making a nice and clean look web page presentation. The Pros - CSS lets developers control the style and layout of multiple Web pages all at once. A Web developer can define a style for each HTML element and apply it to as many Web pages and to make a global change, simply change the style, and all elements in the Web are updated automatically. This is impossible in standard HTML where you have to define each style and layout for every HTML element in every page. This makes CSS an innovation in web programming. -The FONT tag in HTML is said to be a barrier to communication over the World Wide Web because it makes too many assumptions about the user's system, browser, and configuration. (Steel, W. 2003) This is resolve through Cascading Style Sheets. It collaborates between author and user to create a carefully designed appearance that is accessible to all. The Cons Below are the limitations of CSS as taken from W3C Specification: -CSS offers no way to select a parent or ancestor of element that satisfies certain criteria. A more advanced selector scheme (such as XPath) would enable more sophisticated stylesheets. -While horizontal placement of elements is generally easy to control, vertical placement is frequently unintuitive, convoluted, or impossible. Simple tasks, such as centering an element vertically or getting a footer to be placed no higher than bottom of viewport, require complicated and unintuitive code. -There is no ability to specify property values as simple expressions (such as height: 100% - 3em + 4px;). -Multiple properties often end up doing the same job. For instance, position, display and float specify the placement model, and most of the time they can't be combined meaningfully. A display: table-cell element cannot be floated or given position: relative, and an element with float: left should not react to changes of display. -Margin collapsing is frequently not expected by authors, and no simple side effect-free way is available to control it. -CSS does not explicitly offer any property that would force an element to contain floats. Multiple properties offer this functionality as a side effect, but none of them are completely appropriate in all situations. In addition, although it claims that is supports all major browsers, Microsoft Internet Explorer version 6, according to W3C, lacks support for about 30 percent of CSS2 specification properties, and more significantly, misinterprets a significant number of important properties, such as "width", "height", and "float". XML Another important and popular technology when it comes to scripting is XML. XML is a markup language for documents containing structured information. Structured information according to Norman Walsh is defined as: "Structured information contains both content (words, pictures, etc.) and some indication of what role that content plays (for example, content in a section heading has a different meaning from content in a footnote, which means something different than content in a figure caption or content in a database table, etc.). Almost all documents have some structure." (Walsh, 1997) A markup language is a mechanism to identify structures in a document. The XML specification defines a standard way to add markup to documents. XML is used primarily for data storage, and for data transfer. XML document consists of two sections Document Type Declaration (DTD) and the Document Data. The DTD begins with DOCTYPE XML documents could be Type-valid if the document conforms to its DTD or Well-formed and not be type-valid, because it violates the structure of its DTD or it has no DTD at all. DTD may be stored externally so many documents can be validated against the same DTD The Pros XML gained its strengths in data transfer and document storage and processing, which are well represented with the following features: -XML is said a data which is said to be readable both human and machine simultaneously. -It supports Unicode, which allows any information to be communicated in any human language. -It has the ability to represent the most general data structures in computer science, which are records, lists, and trees. -It has a self documented format which describes its structure and field names, as well as specified values. -It is robust, logically-verifiable format is based on international standards. -The hierarchical structure is suitable for most (but not all) types of documents -It is platform-independent, thus relatively immune to changes in technology. The Cons XML also has the following weaknesses: -Its syntax is fairly wordly and partially redundant which hurt human readability and application efficiency, and yields higher storage costs. -XML is difficult to apply in cases where bandwidth is limited, which is particularly true for multimedia applications running on cell phones and PDAs which want to use XML to describe images and video. -The basic parsing requirements do not support a very wide array of data types, so interpretation sometimes involves additional work in order to process the desired data from a document. For example, there is no provision in XML for mandating that "3.14159" is a floating-point number rather than a seven-character string. XML schema languages add this functionality. -Modelling overlapping (non-hierarchical) data structures requires extra effort. -Some have argued that XML can be used as a data storage only if the file is of low volume, but this is only true given particular assumptions about architecture, data, implementation, and other issues. -XML goes directly against the rules the W3C laid down for web content and authoring tools accessible to disabled users as written in Priority 1 General issues. (W3C, 1999) XHTML XHTML stands for EXtensible HyperText Markup Language which aims to replace HTML. It is almost identical to HTML 4.01 and is a stricter and cleaner version of HTML The Pros -XHTML is extendable. User can create its own tags and add onto it. -New tags that have been created are done in such a way that all can understand it. -There is a basic template or rule for everyone that must be followed. XHTML promotes what is and is not acceptable coding The Cons -XHTML unlike HTML is not easy to learn. Its is very difficult for beginners because of its strictness and complexity. -Like XML, it also goes directly against the rules the W3C laid down for web content and authoring tools accessible to disabled users as written in Priority 1 General issues. (W3C, 1999) PHP "PHP, short for "PHP: Hypertext Preprocessor", is an open-source, reflective programming language used mainly for developing server-side applications and dynamic web content, and more recently, other software." (Wikipedia, 2005). Unlike the other types of scripting discussed above, which are considered client-side scripting, server-side scripting is a web server technology wherein the user'request are processed and fulfilled in the web server to create a dynamic HTML pages. The Pros -With server side scripting, you can do almost anything such collects form data, generate dynamic page content, or send and receive cookies. -Server side scripting such as PHP allows user to interact with relational database management system such as MySQL, Oracle, IBM DB2, Microsoft SQL Server, PostgreSQL and SQLite. -PHP supports almost all major operating systems including Linux , Unix and its variants, Microsoft Windows, Mac OS X, RISC OS, etc. It also supports most of the web servers today. This includes Apache, Microsoft Internet Information Server, Personal Web Server, Netscape and iPlanet servers, Oreilly Website Pro server, Caudium, Xitami, OmniHTTPd. With this at hand, PHP is very portable and cost efficient way in developing and maintaining a full-pledge web application. -Using a PHP parser, developers can create and run PHP scripts without the use of a web server or a browser. This is very useful in testing and debugging scripts before it is embedded in HTML pages, which is not present in JavaScript and any other client-side scripting language. -PHP has the abilities to output text, XML, XHTML, images, PDF files and even Flash movies (using libswf and Ming) generated on the fly. The Cons PHP as a scripting language earned criticisms generally for its syntax, built-in functions, and security, as taken from wikipedia.com. These can be summed up in the following: -PHP does not enforce the declaration of variables, and variables that have not been initialized can have operations (such as concatenation) performed on them. -Within sections of the built-in function selection there is little or no consistency regarding argument -Built-in function names have no standard form, with some employing underscores -The number of built-in functions is said to be too numerous, with many functions performing the same actions, but with just slightly different data, results, etc. This is said to make it difficult to program in the language without the frequent consultation of a reference work. -There are over 3,000 functions, sharing the same global namespace. Most functions are not enabled by default, but become available when PHP is linked against the required libraries. To mitigate this, function names are usually prefixed with their library name. -Other languages, such as ASP.NET, include functionality to detect and clean harmful cross-site scripting or other malicious code automatically, whereas PHP does not. -In the majority of cases, Linux and Unix webservers with PHP installed (using mod_php) typically run PHP scripts as "nobody", which can make file security in a shared hosting environment difficult. -PHP has no variable tainting mechanism. Variable tainting is useful for a language designed to accept and process untrusted input (i.e. a website). -Error messages are said to be confusing, although this is a common criticism levelled at many programming languages. -There is no native support for Unicode or multibyte, as opposed to XML where Unicode is used to translate information to different languages. The Pros and Cons of XSL as Emerging Technology XSL is a family of recommendations for defining XML document transformation and presentation. It consists of three parts namely XSL Transformations (XSLT), a language for transforming XML; the XML Path Language (XPath) ,an expression language used by XSLT to access or refer to parts of an XML document; and XSL Formatting Objects (XSL-FO), an XML vocabulary for specifying formatting semantics The Pros - XSL can be used to transform XML data into HTML/CSS documents on the Web server. This way, the two languages complement each other and can be used together. This cannot be done with CSS which only allows to style HTML and XML. - The Extensible Stylesheet Language (XSL) is "a language for expressing stylesheets. Given a class of arbitrarily structured XML documents or data files, designers use an XSL stylesheet to express their intentions about how that structured content should be presented; that is, how the source content should be styled, laid out, and paginated onto some presentation medium, such as a window in a Web browser or a hand-held device, or a set of physical pages in a catalog, report, pamphlet, or book" (W3C, 2000) The Cons -XSL cannot be used in HTML documents. - "HTML, even when combined with Cascading Style Sheets (CSS), can cause unpredictable results when printing. Another limitation is the need for developers to understand the inner workings of the expected eventual output format(s) (e.g., HTML, WML) and to code XSL Stylesheets for each such output format expected. In theory (and partially in practice), XSL Formatting Objects can overcome these shortcomings because the language is a kind of "general" markup language with extensive formatting capabilities without being output format-specific. It may eventually be positioned as the ultimate language for expressing the output format of XML documents across software (e.g., Web browsers, word processors) and hardware (e.g., printers, cell phones) boundaries. Admittedly this speculation is a bit optimistic - the result of the promise brought about by the growing maturity and capability of XSL-FO processors. Currently, a number of maturing XSL-FO processors are capable of rendering such formats as Portable Document Format (PDF), Rich Text Format (RTF), and plaintext, among others... In this article I'll use a demo version of one such processor, RenderX's (www.renderx.com ) XEP, to demonstrate how XSL-FOs work in the hopes of providing you with the same "enlightenment" I experienced when I first started using XSL-FO..." (Neugebauer, 2002) Conclusion Web based scripting languages offer a variety of features and advantages when building a dynamic and rich website. It creates highly presentable pages that interacts with the user and is relatively robust and useful, and adds a new dimension of interactivity to the Web. It is within the best interest of the web author to make their work accessible to all. Whether they have something to say, information to provide, a message to preach, feelings to express, or a product to sell, using these wide ranges of script functionalities and capabilities can be used to convey these valuable information. As we keep up with the rapid pace of change that has been the norm for the past few years in the software and Internet development world, web sites will probably become more like full-blown applications-instead of their current relatively static nature as new specifications and new versions are released for the benefit of the connected world. References: 1. Neugebauer, F 2002, "XSL Formatting Objects: Here Today, Huge Tomorrow. XML-Journal Volume 3, Issue 01 2. Walsh, N 1997, "A Technical Introduction to XML" Accessed December 23, 2005 from http://www.xml.com/pub/a/98/10/guide0.html 3. What is CSS Accessed December 23, 2005 from http://www.w3schools.com 4. W3C, 1999, Checklist of Checkpoints for Web Content Accessibility Guidelines 1.0 Retrieved December 26, 2005 from http://www.w3.org/TR/1999/WAI-WEBCONTENT-19990505/full-checklist.txt 5. Wikipedia, 2005, XML Accessed December 23 2005 from http://en.wikipedia.org/wiki/XML 6. Wikipedia, 2005, CSS Accessed December 23 2005 from http://en.wikipedia.org/wiki/CSS 7. Wikipedia, 2005, JavaScriptAccessed December 23 2005 from http://en.wikipedia.org/wiki/JavaScript 8. Wikipedia, 2005, XSL Accessed December 23 2005 from http://en.wikipedia.org/wiki/XSL 9. Wikipedia, 2005, XHTML Accessed December 23 2005 from http://en.wikipedia.org/wiki/XHML 10. Wikipedia, 2005, PHP Accessed December 26 2005 from http://en.wikipedia.org/wiki/PHP 11. What is XHTML, Accessed December 23, 2005 from http://www.w3schools.com 12. W3C Working Draft, 2000, Extensible Stylesheet Language (XSL) Version 1.0. Accessed December 26, 2005 from http://www.w3.org/TR/2000/WD-xsl-20001018/ 13. Hakon Wium, L ,2005 Cascading Style Sheets: Designing for the Web, 3rd Edition, Addison Wesley Professional 14. Steel, W. What's wrong with the FONT element 2003 Accessed December 23, 2005 from http://www.mcsr.olemiss.edu/mudws/font.html 15. NetContoret, CSS Introduction: Advantages 2002 Accessed December 23, 2005 http://www.echoecho.com/cssintroduction01.htm 16. Oasis, Core Standards: Extensible Stylesheet Language Accessed December 26, 2005 from http://xml.coverpages.org/xsl.html 17. The PHP Group, What Can PHP Do, Accessed December 26, 2005 from http://uk.php.net/manual/en/index.php Read More
Cite this document
  • APA
  • MLA
  • CHICAGO
(“The Pros and Cons of Different Scripting Languages Essay”, n.d.)
The Pros and Cons of Different Scripting Languages Essay. Retrieved from https://studentshare.org/technology/1500741-web-based-scripting-languages
(The Pros and Cons of Different Scripting Languages Essay)
The Pros and Cons of Different Scripting Languages Essay. https://studentshare.org/technology/1500741-web-based-scripting-languages.
“The Pros and Cons of Different Scripting Languages Essay”, n.d. https://studentshare.org/technology/1500741-web-based-scripting-languages.
  • Cited: 0 times

CHECK THESE SAMPLES OF The Pros and Cons of Different Scripting Languages

Web Information System

However, programmers often argue about one technology being superior to the other and therefore, questions like, which technology is better and why, or pros and cons of both technologies, have been highly debated in last few years.... ActionScript, a part of Flex framework, is a strongly typed ECMA complaint scripting language for building robust RIAs (Rich Internet Applications) that delivers immersive experiences and provides great interactivity and user engagement similar to Ajax-style applications (Franco, 2008)....
4 Pages (1000 words) Essay

Reflection and Evaluation of Technologies

hellip; The various types of technologies can be broadly classified into three different types: client-side technologies, server-side technologies, and multimedia, which make up the general classification of web development technologies.... The report evaluates and reflects three different website development technologies, one from each of the above-stated categories, namely, HTML5, Flash, and JQuery....
8 Pages (2000 words) Essay

Comparison of PHP and Python

It is pertinent to state some facts and figures of both the languages including Python and PHP before stating my opinion and experience with these languages.... Python is one of the high level languages (the high level languages are those programming languages which are more understandable to the human beings and does sends commands directly to the hardware).... As compared to the programming languages, the Python language emphasizes code reliability, as the Python programmers can express functionalities in less number of code lines comparatively....
4 Pages (1000 words) Essay

Main Issues of Cloud Computing

Cloud computing generally describes different applications which are extended in such a way that they are accessible through the medium of internet.... The paper “Main Issues of Cloud Computing” summarizes the major concerns in the cloud computing - flexibility in the cloud security system and determining suitable granularities for isolation through local area network (LANs), physical or virtual machines, and clouds or data centers....
10 Pages (2500 words) Coursework

The Study of JSON, Ruby on Rails, Dart, Opa, X10

It is based on a collection of programming languages.... It offers a great deal more flexibility as compared to other languages.... However, Ruby on Rails programming is different from Ruby that is a common programming language, on that Ruby on Rails executes (Hartl, 2012)....
6 Pages (1500 words) Report

The Future of Animation Is 3D Animation

This, therefore calls for CGI characters to be shown in almost dark conditions or twilight, which affects the whole process of scripting.... The author of the paper "The Future of Animation Is 3D Animation" will begin with the statement that the advancements in 3D technology led to the development of animations that refer to the simulation of movement emanating from an arrangement of frames or images....
5 Pages (1250 words) Essay

IT Application Development

It allows the ability or update data in different locations from the working host, retrieve the same, validate or even authenticate certain information of interest (Austin et al.... Stand-alone systems have a great deal of incompatibility with different platforms, however....
7 Pages (1750 words) Assignment

Computer Programming - Basic Programming Skills

There are various pros and cons that are associated with Java that have been summarized below.... The code can be written just once and it will be usable in a number of different platforms and systems.... There are several programming languages that are available and two such languages have been discussed that will allow acquiring the basic programming skills and knowledge.... JAVA Dynamic languages are easier to be learned by the beginners as they offer the ability to be flexible and also are fun to learn....
6 Pages (1500 words) Essay
sponsored ads
We use cookies to create the best experience for you. Keep on browsing if you are OK with that, or find out how to manage cookies.
Contact Us