- Computations executing during overlapping time periods
- A computation can make progress without waiting for the other computations to complete
- Parallel: multiple components executing at exactly the same time
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 |
From: Node.js, Require and Exports and Organize Your Code with RequireJS
Modules are small components of an application that serve a specific purpose.
From: Writing Testable Javascript
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.
From: Recursion
Yes. Of course. Always.
Follow Up Question: Will you now?
Yes.