Name: | Description: | Size: | Format: | |
---|---|---|---|---|
5.25 MB | Adobe PDF |
Authors
Advisor(s)
Abstract(s)
Atualmente existem diferentes formas de produzir uma aplicação World Wide Web
(WEB). Várias linguagens de programação dão suporte direto ou indireto a este tipo
de desenvolvimento e sobre estas existem inúmeras frameworks já desenvolvidas. Com
a fragmentação do desenvolvimento WEB distribuído por várias tecnologias, uma simples
aplicação WEB, na grande maioria dos casos contém código PHP, HTML e JavaScript.
Esta situação pode dar azo a erros sintáticos e semânticos durante o processo de
produção, que vão ser refletidos no cliente. De forma a resolver grande parte destes
problemas foi criada a framework Ocsigen. O seu slogan é ”develop once, safely deploy
everywhere” e tem como mais valia, a possibilidade de construir uma aplicação
WEB completa, tanto parte cliente como parte servidor, exatamente com a mesma linguagem
de programação, nomeadamente a linguagem Objective Categorical Abstract
Machine Language (OCaml). Esta é também, a linguagem utilizada na construção da
framework Ocsigen. O OCaml é uma linguagem de base funcional, multiparadigma de
alto nível e fortemente tipificada. Tem por base, um poderoso compilador capaz de
tornar o código produzido em algo extremamente determinístico a nível de segurança
de tipos. Apesar da framework Ocsigen herdar características subjacentes à linguagem
OCaml esta apresenta algumas limitações relativas à curva de aprendizagem, utilização
devido à falta de documentação atualizada e instalação em diferentes sistemas
operativos, como é o caso do Windows.
A presente dissertação tem como objetivo encontrar soluções para as limitações mencionadas.
Para conseguir o objetivo proposto é então delineado um plano, que passa
numa primeira fase, pelo estudo aprofundado da framework Ocsigen. Para que com
base nos resultados obtidos seja possível compreender o seu funcionamento e contexto,
como também as suas limitações, de forma mais detalhada, assim como os respetivos
pontos críticos, nomeadamente a sua utilização e o suporte a diferentes sistemas operativos.
Posteriormente, com base nestes dados é então projetada uma solução, que
irá concretizar-se na forma de uma nova framework, a framework Ocsi_Simple. Esta
nova framework irá agora permitir o uso da tecnologia Ocsigen, de forma mais amigável,
simples e mais apetecível para a indústria do desenvolvimento WEB. É importante
frisar que esta solução pretende completar a framework Ocsigen.
Currently there are different ways to produce a WEB application. There are several programing languages backed by many frameworks that either directly or indirectly support WEB programming. With the fragmentation of WEB development, distributed by various technologies, a simple WEB application, in most cases contains PHP, HTML and JavaScript code. This situation can give rise to syntactic and semantic errors during the production process, which will be reflected on the client side. In order to solve a large part of these problems, the Ocsigen framework was created. The slogan is ”develop once, safely deploy everywhere” and its added value, the possibility of building a complete WEB application, both client side and server side, exactly with the same programming language, namely OCaml. This is also the language used in the construction of the Ocsigen framework. OCaml is a high-level, multi-paradigm, strongly typed language with emphasis on functional programming, which is based on a powerful compiler, able to make very type safe programs. Though Ocsigen naturally shares common properties to the OCaml language, the former presents some limitations, such as, learning curve, lack of susbtantial documentation and installation issues with some operating systems like Windows. The present dissertation aims to find solutions to the mentioned limitations. In order to achieve the proposed objective, a plan is outlined, of which, the first phase consists of an in-depth study of the Ocsigen framework. So that, based on the results obtained, it is possible to understand its operation and context, as well as its limitations in a more detailed way as well as the respective critical points, namely its use and support for different operating systems. Subsequently, based on this data, a solution is then designed, which will materialize, in the form of a new framework, the Ocsi_Simple framework. This new framework will now allow the use of Ocsigen in a friendlier, simpler and more appealing way for the WEB development industry. It is important to stress out that this solution intends to complete the Ocsigen framework.
Currently there are different ways to produce a WEB application. There are several programing languages backed by many frameworks that either directly or indirectly support WEB programming. With the fragmentation of WEB development, distributed by various technologies, a simple WEB application, in most cases contains PHP, HTML and JavaScript code. This situation can give rise to syntactic and semantic errors during the production process, which will be reflected on the client side. In order to solve a large part of these problems, the Ocsigen framework was created. The slogan is ”develop once, safely deploy everywhere” and its added value, the possibility of building a complete WEB application, both client side and server side, exactly with the same programming language, namely OCaml. This is also the language used in the construction of the Ocsigen framework. OCaml is a high-level, multi-paradigm, strongly typed language with emphasis on functional programming, which is based on a powerful compiler, able to make very type safe programs. Though Ocsigen naturally shares common properties to the OCaml language, the former presents some limitations, such as, learning curve, lack of susbtantial documentation and installation issues with some operating systems like Windows. The present dissertation aims to find solutions to the mentioned limitations. In order to achieve the proposed objective, a plan is outlined, of which, the first phase consists of an in-depth study of the Ocsigen framework. So that, based on the results obtained, it is possible to understand its operation and context, as well as its limitations in a more detailed way as well as the respective critical points, namely its use and support for different operating systems. Subsequently, based on this data, a solution is then designed, which will materialize, in the form of a new framework, the Ocsi_Simple framework. This new framework will now allow the use of Ocsigen in a friendlier, simpler and more appealing way for the WEB development industry. It is important to stress out that this solution intends to complete the Ocsigen framework.
Description
Keywords
Lwt Ocaml Ocsi_Simple Ocsigen Security Tyxml Web Web Design Web Framework