Skip to content

Instantly share code, notes, and snippets.

View just-Bri's full-sized avatar
✍️
Hard at work

just_Bri just-Bri

✍️
Hard at work
View GitHub Profile
@just-Bri
just-Bri / js_questions.txt
Created August 17, 2019 19:08
Javascript Questions
1. What are some real world use cases/scenarios where ES6 makes programming in JS easier or more efficient?
(anon/pointer functions?)
2. What are your thoughts on supersets of JS, like Typescript etc?
3.
4.
5.
@just-Bri
just-Bri / js_dataTypes.txt
Last active August 17, 2019 19:42
Data Types
1. let mentor = "First Last";
2. console.log(mentor);
3. let and var are interchangable now, I think? The scope is different: var is function scoped and let is block scoped.
const is used to create a variable that you will not be changing, a constant.
@just-Bri
just-Bri / traffic_errors.txt
Created August 17, 2019 20:57
Traffic Lights and Errors
https://repl.it/@reifnotreef/Traffic-lights-drill
https://repl.it/@reifnotreef/Error-alert-drill
https://repl.it/@reifnotreef/Creating-arrays-drill
https://repl.it/@reifnotreef/Adding-array-items-drills
https://repl.it/@reifnotreef/Accessing-array-items-drill
https://repl.it/@reifnotreef/Array-length-and-access-drill
https://repl.it/@reifnotreef/Array-copying-I-drill
What is scope? Your explanation should include the idea of global vs. block scope.
Scope is the part of a program that something is in. Global means it's accessible from anywhere, block means it lives within that area of the code.
Why are global variables avoided?
AFAIK they are generally frowned upon just because they're global. They can cause naming issues or referencing issues.
Explain JavaScript's strict mode
when you issue 'use strict' at the top of your .js file it will throw an error any time you initialize a variable without a let/const before it.
What are side effects, and what is a pure function?
@just-Bri
just-Bri / thinkful_overview_insights
Created September 15, 2019 14:01
Thinkful Overview
1. I have been told I have good communication skills but can come off as abrasive when not meaning to. This is something I have been working on.
2. There were some really good points about not just listening, or even just active listening, but thinking about what you listened to. I will be sure to apply this during and after Thinkful.
3. Same as #2. I'm also very excited about pair and group programming!
@just-Bri
just-Bri / scope_stuff
Created September 17, 2019 11:40
Variable Scope
What is scope? Your explanation should include the idea of global vs. block scope.
The part of a file/program that a certain function is accessible, block being within a function etc. Global being defined outside of a function and available anywhere.
Why are global variables avoided?
They can cause serious issues with scope and may intefer with code you did not write.
Explain JavaScript's strict mode
When a variable is declared without the let or const keyword, an error will be triggered.
What are side effects, and what is a pure function?
@just-Bri
just-Bri / QuizAppsubmission.txt
Created September 23, 2019 18:41
Quiz App submission
https://github.com/thinkful-ei-heron/heesu_reif_quiz_app
https://thinkful-ei-heron.github.io/heesu_reif_quiz_app/
Worked with Heesu(https://github.com/hskang135) on this project.
For the first full day on Friday we used VS Code Live Share to work together.
After that it was a mix of live share and screensharing etc.
@just-Bri
just-Bri / How-web-apps-work
Created September 26, 2019 18:27
How web apps work
1. Write an analogy to describe the relationship between clients and servers:
Customer(client) in a restaurant(server) orders(get reequest) something and the restaurant(server) gives them food(data returned from server to client).
2. Draw a diagram of the request/response cycle.
You can draw your diagram by hand and take a photo to add to your Gist, or try out a
diagramming tool like Google Drawings or LucidChart (be sure to sign up for the free tier!).
https://i.imgur.com/VIiOqmQ.png
1. Does this API require authentication?
'Most requests must be authenticated.'
2. Does this API support CORS?
Yes.
3. Find the events search endpoint documentation. Describe in detail the response format of the events search endpoint.
I'm assuming you are asking for: api.meetup.com/find/upcoming_events
The response is a list of objects which tell you the city and upcoming events in that city.
Inside the event opbject it has attendance info, host info, photo if given, description,