Skip to content

Instantly share code, notes, and snippets.

@patwey
patwey / concurrent_computing_outline.md
Last active October 27, 2015 04:03
Concurrent Computing Lightning Talk Outline

Concurrent Computing

What is it?

  • Computations executing during overlapping time periods
  • A computation can make progress without waiting for the other computations to complete

Parallel vs. Concurrent

  • Parallel: multiple components executing at exactly the same time
@patwey
patwey / dbs_models_and_relationships_in_rails.md
Created October 28, 2015 00:11
Migrations, Databases, Models, and Relationships in Rails

Migrations, Databases, Models, and Relationships in Rails

Types of Relationships

  • One-to-One: One brain belongs to one person
  • One-to-Many: One cow has many stomachs
  • Many-to-Many: Many ideas belong to many people

Databases in Rails Apps

Getting Started With Phoenix

Intro (~10min)

  • What is Phoenix?
  • Why use it?

Set Up (~5min)

  • Install Elixir & Phoenix

Array Prototype Methods

I understand that functions in JavaScript can take any number of arguments.

Yes

I can describe the similarity between blocks in Ruby and anonymous functions in JavaScript.

Yes

Where are the methods available to all arrays (e.g. forEach, map, etc.) defined?

JavaScript Functions

I can explain the difference between function declarations and function expressions.

Yes

I can explain what the value of this is in a normal function.

Yes
What are some of the balances and trade offs between different sorting algoritms?
Stability
- stable sorts maintain the relative order of items with equal "values"
- important, obviously, if you value the relative order of your input
- e.g. merge sort, insertion sort
Runtime Analysis
- represents complexity in terms of time (Big-O analysis)
- trade-off: some faster algorithms require more space, so choosing a slower one might make sense where space is limited
@patwey
patwey / require.markdown
Last active February 11, 2016 19:04 — forked from rrgayhart/require.markdown
The Concept of Require

From: Writing Testable Javascript

Consider the four responsibilities that Rebecca lists for client side code

Did any of the responsibilities that she lists surprise you?

I think the one I've considered least in my past projects was application state, so that was the most surprising.

Do you feel like you mentally split your client side code in IdeaBox and other past projects into these responsibilities?

My personal project at the end of module 3 did not split up these responsibilities at all. I had code that would hit the Github API and deal with presentation & interaction all in the same function. I actually did consider the state of my app at one point in the project, so that dropping an Issue in the same column it was already in would not fire off an API call.

From: Mary Rose Cook Live Codes Space Invaders

What is one approach you can take from this Mary's code and implement in your project?

Torie and I liked her use of a "Keyboarder," and have since abstracted the event listeners for keyups and keydowns into a Keyboarder object in our project.

We also continued this method of organization throughout our code whenever possible. Asking questions like "should our Slime handle the creation of keyup event listeners?" helped us to delegate responsibilites more effectively.

@patwey
patwey / recursion.markdown
Last active February 26, 2016 21:49 — forked from rrgayhart/recursion.markdown
Recursion and Generators Homework

From: Recursion

Do you pronounce 'babel' in the same way?

Yes. Of course. Always.

Follow Up Question: Will you now?

Yes.