Saturday, February 24, 2018

JavaScript Basics I

Hello Everyone,

I am writting this post to express the knowledge that got through learning Javascript in my AF module in the university.
Firstly I will introduce what Javascript(JS) is,
  • JS is a programming language which is used add some client side validations to static HTML pages.
  • It is an interpreted language
  • It uses nIO(non blocking IO) to avoid concurrency issues
  • Nowadys there several JS frameworks namely AngularJS, ExpressJS, NodeJS, ReactJS are some.

Simplest of JS code For a beginning


In HTML code we define <script> tag where all the JS codes are written in between those tags

Lets Learn more basic stuff about JS



In here we defines a object from function using new keyword and initialize with parameter. If we use var.marks instead of this.marks we cannot access marks outside of the function as var has local scope.


Output to the console



Next we'll talk about an another interesting feature JS process i.e. Prototyping. Prototyping is refers to as referring different object inside of  a function.
Let's simplifies this using an example.




In this code when the function is already defined we cannot add more behaviours. So in order to add more behaviors we use prototype objects.If we try add behavior using Student.id it will be an undefined case.So to avoid these prototype object can be used.Also prototype objects can be used to add new methods objects constructors.
               

Output to the console



I hope you guys learnt something from this.Hope to see you in the 2nd part of this which talks about inheritance and prototyping together.See you in that.


©Copyright Viraj Wickramasinghe.

Saturday, February 17, 2018

First Post in the Blog

Hello Everyone,
I am writting this blog to express the technicle stuff to the readers of this blog and as well as an assignment in my university.
In here I will talk about varieties of different technologies that I am going to learn with the practical explations.As a start I will give an overview of the 2nd Year final group project which was done as an asssignment.

Supermarket Management System for Madusha Supermarket
The proposed project was to implement a Supermarket Management System for Madusha Supermarket. It enables to automate 8 main functions practiced in the supermarket namely,
  • ·         Sales Management
  • ·         Inventory Management
  • ·         Delivery Management
  • ·         Employee Management
  • ·         Vendor Management
  • ·         Service and Repair Management
  • ·         Installment and Treasury Management
  • ·         Loyalty and Promotion Management





Key Benefits
  1. Increase Efficiency and performance
It will directly affect to the every function of the system in a favorable manner. Most of the manual processes can be automated through the proposed system that leads to saves valuable time and cost.
  1. High Security
Due to having different access levels for different levels of employee, more security will be achieved by the important data. In case of corruptions in the system or hardware, no data losses will occur due to maintaining regular backups in the database. 
  1. Improve Productivity 
Through the efficiency employees can enhance their productivity and perform their relative works with more accurately and with less time more load of work could be completed with much ease.
  1. Higher Availability 
The data will be always available when it is needed. The Manager can be sure that he has the relevant data which is requested. And the manager can search the reports and refer them without wasting time in searching the reports which include in huge books. Ability of gaining a range of reports which analyses the business functions.
  1. Data Integrity 
Data is accurate and precise rather than doing all of the works manually. The probability of doing mistakes will be low. Employees can be sure about the information that he has.
  1. High Scalability
Ability of handling a range of various tasks with optimum functionalities. Including the main functionalities, the system will prompt the users with essential notifications which will help the business to take important decisions and to maintain a good level in the business.

Technologies used: C#, MySQL,Bunifu framework, Adobe Photoshop, WAMP, XAMPP. 


©Copyright Viraj Wickramasinghe.