- In the context of Node, what is a
module
?- A chunk of code that can be shared (required) between files, much like classes and modules can be shared between files in Ruby. There is no syntax required when creating what may become a module. Instead, use of
module.exports
at the end of a file determines what code is available when usingvar access = require('path/to/file')
in another file that may need it.
- A chunk of code that can be shared (required) between files, much like classes and modules can be shared between files in Ruby. There is no syntax required when creating what may become a module. Instead, use of
- The code examples from the second blog post look very different from the first. Why?
- The first is using the syntax from node to export modules, whereas the second is using a file and module loader called RequireJS.
My code: here
- Responder #1 (here) - This individual took a similar approach, though they did not utilize a ternary. Additionally, they used an interesting check with the modulo to ensure that the remainder for the
year / 100
was greater than 0, and not equal to 0. I assume this was done in place of ensuring that it was not cleanly divisible by 100, but I found it to be a less readable implementation. - Responder #2 (here) - This individual's approach was verbose with regard to usage of
return
statements for true or false, but, as a result, it was easy to follow their thought process. I was intrigued to see usage of anif
statement after anelse if
. It indicated a level of flexibility within JavaScript syntax that I wouldn't have expected. - Responder #3 ([here](http://exercism.io/submissions/
- What is
ES6
?
- Officially ECMAScript 6, it is the most recent build of syntax for JavaScript (ECMAScript is the 'proper' name for JavaScript).
- What is Transpilation and how does it relate to
ES6
?
- A source-to-source compiler. With regard to
ES6
, a tool like Babel would allow you to write inES6
and have the code compiled toES5
, for environments whereES6
might not yet be supported.
- Looking at the ES6 features link below, discuss one update from
ES5
and if it seems useful/superfluous.
- I had seen the new 'arrow' syntax but didn't have an understanding of it. In short, it is shorthand for
function
and is of particular use when a single-line function is being called. From the examples found here:
var bar = foo.map(function(x) { return x.length; });
becomes:
What are you looking for in your first job?
- In my first position I'd like to work with individuals and a company whose mission I identify with and find meaning in. I would prefer a product that individuals can benefit from. In work environment, I would prefer an organization that provides mentorship and growth opportunities for junior developers, allowing me to continue my learning while also providing me opportunities and challenges to be an active, contributing team member.
What are your top 3 priorities in your first job?
- Supportive environment for junior developers
- Work/life balance
- Location
What are some barriers you identified, as well as what you could do to mitigate these barriers?
rails new <project_name> -d postgresql --skip-turbolinks --skip-spring -T
-d postgresql
sets up the project to use PostgreSQL--skip-turbolinks
&--skip-spring
creates a project that does not use turbolinks or spring-T
skips the creation of the test directory and use ofTest::Unit
- In the Gemfile:
- Weekly curated playlist of 30 songs
- Automatically generated and delivered to all Spotify users
- Free and incredibly popular
- "Machine learning is the idea that there are generic algorithms that can tell you something interesting about a set of data without you having to write any custom code specific to the problem. Instead of writing code, you feed data to the generic algorithm and it builds its own logic based on the data." - Machine Learning is Fun
- What is a primary key?
- The unique identifier for each row in a table.
- What is a foreign key?
- A reference in one table to the primary key in another table that it shares a relationship with.
- Why would one row of data have both primary and foreign keys?
- When a relationship exists between the tables that requires one table to track a row in another.
- What is Rails' convention for the column name of the primary key?
id
- What is Rails' convention for the column name of a foreign key?
tablename_id
- Load/Reload waffle.
- Get most current list of actions for the project.
- Choose a card from the backlog in waffle. If we're working separately, it's best to move that card that you've chosen into ready and perhaps assign it to yourself as well.
- Make sure multiple team members aren't working on the same issue; ensure everyone knows what each other is working on.
- git checkout master
- git pull origin master
- Ensure you're starting on the master branch and have the most recent changes pulled down.
- run rspec
- Make sure there are no outstanding issues with code on master.
How does the Agile model compare to the Waterfall model?
- Agile is based around regular adjustments, constant feedback, and planning of short-term deliverables, while the Waterfall model plans out the entire project from start to finish at the beginning.
Why do you think Agile is so popular in software development?
- Because it allows for consistent feedback from the client and reduces the amount of wasted time and effort put into areas of the product that may not be desired by the client.
Do you think Agile is applicable to all industries?
- Yes and no. Melinda Gates has stated that many non-profits could take cues from Coca-Cola, due to their use of constant feedback to adjust their approach and strategies in developing markets. However, as we discussed in class, construction work typically utilizes a Waterfall approach, and in similar instances where modifications to previously completed elements is very difficult or impossible, Agile may not be appropriate.
- First let's read MDN HOW WEB WORKS.
- Next let's watch a few quick examples of how the internet works.
- And [how IP addresses work](https://www.youtube.com/watch?v=KFooN7Mu0IM - how IP addresses work).
- Finally let's tie these things together and watch a video about DNS - what happens when you type an address into a web browser.
NewerOlder