분류 전체보기 썸네일형 리스트형 알고리즘 공부하는 방법 프로그래밍을 공부하는 다양한 사람들을 접해보고 싶어서 CodeStates pre코스를 등록했다. 알고리즘 문제를 가끔씩 풀기는 했지만, 이렇게 짧은 시간에 많은 문제를 접하기는 처음이다. 개인적으로 너무어렵다.. 그래서 알고리즘 공부법에 대해 찾아본 내용을 정리해보고자 한다. 1. 소스를 보기보다는 무조건 쳐보기! 2. 손으로 필기하면서 풀어보기 알고리즘 공부법 1. 먼저 알고리즘과 관련된 이론*(아래 참고) 을 공부하여 이해한다. 이론과 관련된 알고리즘 문제를 푸는 방법을 이해한다. 완벽하지 않아도 일부만 이해하는 것으로 충분하다! 2. 다음으로 관련된 알고리즘 문제를 풀어본다. 한 문제는 길어야 2시간 정도만 고민해본다. 2시간 정도 고민해도 모르겠으면 포기하자! 정답 소스를 보거나 다른 사람의 풀이.. 튜토리얼 지옥에서 좀 꺼내줘 https://codeburst.io/digging-my-way-out-of-tutorial-hell-6dd5f9927384 원문 미디엄의글을 짧게 요약해본다. 코딩을 배우기 위해 수 많은 강의와 튜토리얼을 진행한다.이중에 대다수가 튜토리얼을 제대로 진행하지 못한다.(코드 복붙, 중도포기 등으로)더 쉽게 접근가능한 튜토리얼로 건너뛰기 쉽상이다. `튜토리얼 중독` 어떻게 하면 이런 문제를 해결하고 뛰어난 강사에 의존하지 않고 내 스스로 믿고 배워나갈 수 있을까?한가지 해결책은 오픈소스 프로젝트에 참여하는 것이다.오픈소스 프로젝트에 참여한다는 것은 생각보다 훨씬 큰 일이며, 프로젝트를 차근차근 준비하면서 나의 가치를 알아갈 수 있을것이다. 오픈소스 프로젝트를 준비한다면 튜토리얼을 시작할 시간조차 없다. 다른.. The 'new' keyword Creates an object out of thin airAssigns the value of 'this' to be that objectAdds 'return this' to the end of the functionCreates a link(which we can access as _proto_) between the object created and the prototype property of the constructor function closure and keyword 'this' 'CLOSURE' 외부 함수의 변수에 접근할 수 있는 내부 함수 Closure only exists when an inner function makes use of variables defined from an outer function that has returned. Closure does not exist if you do not return an inner function and if that inner function does not make use of variables returned by an outer function. JavaScript will only remember values that are being used inside of the inner function, not all .. Object-Oriented Javascript and Prototypal Inheritance Inheritance: One object gets access to the properties and methods of another object Reflection : An object can look at itself, Listening and changing its properties and methods Objects and Functions Function Statement : initially put in to memory, but have to invoke it for it to execute 함수 선언식은 항상 상단으로 show(); function show() { console.log('displayed!'); } Function Expression( not hoisted ) + ( parameter ) = Immediately Invoked Function Expression(IIFE) : A unit of code that results in a value not initially put in to memory, when it hits this line it creates this function object on the fly... Types and Operators Primitive Type (Undefine, Null, Boolean, Number, String, Symbol): A type of data that represents a single value Undefine: represents lack of existence (you shouldn't set a variable to this)Null: represents lack of existence (you can set a variable to this) Operator: A special function that is syntactically (Written) differently Generally, operators take two parameters and return one result Execution Contexts and Lexical Environments Syntax Parser: A program that reads your code and determines what it does and If it grammar is valid(character by character, using a set of rules for what's valid syntax and decide what is your intend) Lexical Environment: Where something sits physically in the code you write'Lexical' means 'having to do with words or grammer'. A lexical environment exists in programming languages in which where.. Advanced Array Method Recap forEach: iterates over an array, runs a callback on each value and returns undefined map: creates a new array, runs a callback on each value and pushes the result of each callback in the new array filter: creates a new array, runs a callback on each value and if the result of the callback returns true, that value is added to the new array some: iterates through an array and runs a callback on ea.. Advanced Array Methods(reduce) reduce : Accepts a callback function and an optional second parameter Iterates through an array Runs a callback on each value in the array The first parameter to the callback is either the first value in the array or the optional second parameter The first parameter to the callback is often called "accumulator" The returned value from the callback becomes the new value of accumulatorWhatever is .. 이전 1 ··· 5 6 7 8 9 10 11 다음