mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2026-03-24 20:00:39 -04:00
feat(curriculum): adding relational DB chapter review page (#62266)
This commit is contained in:
@@ -202,7 +202,7 @@ This query would return all users because the condition `OR "1"="1"` is always t
|
||||
|
||||
The N+1 problem occurs when an application makes one query to retrieve a list of items (N) and then makes an additional query for each item to retrieve related data, resulting in N+1 queries.
|
||||
|
||||
**Why It’s Bad**
|
||||
**Why It's Bad**
|
||||
|
||||
- Each query adds network and processing overhead.
|
||||
- Multiple small queries are slower than one optimized query.
|
||||
|
||||
@@ -54,6 +54,7 @@ dashedName: review-bash-commands
|
||||
- **`rm`**: Delete files.
|
||||
- **`-r`**: Recursively delete directories and their contents.
|
||||
- **`echo`**: Display a line of text or a variable's value.
|
||||
- Use `>` to overwrite the existing content in a file. (e.g., `echo "text" > file.txt`)
|
||||
- Use `>>` to append output to a file **without overwriting existing content** (e.g., `echo "text" >> file.txt`).
|
||||
- **`exit`**: Exit the terminal session.
|
||||
- **`clear`**: Clear the terminal screen.
|
||||
|
||||
@@ -498,11 +498,11 @@ dashedName: review-bash-scripting
|
||||
|
||||
```bash
|
||||
RESPONSES=("Yes" "No" "Maybe" "Ask again later")
|
||||
echo ${RESPONSES[0]}
|
||||
echo ${RESPONSES[1]}
|
||||
echo ${RESPONSES[5]}
|
||||
echo ${RESPONSES[@]}
|
||||
echo ${RESPONSES[*]}
|
||||
echo ${RESPONSES[0]} # Yes
|
||||
echo ${RESPONSES[1]} # No
|
||||
echo ${RESPONSES[5]} # Index 5 doesn't exist; empty string
|
||||
echo ${RESPONSES[@]} # Yes No Maybe Ask again later
|
||||
echo ${RESPONSES[*]} # Yes No Maybe Ask again later
|
||||
```
|
||||
|
||||
- **Array inspection with declare**: Use `declare -p` to view array details.
|
||||
|
||||
@@ -11,9 +11,9 @@ dashedName: review-git
|
||||
|
||||
- **Definition**: A version control system allows you to track and manage changes in your project. Examples of version control systems used in software are Git, SVN, or Mercurial.
|
||||
|
||||
## Cloud Based Version Control Providers
|
||||
## Cloud-Based Version Control Providers
|
||||
|
||||
- **List of Cloud Based Version Control Providers**: GitHub and GitLab are popular examples of cloud based version control providers that allow software teams to collaborate and manage repositories.
|
||||
- **List of Cloud-Based Version Control Providers**: GitHub and GitLab are popular examples of cloud-based version control providers that allow software teams to collaborate and manage repositories.
|
||||
|
||||
## Installing and Setting up Git
|
||||
|
||||
@@ -69,7 +69,7 @@ If you choose not to set a preferred editor, then Git will default to your syste
|
||||
|
||||
## GitHub
|
||||
|
||||
- **Definition**: GitHub is a cloud-based solution that offers storage of version-controlled projects in something called "repositories", and enable collaboration features to use with those projects.
|
||||
- **Definition**: GitHub is a cloud-based solution that offers storage of version-controlled projects in something called "repositories", and enables collaboration features to use with those projects.
|
||||
- **GitHub CLI**: This tool is used to do GitHub-specific tasks without leaving the command line. If you do not have it installed, you can get instructions to do so from GitHub's documentation - but you should have it available in your system's package manager.
|
||||
- **GitHub Pages**: GitHub Pages is an option for deploying static sites, or applications that do not require a back-end server to handle logic. That is, applications that run entirely client-side, or in the user's browser, can be fully deployed on this platform.
|
||||
- **GitHub Actions**: GitHub Actions is a feature that lets you automate workflows directly in your GitHub repository including building, testing, and deploying your code.
|
||||
@@ -189,6 +189,8 @@ For an SSH key, you'll run:
|
||||
ssh-keygen -t ed25519 -C "your_email@example.com"
|
||||
```
|
||||
|
||||
`ed25519` is a modern public-key signature algorithm.
|
||||
|
||||
- **Signing Commits with GPG Keys**: In order to sign your commits with your GPG key, you'll need to upload your public key, not the private key, to your GitHub account. To list your public keys, you will need to run the following:
|
||||
|
||||
```sh
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user