Skip to content

Commit c301657

Browse files
refactor(faq): reorganize and rename pages for better categorization
- Moved binary and hexadecimal to 'concept' category. - Grouped business logic, data access logic, and objects under 'software_development'. - Added index for the 'concept' category to enhance navigation.
1 parent d930fb4 commit c301657

File tree

6 files changed

+96
-24
lines changed

6 files changed

+96
-24
lines changed

pages/faq/concept/index.md

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
---
2+
layout: default
3+
title: Concept
4+
parent: FAQ
5+
description: "Concept"
6+
---
7+
8+
# **Concepts for Programmers**
9+
10+
The **Concept Collections for Programmers** is a curated glossary designed to empower developers of all skill levels
11+
with a deep understanding of foundational and advanced programming concepts. Whether you are just starting your coding
12+
journey or refining your expertise, this collection serves as a practical guide to mastering critical programming ideas
13+
and principles.
14+
15+
Each entry in **Concept Collections for Programmers** includes:
16+
17+
- **Clear and Concise Explanations** – Straightforward descriptions of key programming concepts such as Object-Oriented
18+
Programming, Functional Programming, Asynchronous Operations, and Clean Code Principles.
19+
- **Real-World Applications** – Practical examples and use cases to demonstrate how these concepts are implemented in
20+
real-world scenarios, fostering better integration into your projects.
21+
- **Visual Aids and Code Snippets** – Diagrams and code snippets to simplify complex ideas, ensuring a more intuitive
22+
learning experience.
23+
24+
This collection is a valuable resource for improving your programming proficiency, equipping you with the knowledge to
25+
build efficient solutions, collaborate effectively, and adapt to the ever-evolving tech landscape.

pages/faq/software_development/what_is_binary.md renamed to pages/faq/concept/what_is_binary.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
layout: default
33
title: What is Binary?
4-
parent: Software Development
4+
parent: Concept
55
grand_parent: FAQ
66
description: "What is Binary?"
77
---

pages/faq/software_development/what_is_hexadecimal.md renamed to pages/faq/concept/what_is_hexadecimal.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
layout: default
33
title: What is Hexadecimal?
4-
parent: Software Development
4+
parent: Concept
55
grand_parent: FAQ
66
description: "What is Hexadecimal?"
77
---

pages/faq/term/business_logic_on_programming.md renamed to pages/faq/software_development/business_logic_on_programming.md

Lines changed: 18 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,21 @@
11
---
22
layout: default
33
title: What is Business Logic in Programming?
4-
parent: Term
4+
parent: Software Development
55
grand_parent: FAQ
66
description: "What is Business Logic in Programming?"
77
---
88

99
# What is Business Logic in Programming?
1010

11-
In software development, **business logic** refers to the core functionality that dictates how a program handles, processes, and enforces business rules, workflows, and data operations. It’s the layer of code that translates real-world business rules into functional software operations, bridging the gap between raw data and meaningful results.
11+
In software development, **business logic** refers to the core functionality that dictates how a program handles,
12+
processes, and enforces business rules, workflows, and data operations. It’s the layer of code that translates
13+
real-world business rules into functional software operations, bridging the gap between raw data and meaningful results.
1214

1315
---
1416

