Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Organize dummy-workout insights Git, Java, JS, Python & Linux #2618

Open
wants to merge 10 commits into
base: master
Choose a base branch
from
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ The command above will fetch all new work from the server since you either clone
Keep in mind that `fetch` will only download the missing data in the repository, but not `merge` it in the working directory.

To automatically do this, you can use the `git pull` command. However, your current branch must be set up to track the remote branch.

```bash
git pull
```
Expand All @@ -61,7 +61,6 @@ To automatically download and merge missing work from say the `master` branch re
git pull origin master
```


---

## Practice
Expand Down
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -357,6 +357,10 @@ Types of change:
- [TypeScript - Never - Remove extra question gap](https://github.com/enkidevs/curriculum/pull/2624)
- [TypeScript - Introduction to Type Aliases - Remove extra question gap](https://github.com/enkidevs/curriculum/pull/2624)

## February 9th 2021

### Archived
- [Git, Java, Linux, Javascript, Python - Dummy Workouts - Archive all insights that already exist in the content](https://github.com/enkidevs/curriculum/pull/2618)

## February 5th 2021

Expand Down
1 change: 1 addition & 0 deletions git/essentials/git-features-i/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ insights:
- git-ignore
- check-the-reflog
- subdirectory-checkout
- perform-a-dry-run
aspects:
- introduction
- workout
Expand Down
Original file line number Diff line number Diff line change
@@ -1,12 +1,7 @@
---
author: rosielowther
levels:
- advanced
type: normal
category: must-know
aspects:
- workout
- deep
links:
- >-
[github.com](https://github.com/jbranchaud/til/blob/master/git/dry-runs-in-git.md){website}
Expand All @@ -20,7 +15,7 @@ revisionQuestion:
context: relative
---

# Perform a dry run
# Perform a Dry Run


---
Expand Down
1 change: 1 addition & 0 deletions java/java-fundamentals/java-tips-i/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ insights:
- use-comments-to-explain-the-purpose-of-code
- avoid-excessively-long-comments
- avoid-synonyms-when-naming
- java-naming-conventions
- follow-existing-project-naming-conventions

game: java-8
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ revisionQuestion:
context: relative
---

# Java naming conventions
# General Naming Conventions


---
Expand Down
13 changes: 13 additions & 0 deletions java/java-fundamentals/java-tips-vi/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
name: Tips VI

description: Tips and features for a better understanding Java.

insights:
- avoid-tab-characters
- avoid-using-to-test-the-end-of-a-range

aspects:
- deep
- obscura
- workout
- introduction
Original file line number Diff line number Diff line change
@@ -1,18 +1,7 @@
---
author: adamMontgomerie

levels:
- basic
- advanced
- medium

type: normal

category: tip

tags:
- java-common-practises

links:

- >-
Expand Down
Original file line number Diff line number Diff line change
@@ -1,22 +1,15 @@
---
author: pawel

levels:
- basic
- advanced
- medium

type: normal

category: best-practice

tags:
- best-practice

notes: As always - hope it's not to basic

---
# Avoid using `!=` to test the end of a range

# Avoid Using != to Test the End of a Range

---
## Content
Expand Down
2 changes: 2 additions & 0 deletions javascript/browser-apis/navigation/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ insights:
- modify-a-website-s-url
- warn-user-if-back-button-is-pressed
- top-location-href
- detect-do-not-track-status
- detect-online-connection
aspects:
- introduction
- workout
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,5 @@
---
author: catalin
levels:
- basic
- advanced
- medium
type: normal
category: feature
links:
Expand All @@ -14,7 +10,7 @@ revisionQuestion:
context: relative
---

# Detect **DO NOT TRACK** status
# Detect **DO NOT TRACK** Status


---
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
---
author: catalin
levels:
- basic
type: normal
category: tip
links:
Expand All @@ -17,7 +15,7 @@ revisionQuestion:
context: relative
---

# Detect online connection
# Detect Online Connection


---
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@
author: pawel
type: normal
category: how-to
tags:
- url
practiceQuestion:
formats:
- fill-in-the-gap
Expand All @@ -16,7 +14,7 @@ revisionQuestion:
context: standalone
---

# Form a `URL` from its parts
# Form a URL From Its Parts


---
Expand Down
4 changes: 2 additions & 2 deletions javascript/browser-apis/navigation/modify-a-website-s-url.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ revisionQuestion:
context: standalone
---

# Modify a website's URL
# Modify a Website's URL


---
Expand All @@ -30,7 +30,7 @@ The HTML5 History API enables developers to alter a website's URL without a full

The format is:

```plain-text
```javascript
history.pushState([data], [title], [url]);
```

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ revisionQuestion:
context: standalone
---

