NEW TOOLS FOR CODE CONVERSION AND OPTIMIZATION

ALEXANDRU PINTEA

Coventry University, Priory Street, Coventry, CV1 5FB, UK, e-mail: alexpintea.info@gmail.com


Abstract

Optimization aims to make code either faster or smaller in size. The applications presented in this paper accomplish mostly storage-related optimizations. Most CSS frameworks provide users with classes, that require a longer syntax to incorporate than CSS attributes. As such, a tool was proposed to enable attribute usage over class usage in CSS. Within the same context of web development, it can be stated that repetitive code inspections hinder development, as they needlessly increase development time. As such, a tool was made to show all the properties of an HTML element when the developer hovers over it. The tool is only required in development, and can be removed seamlessly when the application is released. An HTML generator is also introduced in this paper, which aims to provide a starting point for a web application, using a custom lightweight (attribute-based) CSS framework. This HTML generator takes paragraphed text as input and outputs an HTML page, leaving the possibility for conversion to other formats as well (RTF/PDF/...). Given that AI tries to enable natural language programming, such a tool can be adjacent to its endeavors. A JSON-HTML converter is also introduced. Since JSON is more lightweight than XML, a JSON-HTML converter can help compress static HTML pages, to use less network. The converter enables conversion to and from HTML. Besides the JSON-HTML converter, a separate tool introduces the possibility of shortening function/ variable names to optimize large code files. Another aspect of this tool is making code contents less accessible to parties that might handle with it.


Keywords

code optimization tools CSS framework JSON-HTML converter