본문 바로가기

NodeJS

(13)
자바스크립트 prototype 이해 자바스크립트 prototype 을 이해하는게 예전 c언어 포인터 이해하는 만큼페러다임을 바꾸네요어떻게 보녀 그냥 넘어갈 수 잇는데 제가 봤을 때는 자바스크립트 핵심이라고 생각되는 원리입니다 여러 검색중 추천 링크 올립니다 http://muckycode.blogspot.kr/search/label/JavaScripthttp://insanehong.kr/post/javascript-prototype/http://www.nextree.co.kr/p7323/http://bonsaiden.github.io/JavaScript-Garden/ko/http://roroom.blogspot.kr/2014/08/blog-post.htmlhttp://www.bsidesoft.com/?p=319
nodejs 스타일 가이드 원문 http://pismute.github.io/nodeguide.com/style.html Felix's Node.js Style GuideTabs vs Spaces세미콜론에디터미백한 줄의 길이따옴표{중괄호}Variable declarations변수와 프로퍼티 이름Class names대문자 상수객체 / 배열의 생성등호prototype을 확장하기조건문함수의 길이Return 문클로저 이름클로저 중첩Nested하기콜백Object.freeze, Object.preventExtensions, Object.seal, with, evalGetters and settersEventEmitters상속 / 객체 지향 프로그래밍'node.js' 어플리케이션의 스타일에 관한 공식문서는 없다. 이 문서는 어디까지나 내 생각..
JSHint 옵션 정리 JSHint 옵션 정리 예정 http://jshint.com/docs/options/ 제가 필요하다고 생각되는 옵션 위주로 작성하였습니다 1. camelcase 처음 프로그래밍을 c언어로 공부하였는데요즘 스타일과 다르게 코딩을 합니다 int hello_world() {} hello_world
JSHint 설정 JSHint 설정원문 : http://jshint.com/docs JSHint 는 문법 오류를 잡는 툴입니다 이걸 왜 쓰냐면 아래의 코드가 console.log("hello world"); 에러를 발생시키네요...function.js 'console' is not defined. 흠.. 바꿔야지 JSHint 메뉴얼에 있는 내용을 정리한번 해보겠습니다 1. JSHint 설정을 바꾸는 3가지 방법이 있습니다1-1) --config 옵션을 사용해서 설정파일을 적용ex) jshint --config myconfig hello.js 1-2) .jshintrc 파일을 만들면 자동으로 JSHint 는 이 파일을 가지고 설정을 셋팅합니다 1-3) package.json 파일에 적용하기ex)"jshintConfig": ..
구글 자바스크립트 코딩 가이드 http://google-styleguide.googlecode.com/svn/trunk/javascriptguide.xml Google JavaScript Style GuideRevision 2.93Aaron Whyte Bob Jervis Dan Pupius Erik Arvidsson Fritz Schneider Robby Walker Each style point has a summary for which additional information is available by toggling the accompanying arrow button that looks this way: ▽. You may toggle all summaries with the big arrow button:▽ Toggle a..