본문으로 바로가기

arx2580

현재위치 :: HOME BLOG CATEGORY SEARCH ARCHIVE TAGS MEDIA LOCATION GUESTBOOK

네비게이션

  • 홈
  • 태그
  • 미디어로그
  • 위치로그
  • 방명록
관리자
  • 블로그 이미지
    세그루

    링크추가
  • 글쓰기
  • 환경설정
  • 로그인
  • 로그아웃

Node.js require vs ES2015 import/export

Node.js에서 사용할 수 있는 module system:Importing modules using require, and exporting using module.exports and exports.fooImporting modules using ES6 import, and exporting using ES6 export. 그럼 둘 간의 차이는?require() from NodeJS (CommonJS)dynamic loading을 할 수 있다.synchronous (여러 개를 require하면 순차적으로 처리) import from ES6named import를 사용할 수 있고, import하는 대상을 온전히 로딩하는게 아니고, 그 중 필요한 부분만 destructuring처럼 가져올 수 있어서 메모..

Coding 2017. 7. 7. 17:56

nodejs backend 개발을 할때 nodemon, process manager...?

최근 Frontend에는 grunt, gulp를 거쳐서 webpack이 대세가 되었다.그러면 이제 backend는 뭘로 해야 하는가라는 생각이 들기 시작했다.어떻게 build하고, 어떻게 production에서 실행시키켜야 할까? Process managers for Express apps친절하게도 Express에서 Express app을 production에 적용할때 사용가능한 process manager들을 정리해 놓았다. process manager를 이용해서 얻을 수 있는 장점들Restart the app automatically if it crashes.Gain insights into runtime performance and resource consumption.Modify settings ..

Coding 2017. 7. 7. 14:08

create-react-app에서 알아두면 좋을 것들

Create React App은 single-page React app을 zero configuration으로 만드는 것을 도와주기 위한 Official CLI 도구입니다. (since 2016)zero configuration을 지향하기 때문에 React Stater Kit보다 훨씬 simple한 구조를 가지고 있어 보이고, 무엇보다 Facebook이 support를 해주고 있다는 게 최대의 장점이라 할 수 있을 것 같습니다. GitHub star로만 봐도 17년 7월 현재 29,805 vs 14,564로 Create React App이 더 hot하다고 할 수 있겠네요. 게다가 Create React App은 많은 documentation을 통해 내부 구조라던가 design decision에 대한 이유..

Coding 2017. 7. 6. 14:46

default export와 named export의 차이

ES module에서 default, named export의 차이를 쉽게 설명해 놓은 글들을 찾기가 어려웠는데StackOverflow에 좋은 설명 글이 있어서 가져와 봅니다. http://stackoverflow.com/questions/36795819/react-native-es-6-when-should-i-use-curly-braces-for-import/36796281#36796281 요약하자면..default export는 1개만 존재 가능하고, 나머지는 named export.default export된거는 아무 이름으로 import 가능하지만 named import ( { A } )는 할 수 없고,named import를 하기 위해서는 named export를 해야만 한다. 예제들이 포함되어..

Coding 2017. 7. 5. 12:27

Node 8 그리고 npm 5

2017년 5월 31 Node.js 8.0.0이 발표되었고, 현재는 8.1.2 버전까지 발표되었습니다.어떤 것들이 변경되었는지 살펴보겠습니다. 우선 Node.js 8의 변화부터 보겠습니다. 1. Node.js API (N-API)N-API는 현재는 experimental feature이지만 native Addon들을 위한 API입니다. JavaScript runtime (예. V8) 과 독립적이고, Node.js 자체적으로 유지보수됩니다. 기존의 native module들은 C/C++로 작성되어있고, V8이나 Native Abstrations for Node.js (NAN) API들에 의존적입니다. 이로 인해 매번 Node.js가 major release될 때마다 native module들이 recomp..

Coding 2017. 6. 16. 10:49

@SpringBootTest, @WebMvcTest 차이

@SpringBootTest is the general test annotation. If you're looking for something that does the same thing prior to 1.4, that's the one you should use. It does not use slicing at all which means it'll start your full application context and not customize component scanning at all.@WebMvcTest is only going to scan the controller you've defined and the MVC infrastructure. That's it. So if your contr..

Coding 2017. 6. 15. 09:54

Angular? AngularJS?

