This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This manifesto will guide me through my path as Developer. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(1..100).map do |n| | |
n | |
"Pegcar" if remainder_zero?(n, 35) | |
"car" if remainder_zero?(n, 7) | |
"Peg" if remainder_zero?(n, 5) | |
end | |
def remainder_zero?(a, b) | |
a % b == 0 | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const config = { | |
entry: 'path/to/your/application/entry/point.js'; | |
}; | |
module.exports = config; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const config = { | |
entry: [ | |
'app/assets/javascripts/main.js', | |
'app/assets/javascripts/application.js' | |
]; | |
}; | |
module.exports = config; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const config = { | |
output: { | |
path: path.resolve(__dirname, 'dist'), | |
filename: 'bundle.js' | |
}; | |
}; | |
module.exports = config; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var path = require('path'); | |
var webpack = require('webpack'); | |
module.exports = { | |
entry: './assets/application.js', | |
output: { path: __dirname, filename: 'bundle.js' }, | |
module: { | |
loaders: [ | |
{ | |
test: /.jsx?$/, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React from 'react'; | |
import ReactDOM from 'react-dom'; | |
class Hello extends React.Component { | |
render() { | |
return <h1> Hello! </h1> | |
} | |
} | |
ReactDOM.render(<Hello />, document.getElementById('hello')); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import Hello from './components/hello.jsx'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!doctype html> | |
<html> | |
<head> | |
<meta charset="UTF-8"> | |
<title>Hello React</title> | |
</head> | |
<body> | |
<div id="hello"></div> | |
<script src="bundle.js"></script> | |
</body> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Chapter 1 - Object-Oriented Design | |
1. The Problem Design Solves | |
> It is the need for change that makes design matter. | |
2. Why Change is Hard | |
> Parts interact to product behavior (objects), the interaction is made through messages passed between them. | |
> Object-Oriented Design is about managing dependencies. | |
> OOD - Set of coding techniques to arrange dependencies so objects can tolerate change. | |
OlderNewer