전체 글
-
Ajax, SPANote 2020. 11. 9. 18:57
Ajax(Asynchronous Javascript And Xml) Ajax는 JavaScript의 라이브러리 중 하나이며 Asynchronous Javascript And Xml(비동기식 자바스크립트와 xml)의 약자 브라우저가 가지고 있는 XMLHttpRequest 객체를 이용해서 전체 페이지를 새로 고치지 않고도 페이지의 일부만을 위한 데이터를 로드하는 기법 비동기 방식은 웹페이지를 리로드 하지 않고 데이터를 불러오는 방식 이 방식의 장점은 페이지 리로드의 경우 전체 리소스를 다시 불러와야 하는데 이미지, 스크립트 , 기타 코드 등을 모두 재요청할 경우 불필요한 리소스 낭비가 발생하게 되지만 비동기식 방식을 이용할 경우 필요한 부분만 불러와 사용할 수 있으므로 매우 큰 장점이 있다. 기본적으로 HT..
-
[Codewars] Format a string of names like 'Bart, Lisa & Maggie'Algorithm 2020. 11. 8. 18:31
Format a string of names like 'Bart, Lisa & Maggie' 문제 www.codewars.com/kata/53368a47e38700bd8300030d/train/javascript Codewars: Achieve mastery through challenge Codewars is where developers achieve code mastery through challenge. Train on kata in the dojo and reach your highest potential. www.codewars.com [문제] Format a string of names like 'Bart, Lisa & Maggie' Given: an array containing hashe..
-
[Codewars] Are they the "same"?Algorithm 2020. 11. 8. 17:31
www.codewars.com/kata/550498447451fbbd7600041c/train/javascript Codewars: Achieve mastery through challenge Codewars is where developers achieve code mastery through challenge. Train on kata in the dojo and reach your highest potential. www.codewars.com 더보기 문제 Given two arrays a and b write a function comp(a, b) (or compSame(a, b)) that checks whether the two arrays have the "same" elements, wit..
-
OOP(Object Oriented Programming)Note 2020. 10. 28. 12:32
OOP(Object Oriented Programming)? 객체(object)란 말 그대로 대상을 나타내는 단어이다. 예를 들어 교실이 있으면, 교실에 있는 학생들이 모두 각각의 객체들이고, 가방이나 책, 사물함 같은 교실에 있는 물건들이 모두 객체라고 할 수 있다. 절차 지향 프로그래밍(Procedural Programming) 말 그대로 절차의 순차적인 처리가 중요한 프로그래밍 기법이다. 프로그램의 순서와 흐름을 세우고 필요한 자료구조, 함수를 설계하는 방식이다. 객체지향 프로그래밍(Object Oriented Programming) 실제 세계를 모델링하여 물건(객체)들의 상호작용을 표현하는 프로그램을 짜는 방식이다. 자료구조와 이를 중심으로 한 모듈들을 먼저 설계한 다음에 이들의 실행 순서와 흐름..