Showing posts with label introduction. Show all posts
Showing posts with label introduction. Show all posts

Sunday, 28 February 2021

Introduction to PHP

 

PHP stands for php hypertext processor, it is powerful language designed for creating HTML content.

 

Php is one of the popular language to create dynamic websites. One of the key advantage of php is, it can talk to backend infrastructure like databases, file systems etc.,

 

Some notable features

a.   PHP has built-in support to generate pdf, jpg, png and gif images.

b.   PHP has support to communicate with variety of databases (Ex: Oracle, MySQL, Postgres etc.,).

 

Where can I use PHP?

a.   Server side scripting

b.   Command line scripting

c.    Form processing

d.   Reading file contents

e.   Talk to databases like MySQL, Oracle, Postgres etc.,

 

 

Can PHP run on multiple operating systems?

Yes, php can run on operating systems like Linux, Mac and Windows.

 

Is php support object oriented principles (Oops)?

Yes, oops features are added in PHP V5.0 onwards.

 

You can download the complete working application from below link.

https://github.com/harikrishna553/php_core

Previous                                                    Next                                                    Home

Tuesday, 21 April 2020

Introduction to Javassist

In this tutorial series, you are going to learn about javasist library. This library is used to manipulate the byte code.

Maven Dependency used
<!-- https://mvnrepository.com/artifact/org.javassist/javassist -->
<dependency>
    <groupId>org.javassist</groupId>
    <artifactId>javassist</artifactId>
    <version>3.26.0-GA</version>
</dependency>

Prerequisite
Install java decompiler to see the updated byte code result. You can go to below post and setup java decompiler.

What is byte code?
When a java class is compiled by compiler it generates byte code, which is loaded by jre (java runtime environment) at run time. Once the byte code is loaded by jre, jvm (Java Virtual Machine) translates the byte code to machine level assembly instructions.

Use of Javassist
Many frameworks like Hibernate, Spring and EJB use byte code manipulation libraries to create proxy classes to the main class. These proxy classes are used to intercept method invocations.

Other Byte code manipulation libraries
a.   ASM
b.   BCEL
c.    cglib
d.   ByteBuddy
e.   jCLA
Previous                                                    Next                                                    Home

Thursday, 26 March 2020

Introduction to TableSaw

TableSaw library is written in Java to perform data analysis.

I am going to use below maven dependency throughout this tutorial series.

<dependency>
         <groupId>tech.tablesaw</groupId>
         <artifactId>tablesaw-core</artifactId>
         <version>0.32.6</version>
</dependency>


Previous                                                    Next                                                    Home

Tuesday, 17 March 2020

Introduction to Swagger

Overview
a.   Swagger is used to design, document and generate code for the APIs of the application.
b.   Swagger API definitions are compliant to the Open API Specification (OAS).

What is Open API Specification?
OpenAPI Specification (OAS) defines a standard, language-agnostic interface to RESTful APIs which allows both humans and computers to discover and understand the capabilities of the service without access to source code, documentation, or through network traffic inspection.

Swagger Toolbox has below tools in its archery.
a.   Swagger Editor: Used to build API definition files. Go through the link 'http://editor.swagger.io/' to get a feeling of Swagger Editor.

b.   Swagger UI: Generate documentation from API definitions, it hosts APIs generated from API definition files. Go through the link 'http://petstore.swagger.io' to get a feeling of how swagger UI looks like.


c.    Swagger Codegen: Used to build client SDKs from API definitions. In Swagger editor, you can see Generate Server, Generate client tabs, these are used to generate client and server stubs.

d.   Swagger hub

e.   Swagger Inspector


Previous                                                    Next                                                    Home

Saturday, 7 March 2020

Introduction to TestNG

TestNG (stands for Test Next Generation) is a popular Java unit testing framework.

You can download all the samples of this tutorial from this link.

Previous                                                    Next                                                    Home