Skip to content

Instantly share code, notes, and snippets.

@edshadi
Created November 25, 2013 22:11
Show Gist options
  • Save edshadi/7649844 to your computer and use it in GitHub Desktop.
Save edshadi/7649844 to your computer and use it in GitHub Desktop.
all programs / programming languages / software 3 kinds of artifacts and 1 quality
- data
x = 123
y = "hello"
z = true
my_name = gets.chomp
- decisions
if CONDITION1
elsif CONDITION2
elsif CONDITION3
else // default
end
---
switch (ANSWER)
case QUESTION1
case QUESTION2
default
end
- loops
do
...
while CONDITION_IS_TRUE
---
do
...
until CONDITION_IS_FALSE
---
for(ITEM in COLLECTION)
end
* flow (language type, or design type)
- imperative programming
- declarative programming
- functional programming
- object oriented programming
- event driven programming
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment