Posts

Showing posts from October, 2024

PYTHON LGS

  Introduction To Python.txt Introduction to Python Python is a widely used general-purpose, high-level programming language. It was created by Guido van Rossum, and released in 1991. It is used as a support language for software developers. Python ranks among the most popular and fastest-growing languages in the world. World's biggest app "Instagram" uses Python on its backend. Uber also uses Python somewhere as its backend language. Python is popular because: 1. Emphasis is on code readability, shorter codes, and ease of writing. 2. Closer to the English language and easy to Learn. 3. Inbuilt functions for almost all of the frequently used concepts. 4. Logical concepts are expressed in fewer lines of code in comparison to other languages such as C++ or Java. Python is an interpreted language and a python interpreter is a program that knows how to execute a python code, it converts the code written in Python into a language that our computer can understand. # Uses:...

Employee Management System, which is basically a CRUD application based on a 3-tier architecture.

  3_tier_architecture.txt THREE TIER ARCHITECTURE: Three Tier Architecture is a structured approach to software design. In this architecture, a developer divides the project into three separate layers: Presentation Layer (UI), Business Logic Layer (BLL), and Database Access Layer (DBAL). Presentation Layer (UI): This is the user interface layer where the user interacts with the application. Business Logic Layer (BLL): This layer contains the core logic of your application. --> It defines how the data should be processed. --> This layer acts as a "bridge" between the UI and DBAL. Database Access Layer (DBAL): This layer interacts directly with the database. --> It executes SQL queries. --> In DBAL, we establish a connection with the database and write functions that perform CRUD operations. By keeping these layers separate, developers can easily update or change one part without affecting the others. This leads to better organization and flexibility in the...

EMS code, a CRUD application based on MVT architectures.

  ORM.py import pyodbc as p def getConnection(): connection = p.connect(r'Driver=SQL Server; Server=DESKTOP-21MU0SK\SQLEXPRESS;Database=master_2;') cursor = connection.cursor() return cursor class Model: def fetch(self): cursor = getConnection() cursor.execute("select * from EMPLOYEE") rows = cursor.fetchall() return rows def save(self): cursor = getConnection() cursor.execute(f"Insert into Employee values({self.empNo},'{self.empName}','{self.Designation}',{self.Salary},{self.join_date},{self.DeptNo},'{self.empAddress}')") cursor.commit() print("row inserted successfully") def update(self): cursor = getConnection() cursor.execute(f"update EMPLOYEE set empName = '{self.empName}', Designation = '{self.Designation}', join_date = {self.join_date}, Salary = {self.Salary}, DeptNo = {self.DeptNo}, empAdd...

EMS

 

CSS.LGS

  CSS Tutorial CSS.txt CASCADING STYLE SHEETS: --------------------------------------------- A stylesheet is a separate component that is merged with HTML pages. It is used for giving a special appearance to an HTML page. Syntax: selector { key:value; } It is a key/value pair where value can be predefined/user-defined. more than one key/value pair can be joined by a semicolon. stylesheet syntaxes are highly case-sensitive and all keys are generally in small cases. ----------------------------------------------------------------------------------------------------------------------------------------------- There are three types of stylesheets: 1. External Stylesheet: A seperate file is created with extension as .css. This css file is then linked into the HTML page as: ex- <link href="yourcssfile.css" rel="stylesheet" /> Link tag must be written inside <head> tag. 2. Internal Stylesheet: It is specific to one particular page. syntax: ...

HTML.LGS

Introduction to HTML   home.html <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" /> <title>My Personal Profile</title> </head> <body> <header> <center> <h1>Emily Jones</h1> <p>Welcome to my personal profile page!</p> </center> </header> <main> <center> <img src="download (2).jpg" alt="A photo" width="150" /> <section> <h2>About Me</h2> <p style="color:crimson"> Hello! I'm <em>Emily</em>, I am learning web development. </p> </section> </center> <br /><br /><br /> <section> ...

JavaScript LGS

Javascript.txt JavaScript is a programming language that is primarily used for web development. It allows developers to add interactive elements, dynamic content, and behavior to websites. It is a high-level, interpreted language, which means it is executed directly by web browsers without the need for compilation. It is an advanced programming language that makes web pages more interactive and dynamic. JavaScript is widely supported by all modern web browsers and is an essential component of web development. It has a relatively easy-to-learn syntax and is known for its flexibility and versatility. * Some key features and uses of JavaScript: 1. Client-Side Scripting: Most JavaScript code runs in the user's browser, meaning it can reduce server load and provide a smoother experience by processing data locally. 2. DOM manipulation: JavaScript provides powerful tools for manipulating the Document Object Model (DOM) of a web page. It allows developers to access and modify the ...