Skip to content

Commit

Permalink
Programming terms; cheat sheet
Browse files Browse the repository at this point in the history
  • Loading branch information
jzkyu committed Apr 3, 2024
1 parent c2340b4 commit 604a839
Show file tree
Hide file tree
Showing 7 changed files with 27 additions and 2 deletions.
7 changes: 6 additions & 1 deletion docs/Public/Software/Operating Systems/Bash cheat sheet.md
Original file line number Diff line number Diff line change
Expand Up @@ -109,4 +109,9 @@ fi
```
- `$?` stores the exit code for the last command

[^1]: https://www.cyberciti.biz/faq/grep-in-bash/
[^1]: https://www.cyberciti.biz/faq/grep-in-bash/

```shell
p10k configure
```
- Configure `powerlevel10k` looks
3 changes: 3 additions & 0 deletions docs/Public/Software/Theory/concurrent programming.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
*Concurrent programming* is a paradigm where tasks are executed simultaneously.

Examples include Go, Rust, Erlang
3 changes: 3 additions & 0 deletions docs/Public/Software/Theory/functional programming.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
*Functional programming* is a paradigm which consists of the composition of functions ([[pure function]]). It can evaluate mathematical functions.

Examples include Lisp,
5 changes: 5 additions & 0 deletions docs/Public/Software/Theory/immutable.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
*Immutable* refers to the state of an object - specifically, that it cannot be modified after creation. [^1]

This is in contrast to *mutable* objects, where they can be modified after creation.

[^1]: https://www.tiny.cloud/blog/mutable-vs-immutable-javascript/
3 changes: 3 additions & 0 deletions docs/Public/Software/Theory/imperative programming.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
*Imperative programming* is a paradigm that follows a sequence of commands, which updates the state of a program.

Examples include C, C++, Go, Cobol, Fortran, Java.
4 changes: 4 additions & 0 deletions docs/Public/Software/Theory/pure function.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
A *pure function* in [[programming]] is a [[function]] with the following properties:

1. A *pure function* always produce the same outputs for the same inputs
2. A *pure function* is [[immutable]] i.e. it will not affect any arguments or variables outside its scope
4 changes: 3 additions & 1 deletion docs/Public/Software/Tools/Productivity/MacOS cheat sheet.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,6 @@

`shift` + `cmd` + q`:` Quit all applications

`cmd` + `shift` + `g`: Search for path in Finder
`cmd` + `shift` + `g`: Search for path in Finder

`cmd` + `m`: Minimize window

0 comments on commit 604a839

Please sign in to comment.