Skip to content

Instantly share code, notes, and snippets.

@seongjin605
seongjin605 / async-await.js
Created December 23, 2019 08:35 — forked from wesbos/async-await.js
Simple Async/Await Example
// 🔥 Node 7.6 has async/await! Here is a quick run down on how async/await works
const axios = require('axios'); // promised based requests - like fetch()
function getCoffee() {
return new Promise(resolve => {
setTimeout(() => resolve('☕'), 2000); // it takes 2 seconds to make coffee
});
}

Folder Structure

Motivations

  • 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)
@seongjin605
seongjin605 / querydsl.md
Created September 20, 2019 06:44 — forked from gksxodnd007/querydsl.md
querydsl이 무엇이고 어떻게 사용하는지 알아보자.

QueryDsl이란?

  • JPQL의 빌더(Criteria)클래스

QueryDsl 사용전 설정

  • dependency 추가
dependencies {
  compile("com.querydsl:querydsl-core:4.2.1")
  compile("com.querydsl:querydsl-apt:4.2.1")
  compile("com.querydsl:querydsl-jpa:4.2.1")
List()
var list = Immutable.List([1,2,3])
// [1, 2, 3]
List.isList()
Immutable.List.isList(list)
// true
List.of()
var list = Immutable.List.of(1,2,3);
@seongjin605
seongjin605 / use-git-and-git-flow.adoc
Created August 28, 2018 13:27 — forked from ihoneymon/use-git-and-git-flow.adoc
git 을 기반으로 git-flow를 사용하여 애플리케이션 배포버전을 관리하자.

GIT을 기반으로 한 프로젝트 개발프로세스

깃을 사용합시다. 깃을 쓰자. 깃을 쓰란 말야!!

  • SVN은 변경이력이 많아질수록 속도가 느리지.

    • 커밋 및 처리속도가 빠르다. 변경이력이 많이 축적되어 있어도 속도저하가 거의 없다.

  • 커밋찍기가 어렵다.