1517
### Table of Contents
18+
1619
1. [Introduction](#introduction)
1720
2. [Why Business Logic is Important](#why-business-logic-is-important)
1821
3. [Business Logic vs. Other Layers](#business-logic-vs-other-layers)
@@ -27,7 +30,9 @@ In software development, **business logic** refers to the core functionality tha
2730

2831
### 1. Introduction
2932

30-
Business logic is the backbone of any application. It ensures that the software operates in alignment with the real-world needs of the organization it serves. For example:
33+
Business logic is the backbone of any application. It ensures that the software operates in alignment with the
34+
real-world needs of the organization it serves. For example:
35+
3136
- In an e-commerce app, business logic might dictate how discounts are applied to a cart.
3237
- In a banking app, it ensures transactions follow regulations and business policies.
3338

@@ -50,17 +55,20 @@ In most software architectures (like MVC or layered architecture), business logi
5055
- **Presentation Layer**: Manages user interfaces (e.g., HTML, CSS, front-end frameworks).
5156
- **Data Layer**: Handles database operations (e.g., SQL queries, data storage).
5257

53-
Business logic resides in the **middle layer**, connecting the presentation and data layers. It processes inputs from users or systems, applies business rules, and outputs results.
58+
Business logic resides in the **middle layer**, connecting the presentation and data layers. It processes inputs from
59+
users or systems, applies business rules, and outputs results.
5460

5561
---
5662

5763
### 4. Examples of Business Logic
5864

5965
#### **E-Commerce Application**
66+
6067
- Calculating discounts based on customer type (e.g., VIP customers get 20% off).
6168
- Determining shipping costs based on location and package weight.
6269

6370
#### **Banking System**
71+
6472
- Ensuring sufficient balance before allowing a withdrawal.
6573
- Applying interest to savings accounts at the end of each month.
6674

@@ -69,7 +77,8 @@ Business logic resides in the **middle layer**, connecting the presentation and
6977
### 5. How to Manage Business Logic in Code
7078

7179
1. **Centralize Rules**
72-
Keep all business rules in a dedicated service or class. This avoids duplication and makes the rules easier to maintain.
80+
Keep all business rules in a dedicated service or class. This avoids duplication and makes the rules easier to
81+
maintain.
7382

7483
2. **Leverage Frameworks**
7584
Frameworks like Laravel, Spring, or Django provide layers where business logic can be implemented effectively.
@@ -97,4 +106,7 @@ Business logic resides in the **middle layer**, connecting the presentation and
97106

98107
### 7. Conclusion
99108

100-
Business logic is the heart of any application, ensuring that it meets organizational requirements and delivers value. By clearly defining and managing this logic, developers can build software that is reliable, scalable, and aligned with real-world needs. A strong focus on modularity, separation of concerns, and testing can help maintain robust and adaptable business logic over time.
109+
Business logic is the heart of any application, ensuring that it meets organizational requirements and delivers value.
110+
By clearly defining and managing this logic, developers can build software that is reliable, scalable, and aligned with
111+
real-world needs. A strong focus on modularity, separation of concerns, and testing can help maintain robust and
112+
adaptable business logic over time.

pages/faq/term/data_access_logic_on_programming.md renamed to pages/faq/software_development/data_access_logic_on_programming.md

Lines changed: 22 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,21 @@
11
---
22
layout: default
33
title: What is Data Access Logic in Programming?
4-
parent: Term
4+
parent: Software Development
55
grand_parent: FAQ
66
description: "What is Data Access Logic in Programming?"
77
---
88

99
# What is Data Access Logic in Programming?
1010

11-
**Data access logic** refers to the layer of a software application responsible for interacting with the data source, such as a database, file system, or API. It handles tasks like fetching, inserting, updating, and deleting data, providing a bridge between the data storage layer and the rest of the application.
11+
**Data access logic** refers to the layer of a software application responsible for interacting with the data source,
12+
such as a database, file system, or API. It handles tasks like fetching, inserting, updating, and deleting data,
13+
providing a bridge between the data storage layer and the rest of the application.
1214

1315
---
1416

1517
## Table of Contents
18+
1619
1. [Introduction](#introduction)
1720
2. [Role of Data Access Logic in Software Architecture](#role-of-data-access-logic-in-software-architecture)
1821
3. [Key Responsibilities of Data Access Logic](#key-responsibilities-of-data-access-logic)
@@ -26,9 +29,12 @@ description: "What is Data Access Logic in Programming?"
2629

2730
## 1. Introduction
2831

29-
In software development, data access logic serves as the **gatekeeper** to the data. It ensures that data operations are performed efficiently, securely, and consistently. By abstracting data access logic into its own layer, applications can maintain clean separation of concerns, making the code more modular and maintainable.
32+
In software development, data access logic serves as the **gatekeeper** to the data. It ensures that data operations are
33+
performed efficiently, securely, and consistently. By abstracting data access logic into its own layer, applications can
34+
maintain clean separation of concerns, making the code more modular and maintainable.
3035

3136
For example:
37+
3238
- In a banking app, data access logic retrieves account balances from a database.
3339
- In an e-commerce app, it saves a customer’s order to the database.
3440

@@ -37,10 +43,12 @@ For example:
3743
## 2. Role of Data Access Logic in Software Architecture
3844

3945
Data access logic typically resides in the **data layer** of a multi-layered architecture, such as:
46+
4047
- **MVC (Model-View-Controller)**: Data access logic is often in the Model layer.
4148
- **Three-Tier Architecture**: It is part of the data tier, separate from business logic and presentation layers.
4249

4350
By isolating data access logic, developers can:
51+
4452
1. Replace or update the database without affecting other layers.
4553
2. Reuse data access methods across different parts of the application.
4654

@@ -59,7 +67,9 @@ By isolating data access logic, developers can:
5967
## 4. Examples of Data Access Logic
6068

6169
### **SQL Query Example**
70+
6271
Direct database interaction using raw SQL:
72+
6373
```python
6474
import sqlite3
6575

@@ -76,9 +86,11 @@ connection.close()
7686
```
7787

7888
### **Using ORM Frameworks**
89+
7990
ORMs like Hibernate, Entity Framework, and Laravel Eloquent simplify data access by abstracting SQL into objects.
8091

8192
#### Python (Django ORM)
93+
8294
```python
8395
from myapp.models import User
8496

@@ -88,6 +100,7 @@ print(user.name)
88100
```
89101

90102
#### PHP (Laravel Eloquent)
103+
91104
```php
92105
$user = User::find(1);
93106
echo $user->name;
@@ -110,10 +123,14 @@ echo $user->name;
110123
Use indexing, joins, and caching techniques to improve query performance.
111124

112125
5. **Abstract Data Access Logic**
113-
Use repositories or services to encapsulate data access methods, making it easier to change the data source in the future.
126+
Use repositories or services to encapsulate data access methods, making it easier to change the data source in the
127+
future.
114128

115129
---
116130

117131
## 6. Conclusion
118132

119-
Data access logic is an essential component of software architecture, ensuring efficient and secure interaction with data sources. By implementing best practices and leveraging tools like ORMs, developers can build applications that are both robust and maintainable. Proper separation of this layer not only enhances performance but also promotes clean, modular code that is easier to debug and scale.
133+
Data access logic is an essential component of software architecture, ensuring efficient and secure interaction with
134+
data sources. By implementing best practices and leveraging tools like ORMs, developers can build applications that are
135+
both robust and maintainable. Proper separation of this layer not only enhances performance but also promotes clean,
136+
modular code that is easier to debug and scale.

pages/faq/term/what_is_object_in_programming.md renamed to pages/faq/software_development/what_is_object_in_programming.md

Lines changed: 29 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,21 @@
11
---
22
layout: default
33
title: What is an Object in Programming?
4-
parent: Term
4+
parent: Software Development
55
grand_parent: FAQ
66
description: "What is an Object in Programming?"
77
---
88

9-
109
# What is an Object in Programming?
1110

12-
In the world of programming, an object is a fundamental concept that lies at the heart of Object-Oriented Programming (OOP). Simply put, an object is a self-contained entity that bundles together data (attributes or properties) and behaviors (methods or functions). It mirrors real-world objects, making it easier to model and solve complex problems.
11+
In the world of programming, an object is a fundamental concept that lies at the heart of Object-Oriented Programming (
12+
OOP). Simply put, an object is a self-contained entity that bundles together data (attributes or properties) and
13+
behaviors (methods or functions). It mirrors real-world objects, making it easier to model and solve complex problems.
1314

1415
---
1516

1617
### Table of Contents
18+
1719
1. [Introduction](#introduction)
1820
2. [Key Characteristics of an Object](#key-characteristics-of-an-object)
1921
- [Encapsulation](#encapsulation)
@@ -30,32 +32,42 @@ In the world of programming, an object is a fundamental concept that lies at the
3032

3133
### 1. Introduction
3234

33-
In the world of programming, **an object** is a fundamental concept that lies at the heart of Object-Oriented Programming (OOP). Simply put, an object is a self-contained entity that bundles together **data** (attributes or properties) and **behaviors** (methods or functions). It mirrors real-world objects, making it easier to model and solve complex problems.
35+
In the world of programming, **an object** is a fundamental concept that lies at the heart of Object-Oriented
36+
Programming (OOP). Simply put, an object is a self-contained entity that bundles together **data** (attributes or
37+
properties) and **behaviors** (methods or functions). It mirrors real-world objects, making it easier to model and solve
38+
complex problems.
3439

3540
---
3641

3742
### 2. Key Characteristics of an Object
3843

3944
#### **Encapsulation**
40-
An object encapsulates its data and behavior, ensuring they function as a single unit. For example, a car object might have:
45+
46+
An object encapsulates its data and behavior, ensuring they function as a single unit. For example, a car object might
47+
have:
48+
4149
- Properties: `color`, `make`, `model`, `speed`.
4250
- Methods: `accelerate()`, `brake()`, `honk()`.
4351

4452
#### **State and Behavior**
53+
4554
- **State** refers to the current values of an object's properties.
4655
*Example:* A `lightBulb` object could have `isOn: true`.
4756
- **Behavior** defines what the object can do.
4857
*Example:* The `toggle()` method could change the state of `isOn`.
4958

5059
#### **Identity**
60+
5161
Each object is unique. Even if two objects have the same properties and values, they are distinct instances.
5262

5363
---
5464

5565
### 3. Objects in Popular Programming Languages
5666

5767
#### **Python**
68+
5869
Everything in Python is an object. You can create custom objects using classes.
70+
5971
```python
6072
class Car:
6173
def __init__(self, color, model):
@@ -71,7 +83,9 @@ my_car.drive() # Output: The car is driving
7183
```
7284

7385
#### **Java**
86+
7487
Objects are instances of classes, which serve as blueprints.
88+
7589
```java
7690
class Car {
7791
String color;
@@ -87,14 +101,16 @@ myCar.drive(); // Output: The car is driving
87101
```
88102

89103
#### **JavaScript**
104+
90105
Objects are central to the language, created with object literals or classes.
106+
91107
```javascript
92108
const car = {
93-
color: "green",
94-
model: "SUV",
95-
drive: function() {
96-
console.log("The car is driving");
97-
}
109+
color: "green",
110+
model: "SUV",
111+
drive: function () {
112+
console.log("The car is driving");
113+
}
98114
};
99115
console.log(car.color); // Output: green
100116
car.drive(); // Output: The car is driving
@@ -120,4 +136,6 @@ car.drive(); // Output: The car is driving
120136

121137
### 5. Conclusion
122138

123-
An object in programming is a powerful abstraction that simplifies problem-solving by modeling real-world entities. Mastering objects and their properties is essential for anyone diving into Object-Oriented Programming, as it forms the foundation for building robust, reusable, and maintainable code.
139+
An object in programming is a powerful abstraction that simplifies problem-solving by modeling real-world entities.
140+
Mastering objects and their properties is essential for anyone diving into Object-Oriented Programming, as it forms the
141+
foundation for building robust, reusable, and maintainable code.

0 commit comments

Comments
 (0)