Posts

Object-Oriented Programming (OOP)

Image
 What is Object-Oriented Programming? OOP is a programming concept of "objects" that can contain data and code. The data is contained in the form of fields, and the code is in the form of procedures. The feature of objects is that procedures are attached to them and can access/modify the object's data fields. Structure of OOP: Classes: A class is a blueprint for creating objects. Objects: An object is an instance of a class. Methods: A method is a function defined inside a class that describes the specific behaviors of an object Attributes: Are defined in the class template and represent the state of an object. Principles of OOP: Encapsulation:  Abstraction: Inheritance: Polymorphism

HTML/CSS - Part 1

Image
Fundamentals of Web development Front-end: HTML, CSS, and JavaScript devel opment Back-end: Consists of a server, an application, and a database. Full-stack: Involves both developments. Essential attributes to work in web development HTML: Hypertext Markup Language. CSS: Cascading Stylesheet. JavaScript: Programming language; used for adding functionality to web pages. React: Library - Frameworks help build websites faster. Git & GitHub: Version Control Systems - keep track of project history. With HTML we can define all the building blocks of code. CSS styles objects and provides visual effects. JavaScript helps features to be interactive. How the web works The client/device asks and consequently, the Server responds. The client/device requests a service to the server, and the server retrieves it. This process is formatted on a protocol called HTTP/Hypertext Transfer Protocol and HTTPS, secure (encrypts) communication and data transfer between a user's web browser and a we...

Python - Part #3

Image
What is a loop and why do we use it? A loop is a repetition of a process that is iterated over and over as long as the condition is true or until it is intentionally broken. It is highly useful because it massively reduces the repetition of the code and increases its efficiency. Note: The hash " # " represents the comments which do not alter the code. WHILE LOOPS: Example: x = 1 # Variable declaration while x <= 5:     print(x)     x += 1 Because 1 is less than 5, my boolean condition is true, or in other words: as long as 1 is less than 5 run the program, however, I am adding one to the number each time the program is repeated, so it will automatically stop as soon as the boolean condition is not true anymore. Output:                >> 1                >> 2                >> 3         ...

Python - Part #2

Image
DATA COLLECTION There are four built-in collections of data types in Python, each one with different qualities for particular purposes. LISTS: - Lists are used to store multiple items in a single variable and are created using square brackets [ ]. - List items can be ordered, they are changeable, allow duplicate values, and can contain any data type. - List items are indexed, the first item has index [0], the second item has index [1], and so on. - " : " colon is used inside the index as a range. - To check the type of list we are using we write print (type(list_name)) Example #1: numbers = ["1", "2", "3"] print(numbers[0]) Output:          >> 1 Example #2: list1 = ["letter", 1.4, True, False, "name", 17] print(list1[1:4]) Output:          >>  [1.4, True, False] TUPLES: Tuples are used to store multiple items in a single variable, however, they are a collection that is ordered and unchangeable. As opposed to the li...

Python - Part #1

Image
Brief Definition: Python is an interpreted, object-oriented, high-level programming language with dynamic semantics. It's widely used for data structures, app development, scripting, etc. It's an outstanding programming language because its syntax emphasizes readability to make it more understandable for the users. This article will contain Python introductory essentials. DATA TYPES:   In order for the Python interpreter to understand numbers or letters we use the "Data Types" which are a classification of built-in words that can store mathematical numeric values and strings, each one is different and has its logical purpose. Below are listed the most used ones: Strings: Holds letters (str) | x = "Hello world" Integers: Holds whole numbers (int) | x= 1 Float: Holds short decimals (float) | x = 1.5 Boolean: Holds either True or False statements (bool) I x = True (or False)           Casting: Used to temporarily assign different datatypes.    ...

Linux Essential Commands

Image
- Today I will tackle essential Linux commands to enable the users to utilize the Linux terminal fluidly. - Each command I will list below has its own function, however, if you read the manual (man <command>) of each command, you will be able to discover more extra useful functions depending on what you what to achieve through it. cd  | Change directory command allows the user to navigate through the file explorer. cd .. | This command takes you one directory back from the current directory you are in. Example : root@user $ cd /home/desktop/downloads                       root@user downloads $ cd ..                       root@user desktop $ pwd - Print Working Directory command allows users to see the path of the current working directory. Example: root@user $ pwd                ...

Assign temporary Domain Name to IP adress locally

Image
I will briefly explain h ow to temporarily set a domain name to an IP address locally in the computer or LAN. The temporary assignation of a domain name could be useful when you are working on developing a web page that has not been released to the public yet or does not have a legit domain name. In the computer: (Windows) Open the note path and run it as administrator, click open file and follow this directory path:  LocalDisk(C:)/ Windows/ System32/ drivers/ etc You will see 5 files as default, click on hosts and add the IP address as well as the domain name. Example: 192.168.254.23 example.com Once done, save the file and close it, if the name of the domain matches any other already searched before, the computer will open the legit one, in this case, you need to either clear the cache or specifically delete that domain name from the computer cache. In the router: (LAN) Search the default gateway number on your internet browser to log in into the router’s configurations, afterwar...