Skip to content

Instantly share code, notes, and snippets.

@ColinFendrick
Last active March 22, 2017 16:24
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ColinFendrick/809f8242e79680cb1a00d42a9ac8c554 to your computer and use it in GitHub Desktop.
Save ColinFendrick/809f8242e79680cb1a00d42a9ac8c554 to your computer and use it in GitHub Desktop.

Code to Perdition

I grew up with math. Specifically, I grew up with logic. I was on the math team in high school, spent my free time learning set theory and logic, and majored in Math with a focus on set theory in college. I still bristle when people use ‘inverse’ when they mean ‘converse’, but that’s mostly because I’m also an ass.

What excites me most about Javascript is being able to develop in a language that is logically and syntactically similar to modal logic. I am at home in conditional statements and JavaScript follows the same functional logic.

The praxis of Javascript, and the reorientation of my thinking into conditional statements, also, I believe, will help me think about programming going forward. I want to understand the reasons and logic behind programs, and gaining new insights into specific structures of programs is exciting.

The portfolio customization option enervated me: the practical application of seeing a new webpage form - actualizing a finished product - bores me. Learning new skills quickens me. I spent the adventure portion of the portfolio not altering layouts, but learning new tricks with CSS to understand better the options available, and Javascript gives me a broad and deep language with which to create new structures and logical nuances. And then I guess the users can experience and work with that, or not, whatever.

FizzBuzz code

for (i = 0; i < 101; i++) {
    if ((i % 3 === 0) && (i % 5 !== 0)) {
        console.log('Fizz')
    } else if ((i % 5 === 0) && (i % 3 !== 0)) {
        console.log('Buzz')
    } else if ((i % 3 === 0) && (i % 5 === 0)) {
        console.log('FizzBuzz')
    } else {
        console.log(i)
    }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment