- Clear feature ownership
- Module usage predictibility (refactoring, maintainence, you know what's shared, what's not, prevents accidental regressions, avoids huge directories of not-actually-reusable modules, etc)
This file contains hidden or 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
| module Account expsoing (Account) | |
| type alias Account = | |
| { id : Int | |
| , name : String | |
| , balance : Money | |
| , instruments : List Instrument | |
| , otherStuff : OtherStuff | |
| } |
This file contains hidden or 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
| body { | |
| color: #212121; | |
| font-family: "Helvetica Neue", "Calibri Light", Roboto, sans-serif; | |
| -webkit-font-smoothing: antialiased; | |
| -moz-osx-font-smoothing: grayscale; | |
| letter-spacing: 0.02em; | |
| } |
This file contains hidden or 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'; | |
| export default React.createClass({ | |
| /* | |
| * För att testa logiken i denna metoden behöver vi | |
| * en instans av denna komponenten, annars är "this" inte | |
| * bundet till något och varken "props" eller "state" är tillgängliga. | |
| */ | |
| doAllTheThings() { |
This file contains hidden or 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
| use GuzzleHttp\Client; | |
| $client = new Client([ | |
| 'base_uri' => '127.0.0.1:8001', | |
| ]); | |
| $client->request('POST', 'http://httpbin.org/post', [ | |
| 'body' => 'raw data' | |
| ]); |
This file contains hidden or 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 hasResources = require('./hasResources'); | |
| var EditableImageBlock = React.createClass({ | |
| // bla bla bla ... | |
| }); | |
| module.exports = hasResources(EditableImageBlock); |