-
Notifications
You must be signed in to change notification settings - Fork 18
react_week_2 #465
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
react_week_2 #465
Conversation
Week 2 JS Basics
React_Week_2
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks awesome! One important thing I want to note is that we should put an emphasis on ES6 rather than it being a secondary thing. Like we introduce the topic with up-to-date ES6 syntax but also note older syntax. I noticed var is used throughout, change it to const and let because we'll be using that way more ---. an explanation as to how they work is in the 2nd checkbox.
Also, your images appear to be local, ask kevin how to put it on the web
there are a couple things I want to note:
-
we rarely ever write javascript directly in the
<script>tag and it's really only for demos. we instead write code in a.jsfile and it's linked to the html through asrcattribute like so:
<script src="script.js"></script>
you can indicate this in card 2 somewhere -
so apart from card 2, I would recommend changing all code blocks to use the javascript format (it provides nice colors!) and remove the
<script>tags. -
for card 3,
letandconstkeyword were introduced in ES6 and are different fromvar.letandvarare kind of similar but differ in scope:varis function scoped, meaning that if you declare it in anifstatement, it can be used outside theif.letis what you'd expect with a normal variable as in it's block scoped.constis a constant and cannot be changed and has the same scope aslet. -
for card 4, it's great! you might want to include ternary operators and say its an
ifstatement but in a line (this is extremely useful in react) -
side note: for an explanation above, you don't have to mention this now, maybe later when we get to react, but they're not only differentiated by its looks in terms of length. ternary operators are conditional expressions, while ifs are statements. in return statements, you can only use expressions but not statements:
iereturn x > 5 ? 'yes' : 'no'
but you can't do:return if (x > 5) { yes }; else { no } -
for card 6, you might want to mention
map,filter,reducewhich was introduced in ES5. it's another way of iteration and used a ton more in react -
for card 8, separate selectors and events into different cards. selectors include
getElementById(...), querySelector(...), getElementByClassName -
for card 9, you might want to move arrow functions to card 7 and add it at the beginning (see msg at top)
other than that, it looks pretty awesome! I love the structure of the whole thing and the attention to detail for each card. keep up the awesome work!
|
@vvennela Please make the changes Bryan mentioned and update this pull request 😄 |
Add files via upload
Create mongodb_cirriculum
|
|
||
| Add this function to the <script> tag: | ||
|
|
||
| ```javascript |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you explain what each function is suppose to do? Besides just say "insert this function". Rn all they are doing is just following instruction but remember the end goal is that the student learns
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This goes for this entire activity
|
|
||
|  | ||
|
|
||
| Choose the "Starter Clusters" Option and Create a cluster! A cluster is essentially a collection of various nodes, which each handle different parts of data. The main advantage that comes with using a cluster is that nodes are mainly independent of each other and can be examined seperately. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
explain what a node is? Explain collections. Explain what a NoSQL database and why it is important
|
|
||
|  | ||
|
|
||
| MongoDB uses collections in order to store data, which are basically like tables. No newline at end of file |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Explain how to filter through collections and data. Explain how to add data. There is much more to mongoDB atlas
| @@ -0,0 +1,34 @@ | |||
| # F1.2: Introduction to Stitch + Using Stitch | |||
|
|
|||
| Another component of MongoDB is using Stich, which allows you to configure rules, authentication and other services for your services. To fully understand Stitch, let's build a blog which allows you to post and edit comments. | |||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
explain rules, authentication and other services before diving into making a blog
jeffchhen
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewed all your cards. Please complete my edits by this weeks deadline (Sunday)
Thanks!
|
|
||
| Another component of MongoDB is using Stich, which allows you to configure rules, authentication and other services for your services. To fully understand Stitch, let's build a blog which allows you to post and edit comments. | ||
|
|
||
| Make sure you've created your cluster and your account to access and finish this tutorial. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Show thme how to link the cluster to the stitch app
|
|
||
| ## Step 2: Authentication | ||
|
|
||
| On the starting page, scroll down and turn on "Anonymous Authentication." There are other ways to configure authentication, such as through Google or through username and password authentication. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What is Authentication? What is the purpose of it? What difference does it make to do Anonymous vs Email/Pass
|
|
||
| ## Step 3: Setting Rules for the Application | ||
|
|
||
| 1. On the Stich Homepage, click "Rules" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Imagine yourself as someone new to MongoDB. Yes its easy to follow instructions but we want the person going through the content to learn what is going on. What is the purpose of a template? Why do we choose No Template? What if we wanted to use a template?
What is the difference between read and write columns?
|
|
||
|  | ||
|
|
||
| 7. Finally, deploy your application. No newline at end of file |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What is the purpose of deploying the application? What will this allow us to do?
|
|
||
| Paste this below the SDK in the head tag: | ||
|
|
||
| Replace the "<your-app-id>" with your app id, which you can find on the clients page of the Stitch homepage |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
show them exactly where the app-id is
|
|
||
| Add this function to the <script> tag: | ||
|
|
||
| ```javascript |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This goes for this entire activity
|
|
||
|  | ||
|
|
||
| Accessing all this data means that you can take a closer look at the clusters formed. Try exploring the data to gain a greater understanding of how Compass functions and manipulates databases. No newline at end of file |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Explain to the user what each component of the GUI does
| @@ -0,0 +1,37 @@ | |||
| # F1.1 An Introduction to MongoDB and Atlas | |||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
All your image tags are local. You need to upload them imgur or something and replace the links.
Changes proposed in this pull request:
@reviewer/Kevin