Skip to content

Instantly share code, notes, and snippets.

View joelcorey's full-sized avatar
🏠
Working from home

Joel Corey joelcorey

🏠
Working from home
  • Clatskanie, Oregon
View GitHub Profile
Scope is the "area" in which a variable lives. Unless dealing with specific use cases, such as a library, variables should be kept out of global scope. A function should have one job (single responsibility). This also falls in line with KISS (Keep It Simple Stupid), makes your code easier to read, and easier to maintain. JavaScript's sctrict mode, "use strict;", forces you to use "let" and "const" when declaring variables. This is best practice, and should be how you code. When a function reaches outside of the scope in which it should exist, it can have unintended side effects. A side effect is bad and can be avoided by not using globals. A pure function is when a functions output is only determined by its input.
https://repl.it/@joelcorey/Make-student-reports-drill
https://repl.it/@joelcorey/Enroll-in-summer-school-drill
https://repl.it/@joelcorey/find-by-id-drill
https://repl.it/@joelcorey/validate-object-keys-drill
@joelcorey
joelcorey / gist:f9a0533a98624a735d216aa2c08f5a8d
Created February 22, 2019 13:29
Mentor jQuery questions
Has native JavaScript mostly caught up to jQuery?
When using libraries such as React, how much of a role does jQuery play?
Is jQuery "on the job" increasing or decreasing?
Or is it mostly remaining the same?
If it's sticking around, what's the future of it look like? And what is something you wish jQuery did .. or did better ?
add items:
handleNewItemSubmit()
generate cuid(), pass value in to new key/value pair of global object to maintain state
call renderShoppingList() to update rendered state
check/uncheck items:
handleItemCheckClicked()
lookup by unique id, change necessary object value
call renderShoppingList() to update rendered state
Client: "Dumb" consumer of data. Business logic present, but core data not present.
Server: Database and possibly serverless functionality. Data is sent to the client via request for consumption.
See this for drawing/example: https://imgur.com/gallery/eOQm0tH
@joelcorey
joelcorey / Portfolio
Created March 7, 2019 16:51
Start to portfolio
Title:
Joel Corey
Short bio:
I am a Full Stack Developer who is currently based in Salem, Oregon. As someone who resides in the greater Pacific Northwest, I enjoy the outdoors and technology in equal measure. I pride myself on learning new things and being adaptable. While I enjoy that beautiful one line piece of code, I prefer readability and maintainability above all else. While I am capable of working by myself, sharing and collaborating are some of the perks of this profession that I enjoy the most. Above all else, I love learning and look forward to new experiences daily. Feel free to contact me and browse some of my projects using the provided links.
Project example 1:
Bookmarks App
(As of this submit this project is pending) This project is an interactive bookmark management web application. It focuses on using an API to both store and retrieve user bookmarks. The user can rate, save, and delete bookmarks. Additionally, there is both a description and a link to the external resource.
@joelcorey
joelcorey / gist:095ce9ac8df6330773211717252e81be
Last active April 19, 2019 21:00
A question for Meetup!
I am in a code camp and rapidly approaching two capstone milestones in the curriculum. The camp focuses on React / JavaScript.
I would really like to do a project that had a benefit to a local business, person, and/or charity. Some ideas I have come up
with are:
1.) Yet Another Triva (flashcard) App - While I would have fun making this, it's been done 8 billion times
2.) A non linear pipe-able math note taking app thing (see draft user-stories here: https://github.com/joelcorey/mathnote)
3.) Salem, Oregon does not have a bus app. This is extremely lame and un-acceptable for any modern city.
4.) Your idea here.
I know this probably isn't what is expected in a Meetup discussion area, so I apologize if I am breaking any rules.
1.)
YouTube API subscription list endpoint:
https://developers.google.com/youtube/v3/docs/subscriptions/list
Required:
part - string
The part parameter specifies a comma-separated list of one or more subscription resource properties that the API response will include.
Optional:
forChannelId string
The forChannelId parameter specifies a comma-separated list of channel IDs. The API response will then only contain subscriptions matching those channels.
MVP
A mobile-fist single-page-web-app for Salem, Oregon bus transit.
Unlike many other cities across the United States, Salem, Oregon has failed to develop a worthwhile mobile application for its bus transit system. The goal of this project is to address that in the easiest, most-convenient fashion possible.
- The app will have a splash screen explaining basic functionality
- At a minium the application will display all routes
- The application will require GPS location for accurate position reporting, the user will opt-in to this
- The user will be able to search for a destination via Google Places API
- App will select the best route/stop based on users destination input
First load / splash page explanation for user orientation:
https://compassionate-bose-829d76.netlify.com/map-freshopen-view.html
Map search view:
https://compassionate-bose-829d76.netlify.com/map-search-view.html
Show all bus routes view:
https://compassionate-bose-829d76.netlify.com/map-show-all-busroute.html
Show closest bus stop with route selection: