Você está na página 1de 19

ADSI 2017-SENA

Analysis and Development of Information Systems Data Sheet 1181619.


Java and PHP language.

Carol Montenegro Torres


The Nario Llanada.
August, 2017.
Java language.

This type of programming can be structured or object oriented, the latter


facilitates code reuse and maintenance. Includes object, abstraction, method
and also find attributes, classes, constructors and encapsulation.
Java is a general-purpose, concurrent, object-oriented programming language
that was specifically designed to have as few implementation dependencies as
possible. It is intended to allow application developers to write the program
once and run it on any device.
We know that:

Java is a general purpose object programming language developed by Sun


Microsystems. It can also be said that Java is a technology that not only
reduces to the language but also provides a Java virtual machine that allows
you to run compiled Java code, whatever platform there is below, platform
both hardware and software (the operating system that supports that
hardware). Support for this technology is provided by the large number of
manufacturers that support this virtual machine specification. Learning the
Java programming language takes time and effort, but in this course we will
try to lay the groundwork for general knowledge of language.
Characteristics.

Object Oriented
Statically typed
Distributed
Played
Strong
insurance
of Neutral Architecture
Portable
Dynamic
PHP language.
It is a very popular open source language especially suitable for
web development and can be embedded in HTML.
PHP is a general-purpose server-side code programming
language originally designed for dynamic content web
development. It was one of the first server-side programming
languages that could be incorporated directly into the HTML
document instead of calling an external file that processes the
data.
Currently, the most recent stable version of the language is the
"5.2.12" of December 17, 2009. With the launch of PHP5 in
June 2004 major improvements were introduced such as
performance improvements, improved programming support
Object-oriented, improved support for database connections,
etc. Looking forward, there have been several news stories
about the upcoming PHP6 release with various improvements
but no specific date has yet been revealed.
With the growth of PHP arose associated projects, such as
Frameworks, IDE's (Integrated Development Environment)
that have given the language an even greater robustness and
consistency and that we will try later.
We know that:

It was originally created by Rasmus Lerdorf in 1995. Currently the language is still
developed with new functions by the PHP group. This language is part of the free
software published under the PHP license, which is incompatible with the GNU
General Public License due to restrictions on the use of the term PHP.
The code is interpreted by a web server with a PHP processor module that generates
the resulting web page. PHP has evolved so it now also includes a command line
interface that can be used in standalone graphics applications. It can be used on most
web servers as well as on almost all operating systems and platforms at no cost.
Characteristics.

Oriented to the development of dynamic web applications with access to information


stored in a database.
It is considered an easy language to learn, since in its development were simplified
different specifications, as is the case of the definition of the primitive variables,
example that becomes evident in the use of php arrays.
The source code written in PHP is invisible to the web browser and the client, since it
is the server that is responsible for executing the code and sending its HTML result to
the browser.
Ability to connect with most database engines that are currently used, highlights its
connectivity with MySQL and PostgreSQL.
It is free, so it is presented as an easily accessible alternative for all.
It allows applying object oriented programming techniques.
It does not require definition of variable types although its variables
can also be evaluated by the type they are handling at runtime.
Has exception handling (since PHP5).
Due to its flexibility it has been well received as a base language for
the WEB applications of content management, and is its main use.
Ability to expand its potential using modules (called ext's or
extensions).
It has extensive documentation on its official website, among which it
is highlighted that all the functions of the system are explained and
exemplified in a single help file.
Features.

The programming languages offer different and wide


functionalities, some more complex and complete than others
but in the end we can all use in the best way, each programmer
uses each of the languages as appropriate and is needed.
The functionalities of the languages expand more and more.
Php functionality.

PHP bases its effectiveness primarily on its huge library of functions. A


large library that grows constantly, as new versions are emerging and
new areas of work are incorporated into the language. PHP functions
allow us to perform simple tasks and development of an application, but
we can also do new functions to solve all kinds of tasks more specific to
our application.
PHP offers many functionalities that are expanded each time according
to the use and the proper way of its use and implementation that each
programmer can perform.
Similarities and differences.

PHP and Java are two technologies that since their


launch have always been preceded by debates about the
advantages and disadvantages. Moving around the
world of developers we realize that as in most issues,
there is no general opinion about which is better. The
final conclusion is never black or white, but each will
always have its followers and detractors.
Similarities.

All are programming languages which use databases,


events, methods.
They are used for the function of creations of web
pages and the complexity of being easier to address to
an object.
Both are free software languages.
Differences.

Perhaps one of the advantages of PHP versus Java is in terms of


performance since the former is much less heavy, which gives the user
a sense of speed and greater usability.
It has long been said that Java technology is much more scalable than
PHP, demonstrating the loss of performance of the latter before a
considerable increase of concurrent users. With PHP5, the developers
and followers of this technology support that this deficiency has been
solved but still is not demonstrated in a real way.
The Java technology used in any web portal has a clearly
differentiated structure, being able to easily differentiate the
MVC model with its different modules
As for PHP, we can say that we lose some track of the
modularity that we have highlighted in Java since all logical
layers are implemented in a same .php file.
The estimated cost in a PHP project will always be lower than
in a Java project.
The Java system is more oriented to large projects since, as we
will speak later provides a greater scalability than PHP.
In short Java is more convenient than PHP although it requires
more costs and preparation.
Conclusions.
References.
Official PHP website: PHP
Wikipedia: Wikipedia
Imagen www.adictosaltrabajo.com/tutoriales/php-vs-java/#05.

God, thank you for everything you give me.

Você também pode gostar