본문 바로가기

분류 전체보기126

Apache Jmeter로 서버 부하 테스트 해보기 https://jmeter.apache.org/download_jmeter.cgi Apache JMeter - Download Apache JMeter Download Apache JMeter We recommend you use a mirror to download our release builds, but you must verify the integrity of the downloaded files using signatures downloaded from our main distribution directories. Recent releases (48 hours) may not yet be ava jmeter.apache.org Jmeter는 Apache에서 제공하는 웹사이트 성능 측정을 할 수 .. 2022. 2. 21.
[PHP, JS, CSS]로그아웃 할 때 일부 세션 정보만 날아가게 로그아웃 기능 구현 로그아웃 구현에 그냥 세션에 있는 정보를 session_destroy() 이용해서 다 삭제하면 될 것이라고 생각했다. 근데 그렇게 하니까 문제가 발생했다. function clearAllCookies(domain, path) { var doc = document, domain = domain || doc.domain, path = path || '/', cookies = doc.cookie.split(';'), now = +(new Date); for (var i = cookies.length - 1; i >= 0; i--) { doc.cookie = cookies[i].split('=')[0] + '=; expires=' + now + '; domain=' + domain + '; path=' + pa.. 2022. 2. 18.
확장성 있는 코드 짜기 9 Tips for Writing Scalable JavaScript Code https://gmlwjd9405.github.io/2018/07/06/design-pattern.html [Design Pattern] 디자인 패턴 종류 - Heee's Development Blog Step by step goes a long way. gmlwjd9405.github.io 9 Tips for Writing Scalable JavaScript Code You should be ready to scale your projects from the beginning javascript.plainenglish.io 확장성 있는 코드: 기존 로직에 새로운 값들이 추가, 삭제 되어도 내부적으로 변경이 적은 코드. 로직의.. 2022. 2. 16.
클래스 클래스: 특정 역할을 하는 타입. 내부적으로 멤버 변수와 메서드를 가질 수 있다. 클래스 선언은 class 키워드로 할 수 있다. 클래스 이름은 대문자로 시작하고 단어간의 연결마다 대문자를 사용해야 한다.(→ Pascal Case) class Example 클래스 내부적으로 선언하는 클래스 타입의 변수를 인스턴스라고 한다. $example=new Example(); $example이 인스턴스가 되고, Example()이 클래스가 된다. 멤버 변수=프로퍼티: 클래스 내부적으로 선언된 변수. 클래스의 인스턴스가 가지는 속성. private $name; private $age; 메서드: 클래스 안에 정의된 함수 public function add_age($age){ $this->age+=$age; return.. 2022. 2. 15.