Home     |      Learn AJAX     |      Forum     |      Register     |      Submit Resource     |      Submit Article      |      Contact Us

Home AJAX-Design
 

Low, High and Mid-Level APIs

 

Developing an Ajax or JavaScript based application has been a lot easier, thanks to the development of APIs. These were created to allow developers plug some important functions in their applications for better interaction, additional data or simply an improved look.


API has also evolved in itself that has created three types of API. Depending on your skill and personal preference, an API can be developed from the scratch or can simply become a tool with a UI. Some even argue on which direction the development community should take on the form of API.


These are the three general APIs considered:


High Level API - Everyone wants to have some JavaScript tool in their websites and online application. And that includes website owners who have little or no familiarity with JavaScript and basic web development. But this doesn't mean they should be excluded. For that reason, various APIs were created to cater to this need. They come with interesting collection of functions and using the UI, webmasters can create an online application by simply connecting the functions. This is very useful but the danger in this option is the susceptibility to exploits from unknown API authors.


Low Level API - The other end of the spectrum is not for the lighthearted. In gist, low level APIs will allow developers create a powerful API from the scratch. For example, using the function "document.cookie" in a low level API will not just launch the functions related to cookie. Developers have to know the behavior of cookies and create functions to adapt to that behavior. Of course, the downside of this option is that not everyone can effectively harness the potential of low level API. This means developers has to have advanced knowledge of JavaScript and Ajax.


Mid Level API - Combining the two great features of high and low-level API is possible and it has been realized in mid-level APIs. Although this type of API is not for those unfamiliar with programming languages, they can be developer friendly and customizations is always a possibility.


Developers can customize the functions according to their preferences but it has enough features that can automate most functions. High level APIs are good but they place users and webmasters in a dangerous position. On the other hand, low level APIs gives the power to the developer. It's a smart API but can be "too smart" to other developers.


Choosing Which Way to Go


Obviously, the best way to go is mid-level API. But this doesn't mean this option is perfect for any given situation. Developers should always consider ease in development in their application but they should also think of security. JavaScript and Ajax based applications are languages that can be secured with a simple function. This is where low-level APIs can excel. But if you're just building a website that provides basic information with little to no requirement to secured data, the high-level API will work without any problem. A developer doesn't have to be the smartest guy in the room, he or she just have to choose the right form API.



Read Next: Node Values and Elements in DOM



 

 

Comments



Post Your Comment:

Members Please Login
Your Name:*
e-mail ID:(required for notification)*
Image Verification: 
 
 Subscribe    

Sponsored Links