Inversoft Launches Prime.js Open Source Library

Inversoft, Creator of CleanSpeak, the World's Premier Profanity Filtering and Moderation Solution

  • Share on TwitterShare on FacebookShare on Google+Share on LinkedInShare on PinterestEmail a friend
We strive to make the Prime.js API as consistent as possible. Our functions only ever have one return type and one set of parameters.

Denver, CO (PRWEB) June 13, 2013

Inversoft is excited to announce the launch of a new open source library – Prime.js. Prime.js is the JavaScript library that powers CleanSpeak. The library is hosted at Github and can be visited via the project website here.

Prime.js is different than other JavaScript libraries because it was built for object oriented JavaScript. Everything in Prime.js is namespaced and explicit JavaScript objects. Inversoft embraced the 'new' operator and the 'this' variable making them first class citizens again.

Inversoft's CEO, Brian Pontarelli shares, "We strive to make the Prime.js API as consistent as possible. Functions only have one return type and one set of parameters."
There's no need to use the same function to get and set variables. Instead, Prime.js uses explicit functions for each, consistent naming rules for functions whenever possible and makes function parameters and return types consistent.

Inversoft adopted the builder pattern for Prime.js objects. This makes it simpler to code with Prime.js if developers have an IDE that supports intelli-sense for JavaScript (such as IntelliJ IDEA). It also makes the code more explicit with little code overhead.

For example:

1. new Prime.Ajax.Request(‘/foo.js’).
2. withSuccessHandler(this.successHandler).
3. withErrorHandler(this.errorHandler).
4. withContext(this).
5. go();

Prime.js allows control of the 'this' variable whenever possible. This means it can use one's own objects as event listeners or callbacks and the 'this' variable will be set to those objects.

Under the hood, Prime.js uses the excellent Sizzle selector engine. This is the same engine used by jQuery, which means that developers familiar with the jQuery style of selecting will be able to jump right into using Prime.js.

Prime.js is also fully documented using JSDoc. Many IDEs can use JSDoc to provide good intelli-sense as well as pop-up documentation. It also allows documents to be generated on the Prime.js website.

Finally, Prime.js was built to be easily debuggable in the browser. Therefore, every function, namespace and object is explicit. There is no need to generate code or eval anything. Those who run against the original source code for Prime.js will be able to step into any of the objects and functions.

Inversoft encourages developers to test out Prime.js and give thoughts and feedback.


Follow us on: Contact's Facebook Contact's Twitter Contact's LinkedIn Contact's Google Plus