Vocab

kmote

Seg Fault'n,
Messages
5,801
Location
The dried husk where America came from
I would like to say first that I have not checked any of these, I am going by what I use and any corrections and additions are welcome.

I'll start with easy with some symbols to save my poor brain. Preferred names are first and possible alternatives come after.

Symbols

() parentheses, brackets

[] brackets, square brackets

{} braces, curly brackets

<> chevrons, inequality signs

. dot

# hash, sharp

~ tilde

& ampersand

^ caret, hat

* asterisk, multiplication

` backtick

' single quote

" double quote

| vertical bar, pipe

- subtraction, hyphen

+ addition

! exclamation point, bang

\ backslash, bash

/ forward slash, whack, division

#! shebang (contraction of sharp and bang)

Coding terms

Array - A named variable that holds a number of other variables of a specific type.

Exception - A specific condition that is met during program execution; generally used for generating error messages, but can also be used for branching to a different execution path of the program.

Function - A block of code that can be called from somewhere else in the code.

Loop - A code block that repeats while a condition is true.

Pointer - A variable that is linked to, or "points to", a specific memory address / block of addresses. Is used to directly modify the memory or memory space that a variable is associated with.

Queue - Similar to a stack, except uses FIFO concept (First In, First Out). Think of it like a line (or queue) of people waiting for a ticket. The first person in line will receive their ticket before the person that comes in line after them.

Stack - a set of variables, objects, etc. laid out consecutively in memory. Uses FILO concept (First In, Last Out). The first variable in, will be the last one "popped" off the top of the stack.

[variable] Type - Many languages require that a variable holds a certain type of data. The range of types available depend on the language.

Variable - In short this is a "space" where a value is kept. A name is used to keep track of this space.

Operators

[left++] - evaluate then increment
[++right] - increment then evaluate
[left--] - evaluate then decrement
[--right] - decrement then evaluate
[left == right] - test equality between left and right
[left != right] - test inequality between left and right
[left < right] - test left less than right
[left <= right] - test left less than or equal to right
[left > right] - test left greater than right
[left >= right] - test left greater than or equal to right
[left || right] - test left or right is true
[left && right] - test left and right is true
[left += right] - assign left to the value of left + right
[left -= right] - assign left to the value of left - right
[left *= right] - assign left to the value of left * right
[left /= right] - assign left to the value of left / right
 
Last edited:
lol it's for real oldskool.

Shebang means #! together.

The shebang line refers to the location of shell or perl and is written on the very first line of code.

Usually looks like:

#!/bin/sh
or
#!/usr/bin/perl
 
lol it's for real oldskool.

Shebang means #! together.

The shebang line refers to the location of shell or perl and is written on the very first line of code.

Usually looks like:

#!/bin/sh
or
#!/usr/bin/perl

@Baez,

Thanks for that clarification :p
 
Back
Top Bottom