Skip to content

Instantly share code, notes, and snippets.

View mikeyamadeo's full-sized avatar

Pixel mikeyamadeo

View GitHub Profile
@mikeyamadeo
mikeyamadeo / learn_webpack.md
Last active August 29, 2015 14:19
Webpack learning resources
@mikeyamadeo
mikeyamadeo / learn_react.md
Last active August 29, 2015 14:19
Resources to learn react related techniques & best practices.
@mikeyamadeo
mikeyamadeo / 340final.md
Last active August 29, 2015 14:19
Design & Testing Final

Pattern Problem Solution Example

##Pattern - Chain of responsibility Problem: Prototype delegation

##Pattern - Plugin Problem:

@mikeyamadeo
mikeyamadeo / styling_approach.md
Created April 27, 2015 17:23
Styling design approaches

Styling

The approach to styling borrows heavily from 2 design philosophies:

#itcss Styling is organized by specificity layers from widespread reach and applicabilty with variables, mixins, & resets to very targeted styling with targeted .classes & helpers (!important):

@mikeyamadeo
mikeyamadeo / learn_ES6.md
Last active August 29, 2015 14:21
ES6 related learning

###let keyword let facts

  • Mozilla has had let for almost a decade. They completely replace var with it.

Explain the differences between var & let.

  • var is function scope
  • let is block scope
  • let does not get hoisted
@mikeyamadeo
mikeyamadeo / dynamic_component_rendering.md
Last active September 4, 2022 02:43
Different approaches to dynamically rendering components with JSX

###Intro I wanted to use a facade pattern to provide a simple api for rendering job information in different forms using a Job component that received two props:

  • the job data
  • how to render the job
import React from 'react'
import Job from 'JobComponent'
@mikeyamadeo
mikeyamadeo / I_Choose_You_notes.md
Created June 8, 2015 11:04
Notes on approach to scalable, maintainable applications with ReactJS + Webpack
  • configure fonts -> "Courier New", Courier, monospace !default
  • Make SelectPokemon view in Views folder. Register view with Routes:
import React from 'react'
import { Route } from 'react-router'
import App from '../App'
import SelectPokemon from '../App/Views/SelectPokemon'

var routes = (
  <Route handler={App} >
@mikeyamadeo
mikeyamadeo / imperative_vs_declarative_react.md
Created August 14, 2015 19:14
imperative vs declarative functions w/ react
  renderThings () {
    return this.props.things.map(thing => {
      return <li>{thing.name}</li>
    })
  },

 render () {
.Btn {
padding: .8em 1.5em;
color: white;
background-color: #EC87C0;
border: none;
}
render () {
return (
<button className='Btn'>
Submit
</button>
)
}