Skip to content

Instantly share code, notes, and snippets.

@KMG112
KMG112 / NewStudent
Created March 16, 2015 20:39
Matt wuertz hw day 1
newstudent(){
cd documents
mkdir GeneralAssembly
cd GeneralAssembly
mkdir Homework Notes Projects Outcomes
cd Homework
mkdir -p week01 day01
cd ..
cd Notes
mkdir -p week01 day01
puts "Hello, I am C-3PO, Human-cyborg relations. What is your name?"
name = gets.chomp.to_s
puts "It is a pleasure to meet you, " + name
puts name +"? How interesting, for someone from around these parts."
puts "I am terribly sorry for prying, but you dont by any chance go by the alias of
Obi-Wan Kenobi, do you?(answer I do or I dont )"
answer = gets.chomp.to_s
if answer == "I do" || "i do" || "I DO" || "i Do"
puts "Oh, marvelous! Somply marvelous! say hello to R2-D2; he's been looking all
over for you."
@KMG112
KMG112 / 2015-05-05.md
Created May 5, 2015 13:14
Javascript

Learning Javascirpt has been an experience of understanding programming in general. Seeing the difference between Javascript and ruby has allowed me to see what goes into creating a language and how each language is necessary for its own specific purpose. I am enjoying the challenge that javascript presents. The murkiness of the inner workings of javascript will keep me on my toes for many months (or years) to come. The seemingly irrational behavior at some points is intriguing, when someone creates a language I doubt that they are creating certain behaviors just to mess with the programmer so I’m curious as to why certain outcomes (especially in coercion) happen. What purpose was supposed to be fulfilled by sometimes illogical outcomes. Its like a giant murder mystery, and somewhere in the code is the killer.

Ive found lexical scoping to be pretty intuitive which makes things easier to assimilate right off the bat. Since functions are the only thing that create local scope, the rules of knowing where you a