- 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
const reduce = (f) => (acc, iter) => { | |
if (!iter) acc = (iter = acc[Symbol.iterator]()).next().value; | |
for (const a of iter) acc = f(acc, a); | |
return acc; | |
} | |
const go = (arg, ...fs) => reduce((arg, f) => f(arg))(arg, fs); | |
const Pair = (left, right) => (destructurePair) => destructurePair(left, right); |
- https://github.com/kciter/awesome-style-guide // ์คํ์ผ ๊ฐ์ด๋
- https://github.com/getify/You-Dont-Know-JS // ์๋ฐ์คํฌ๋ฆฝํธ ํ
- https://github.com/you-dont-need/You-Dont-Need-Javascript // CSS๋ง์ผ๋ก ํ๋ก ํธ์๋ ์์ฑ
- https://github.com/una/YouMightNotNeedJS // CSS๋ง์ผ๋ก ํ๋ก ํธ์๋ ์์ฑ
- https://github.com/sorrycc/awesome-javascript // ์๋ฐ์คํฌ๋ฆฝํธ ๊ด๋ จ ๋ผ์ด๋ธ๋ฌ๋ฆฌ, ๋ฌธ์
- https://github.com/enaqx/awesome-react // ๋ฆฌ์ํธ ๊ด๋ จ ๋ผ์ด๋ธ๋ฌ๋ฆฌ, ๋ฌธ์
- https://github.com/brillout/awesome-react-components // ๋ฆฌ์ํธ ์ปดํฌ๋ํธ ๋ผ์ด๋ธ๋ฌ๋ฆฌ
- https://github.com/loverajoel/jstips // ์๋ฐ์คํฌ๋ฆฝํธ ํ
- https://github.com/nhnent/fe.javascript // ์๋ฐ์คํฌ๋ฆฝํธ ํ
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 gulp from 'gulp'; | |
import sass from 'gulp-sass'; | |
import autoprefixer from 'gulp-autoprefixer'; | |
import sourcemaps from 'gulp-sourcemaps'; | |
import uglify from 'gulp-uglify'; | |
import rename from 'gulp-rename'; | |
import cleanCSS from 'gulp-clean-css'; | |
import browserify from 'browserify'; | |
import babelify from 'babelify'; | |
import source from 'vinyl-source-stream'; |
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 UIKit | |
import RxSwift | |
import RxAlamofire | |
import ObjectMapper | |
class Post: Mappable { | |
var id: Int = 0 | |
var title: String = "" | |
required init?(_ map: Map) { |
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 strict'; | |
var gulp = require('gulp'), | |
gutil = require('gulp-util'), | |
rename = require('gulp-rename'), | |
glob = require('glob'), | |
sass = require('gulp-sass'), | |
cleanCSS = require('gulp-clean-css'), | |
babelify = require('babelify'), | |
browserify = require('browserify'), |
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
/** | |
* Definition for singly-linked list. | |
* struct ListNode { | |
* int val; | |
* ListNode *next; | |
* ListNode(int x) : val(x), next(NULL) {} | |
* }; | |
*/ | |
#include <map> |
๋๊ธ๋ง ํฌ์ธํฐ๋ ์ด๋ฏธ ํด์ ๋ ๋ฉ๋ชจ๋ฆฌ๋ฅผ ๊ฐ๋ฆฌํค๊ณ ์๋ ํฌ์ธํฐ๋ฅผ ๋ปํ๋ค.
#include <stdio.h>
int main() {
int *p = (int*)malloc(sizeof(int));
free(p); // p๋ ๋๊ธ๋ง ํฌ์ธํฐ
p = 1; // ์ด๋ฏธ ํด์ ํ๊ธฐ ๋๋ฌธ์ ์๋ฌ๊ฐ ๋ฐ์
}
์ฑ๊ธํค ํจํด์ด๋ ๋จ ํ๋์ ๊ฐ์ฒด๋ก ์กด์ฌํด์ผํ๋ ๊ฐ์ฒด๋ฅผ ๊ตฌํํด์ผ ํ ๋ ๋ง์ด ์ฌ์ฉ๋๋ค.
์ฃผ๋ก ๊ฐ์ฒด์ ๋ถ์ ์ ํ ์์กด๊ด๊ณ๋ฅผ ์ง์ฐ๊ธฐ ์ํด ๋ง์ด ์ฌ์ฉ๋์ง๋ง ๊ฐ์ฒด์งํฅ ๊ฐ๋
์ ์ ๋ชจ๋ฅด๊ณ ์ฌ์ฉํ ๊ฒฝ์ฐ ์คํ๋ ค ๋ ์์ข์ ์ฝ๋๊ฐ ๋ ๊ฐ๋ฅ์ฑ์ด ๋๋ค.
์์ค๋ ๋ค์๊ณผ ๊ฐ๋ค. (C++๋ก ์์ฑ๋จ)
#include <stdio.h>
class MyClass
{
public:
NewerOlder