# Navigating the browser history
# Navigating the Browser History


---
Expand All @@ -28,27 +28,27 @@ The History API allows navigation of the browser history.

To move backward once (like a *Back* button click)

```plain-text
```javascript
window.history.back();
```

To move forward once (like a *Forward* button click):

```plain-text
```javascript
window.history.forward();
```

To move backward (negative) or forward (positive) to a particular point in history, an integer can be passed:

```plain-text
```javascript
window.history.go(int); /* current page
at 0, -1 goes back once, 1 goes
forward once */
```

The history length can be found by:

```plain-text
```javascript
window.history.length;
```

Expand Down
4 changes: 2 additions & 2 deletions javascript/browser-apis/navigation/top-location-href.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ revisionQuestion:
context: standalone
---

# `top.location.href`
# Top.location.href


---
Expand All @@ -26,7 +26,7 @@ revisionQuestion:

`top.location.href` returns the location of the topmost window in the window hierarchy. If a window has no parent, `top` is a reference to itself:

```plain-text
```javascript
window === window.top
```

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ revisionQuestion:
context: standalone
---

# Warn user if **Back** button is pressed
# Warn User if **Back** Button Is Pressed


---
Expand Down
1 change: 1 addition & 0 deletions javascript/ecmascript-2015/spread-map-set-math/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ description: Idiomatic way to use and inspect data structures in JavaScript.
insights:
- spread-part-1
- spread-part-2
- rest-parameters
- map-data-structure
- set-data-structure
- weakmap
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
---
author: rosielowther
levels:
- medium
type: normal
category: feature
links:
Expand All @@ -24,18 +22,36 @@ revisionQuestion:

## Content

ES6 introduces **rest** parameters. These are indicated by three dots `...` preceding a parameter. The rest parameter is an array that contains an indefinite number of arguments.
Next to the **spread** operator, there is also a **rest** parameter.

The **rest** parameter is indicated by three dots `...` preceding a parameter. It is an array that contains an indefinite number of arguments.

In this example, if more than three parameters are passed to the function, the additional parameters will be stored in `rest`:

function(a, b, c, ...rest) {
// ...
}
```javascript
function(a, b, c, ...rest) {
// ...
}
```

Since **rest** and **spread** use the same symbol `...`, it's easy to confuse them.

A good way to think of it is that **rest** is used when taking data (take a, b and the rest) while **spread** is used when giving data (give a, b and spread some more).

This differs from the `arguments` object of ES5 that would contain **all** the parameters if it was used.
```javascript
// rest
function (a, b, ...rest) {
}

const [a, b, ...rest] = x

Another difference is that a rest parameter is a true array and so can have array methods such as `sort()` applied to it.
// spread
x(a, b, ...spread);

x = [a, b, ...spread]

x = { a, b, ...spread }
```

---

Expand Down Expand Up @@ -66,7 +82,6 @@ Store all parameters under `rest` in the function:
function(??????) {

}

```

- ...
Expand Down
1 change: 1 addition & 0 deletions javascript/javascript-core/flow-control/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ insights:
- js-switch-statement
- loops-part-1
- loops-part-2
- using-assignment-operators
- data-type-comparison-in-switch-statements
- flow-control-discussion-insight

Expand Down
Loading