Skip to content

Instantly share code, notes, and snippets.

View klockey's full-sized avatar

Keith Lockey klockey

View GitHub Profile
We have learned a great deal about react and components. We have also learned about the mobx library and how it can condense react code. React greatly simplifies the web making process by encapsulating variables in a 'state'. Mobx, simplifies React even more by putting variablesand functions in a core place called the store. I would like to learn angular which is being developed by the Google team. Its main philosophy is one should write declarative code instead of iterative code when writing web applicatons. I have heard it is very similar to React, but React is more popular. I have heard that Jquery is interesting as well because it has to do with Dom manipulation event handling and ajax.
@klockey
klockey / gist:d77a5038b819f84b54393311941a881a
Last active April 18, 2017 10:41
Experience with Javascript
We first started out with CSS and Html. I learned the rules of both but I think I didn't have a concise method of doing either so
I was just slapping code together and seeing if it would work. This last weekend when I worked on my portfolio, I noticed that I was
taking a more measured approached to both of these languages. I feel more confident about them now. As far as Javascript is
concerned, I felt more comfortable because it is more of a procedural language which I am more comfortable with. React has
a big learning curve and I feel I am starting to make real improvements in it. My goal is to write React code with very little help.
https://www.codewars.com/users/krock/completed_solutions
function invert(array) {
if (array.length === 0){
https://www.codewars.com/users/krock/completed_solutions
function divisors(integer) {
z = []
i = 2
while ((i <= integer - 1)){
if (integer % i === 0){
z.push( i)
}
i++

GIST 3

VIRTUAL DOM

React is a new technology that has benefits and opportunities for programmers.  The most outstanding reason, I think, is its ability to speed up the javascript process by using a Virtual DOM.  Normal javascript programming has to frequently write/read to the DOM is costly in terms of speed and overhead.  This writing to the DOM is basically how HTML is rendered.  Normally, Javascript reads from the DOM as well which is costly.  With React, data is written and read from a Virtual DOM (a memory system) before being rendered to the web page.:: 

OTHER BENEFITS

Code warnings in React are also very helpful to the programmer. Making an error is quickly demonstrated to the programmer who is developing. React also has a good events system, where the programmer can upload his events to a datastore. Many programmers use these event system data-stores for their their own benefit. React is object oriented which lends itself to be modular, self contained and reusable. This makes it easy
@klockey
klockey / FizzBuzz.md
Last active March 22, 2017 16:25
Description of Javascript

Javascript is exciting because of its ability to manipulate and control aspects of the user experience of the web. It is a lightweight scripting language that will control the html elements and css selectors. Every website you go to probably has some javascript working in the background on the browser.

Web Development is powerful because it contains two components. A front end which houses Javascript and a backend which holds a backend language such as php, Java or Ruby. The back end languages typically manipulate important information to be stored in a database like MySql. They are more concerned with moving data backward to the database and forward to the browser. The front end manipulates data at end user level and then might pass the data back to the backend.

Java script has some very interesting things in its language. For example if you write a variable in a function without declaring it, it is considered a global variable. Unlike other languages, === means that two variables are equal

# Homework 1
#### Fixed vs. Growth: The Two Basic Mindsets That Shape Our Lives
I think we as a culture have the idea that intelligence is a static quality of an individual. We are born with traits which make
us rise above the rest or keep us beneath others. While I think there are some fixed thresholds for each individual abilities, we
may never know this unless we give lots of effort into our endeavors. **Fixed mindsets** only focus on winning or losing and
critique themselves by these two qualities. **Growth mindsets** see learning and failure as growth opportunities. Growth mindsets
don't get discouraged by failure or hyper-elated by a win. There objective is to learn and grow.
I have felt fixed before as far as debugging code is concerned. Thoughts might rush through my head when I am working on a problem