일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
- 위코드
- pyladies
- 한빛미디어
- 리액트
- AWS
- 환경변수
- 전문가를위한파이썬
- 한빛
- git
- 플라스크
- 파이썬
- 스터디
- 코드프레소
- 코테
- mongodb
- Python
- pyladiesseoul
- 패스트캠퍼스
- 개발스터디
- 예리님
- flask
- cleancode
- fluentpython
- 원티드
- React
- env
- codepresso
- 깃
- 프리온보딩
- 개발
- Today
- Total
목록Programming Language/JavaScript (3)
개발자가 내팔자
interface와 추상 클래스의 차이가 뭔지 알아보자. Abstract Class 추상 클래스는 상속하기 위한 기본 뼈대일 뿐 인스턴스를 생성할 수 없다. 추상클래스로부터 상속을 받은 자식 클래스를 통해서 인스턴스를 생성할 수 있다. abstract class User { constructor ( protected firstName: string, protected lastName: string ) {} abstract sayHi(name: string): string abstract fullName(): string } class Player extends User { fullName() { return `${this.firstName} ${this.lastName}`; } sayHi(name:str..
Type 범용적으로 타입을 정의할 때 쓰인다. 다양한 방식으로 쓸 수 있다. type Name = string; type Color = "red" | "green" | "blue"; Interface 주로 객체를 정의할 때 쓰인다. 약간 클래스와 비슷하다. 그래서 다른 인터페이스를 상속받을 수 있다. interface Person { name: string; age: number; } interface Writer extends Person {} const me : Writer = { name: "gaeyomi", age: 3 } 인터페이스는 이런 이상한 짓도 된다. interface User { name: string } interface User { age: number } interface User..
IO needs to be done differently 비동기방식의 IO 고전적인 처리 방식 : 절차지향적 -> 너무 많은 클럭 수를 낭비함 let databaseResult = queryDatabase() // how long? // Do things with databasesResult... let apiResult = getSomethingFromAPI() // how long? // Do things with apiResult JavaScript식 비동기 처리 방식 queeryDatabase(result => { // Do things with databasesResult... }) getSomethingFromAPI(result => { // Do things with apiResult }) ..