* Angular? AngularJS? - 2.0.0부터 Semantic Versioning (SEMVER)을 적용 - 1.x 버전은 `AngularJS` ![AngularJS](https://angularjs.org/img/ng-logo.png) - 2.0.0부터는 `Angular` - 이후로는 Time-based Release Cycle이 적용됨 - 매주 patch release, 매 6개월마다 3개의 minor update & 1개의 major update (beta, RC 포함) * Angular 4.0.0 - Released on 2017.3.23 - 2.x에서 3을 건너뛰고 4.0.0으로 간 배경 - core Angular library들이 하나의 GitHub repository (https:..

Coding 2017. 6. 15. 09:39

h2 embedded mode에서 한글이 깨지는 경우

[현상] spring boot을 이용해서 h2 embedded mode에 한글 데이터를 넣는 경우 다음과 같이 한글이 깨지는 경우가 발생합니다. [원인]아마도 java character encoding을 그대로 이용하기 때문인 것으로 보입니다. [해결 방법] jvm을 실행시킬때 -Dfile.encoding=UTF-8 옵션을 주게 되면 다음과 같이 정상적으로 한글이 노출됩니다.

Coding 2015. 6. 15. 15:31

How to change ${USER} in IntelliJ IDEA

Open following files existing in path C:\Program Files (x86)\JetBrains\IntelliJ IDEA 14.1.3\bin idea.exe.vmoptions or idea64.exe.vmoptions Adding the line -Duser.name=Your name IntelliJ IDEA uses the java system property user.name to fill ${USER} http://stackoverflow.com/questions/19618669/intellij-idea-override-user

Coding 2015. 6. 2. 10:24

Swagger vs RAML

Ole Lensmar, CTO at SmartBear Software, is Co-Founder of Eviware Software (joined forces with SmartBear in 2011), and the creator of SoapUIhttp://www.slideshare.net/olensmar/swagger-InTheAPILifecyclehttps://www.youtube.com/watch?v=wQd_2TBvyW8 SmartBear announced acquiring Swagger in March 2015Tony Tam, the creator of Swagger and CEO of ReverbSwagger APIs for Humans (http://www.slideshare.net/feh..

Coding 2015. 6. 2. 10:18
  • 이전
  • 1
  • 2
  • 다음

사이드바

NOTICE

  • 전체 보기
MORE+

CATEGORY

  • 분류 전체보기 (59)
    • 음악 (1)
    • IT 기기 (3)
    • Coding (19)
    • 생각들 (3)
    • 재미 (3)
    • 기타 (2)
    • FitNesse (2)
    • 오피스 (1)
    • 스타일리쉬 아이템 (1)
    • 성능테스트 (1)
    • 재테크 (1)
    • 맛집 (2)
    • Life (6)
    • 광고 (3)
    • Car (1)
    • Travel (5)

RECENTLY

  • 최근 글
  • 최근 댓글

최근 글

최근댓글

Trackback

TAG

  • es2015
  • 아이폰7S
  • 효리네민박
  • springboottest
  • 리커피머신
  • 란실리오
  • gulp
  • ds115j
  • nodejs
  • 아이폰8 가격
MORE+

ARCHIVE

CALENDAR

«   2025/05   »
일 월 화 수 목 금 토
1 2 3
4 5 6 7 8 9 10
11 12 13 14 15 16 17
18 19 20 21 22 23 24
25 26 27 28 29 30 31

LINK

VISITOR

오늘
어제
전체
  • 홈으로
  • 방명록
  • 로그인
  • 로그아웃
  • 맨위로
SKIN BY COPYCATZ COPYRIGHT arx2580, ALL RIGHT RESERVED.
arx2580
블로그 이미지 세그루 님의 블로그
MENU
  • 홈
  • 태그
  • 미디어로그
  • 위치로그
  • 방명록
CATEGORY
  • 분류 전체보기 (59)
    • 음악 (1)
    • IT 기기 (3)
    • Coding (19)
    • 생각들 (3)
    • 재미 (3)
    • 기타 (2)
    • FitNesse (2)
    • 오피스 (1)
    • 스타일리쉬 아이템 (1)
    • 성능테스트 (1)
    • 재테크 (1)
    • 맛집 (2)
    • Life (6)
    • 광고 (3)
    • Car (1)
    • Travel (5)
VISITOR 오늘 / 전체
  • 글쓰기
  • 환경설정
  • 로그인
  • 로그아웃
  • 취소

검색

티스토리툴바