Wednesday, November 30, 2022

"JavaScript Fundamentals and Installation"


HOW TO JAVASCRIPT!

Are you an experienced programmer? Are you a new programmer? Are you looking to learn your first or new computer language? Well, if any of those questions apply to you, you have come to the right place. Look no further, your "Google" search is over. Here I will give you all the links and tools you need to install and run JavaScript. By the end of this blog, you will understand how to install and the basic principles of JavaScript...ready? Let's get started!

JavaScript is one of the many computer languages that can be utilized by a programmer. Let's begin with discussing Object-Oriented Programming (OOP) or as I like to sing as I write "are you down with OOP, yeah you know me, are you down with OOP, yeah you know me." Okay, enough of my 90`s nostalgia. 

There are four major principles that makeup OOP:

1. Inheritance: In simple terms think of this as groups like objects together to prevent writing multiple lines of code. So, I can group objects such as trains, vans, buses, and cars into a class called transportation and they will inherit those properties. 

2. Polymorphism: Let's keep it simple here with a simple translation Polymorphism simply means "Many Forms". If you are like me, you're asking yourself "what does that mean to you in programming?" Let's go back to our previous reference to class transportation. If we create a "drive" instance underneath that class, all objects (Vehicles) will be able to reference that, and it will be available. However, if I want to override one of those, let's use vans in this instance, I could go into the objects and override it to say "stop."

3. Data Abstraction: Abstraction shows the required information to the outside and hides the lower-level complex implementation (Gunasena, 2022). Using the example of cars earlier. When you start your vehicle in the morning, you need a key and fuel. Those are the things you know you need for the vehicle to run. You need to know how much fuel the injectors need or the minimum amount of charge the alternator stores to start the engine. Someone much more intelligent than I figured all of that out before and allows me to start my internal combustion engine with the simple interface and ignition and key.  

4. Encapsulation: Let's keep it simple, the best way to explain this is to hide information. Keeping in the car method, we don't want someone to take out the alternator in our engine, so we hide the fact that the battery uses the alternator for keeping charge to start the engine. While our car knows where to go to get that charge, it would not be public information in relation to the encapsulation process. 

Okay, now that you have the basics let's talk installation (The easy part). For this, I am going to provide resources and links. It is very simple to install the program and get it running. One thing that is key not you will need an Integrated Development Environment (IDE). I use Eclipse, but please pick a program that is comfortable for you. I will give you links and tutorials by

Lastly, with your newfound knowledge, let us get our first program up and running. There is a simple "Hello World" program that will help you apply the basics.  I will give you links and tutorials below for all things JavaScript. Happy Programming!!!








Installation Instructions

14) JavaScript Tutorial for Beginners: Learn JavaScript in 1 Hour - YouTube

(14) How to Install Java JDK on Windows 10 ( with JAVA_HOME ) - YouTube

IDE Videos

(14) What's the best IDE for Java - YouTube

(14) How to Setup Eclipse IDE on Windows For Java Development - YouTube

"Hello World"







References

Gunasena, A. (2022) What is abstraction in object-oriented programming? great 1 of oop, Ennicode. Available at: https://www.ennicode.com/abstraction-in-object-orient-programming/ (Accessed: December 1, 2022). 

No comments:

Post a Comment

Structured Programs

Development of Structured Programs A data structure is a technique of storing and organizing information so that it may be employed effect...