Skip to content

Instantly share code, notes, and snippets.

@jays1204
jays1204 / angular-01.md
Created May 21, 2014 02:07
Angular.js Tutorial

Angular.js

Front-end MV* Framework라고 한다. 이때 *는 Whatever(무엇이든)이라고 하나 우리는 그냥 기존에 알고있던 MVC의 개념으로 이해하면 된다. C말고 다른걸 쓰는게 있으면 바꾸면 되고.

Features of Angular.js

- front-end directory structure

angular에서 권장하는 구조는 다음과 같다.

https://docs.google.com/document/d/1XXMvReO8-Awi1EZXAXS4PzDzdNvV6pGcuaF4Q9821Es/pub

구글에서 사용하는 가이드를 따르라고 한다. application의 복잡도에 따라 여러가지 구조를 제시하고 있다.

@jays1204
jays1204 / node_change_log_0.6_to_0.8.md
Created May 21, 2014 12:48
node.js change log 0.6 to 0.8

Node.js version 0.6 to 0.8 changelog detailed page by korean.

음... 우선 오래된 버젼 api 문서가 다 사라졌네... 이건 소스를 받아야겠네

Deprecated:

  • http.Client()
    • http.Client()는
  • path.{exists,existsSync} was moved to fs.{exists,existsSync}
  • tty.setRawMode(mode) was moved to tty.ReadStream#setRawMode() (i.e. process.stdin.setRawMode())
  • Direct use of ev_* and eio_* functions is deprecated. Please use the methods provided by libuv instead. For help porting from eio_custom to uv_queue_work, see this wiki page. For help porting from ev_io_* to uv_poll_*, see this wiki page.
@jays1204
jays1204 / System Design.md
Created June 19, 2017 13:24 — forked from vasanthk/System Design.md
System Design Cheatsheet

System Design Cheatsheet

Picking the right architecture = Picking the right battles + Managing trade-offs

Basic Steps

  1. Clarify and agree on the scope of the system
  • User cases (description of sequences of events that, taken together, lead to a system doing something useful)
    • Who is going to use it?
    • How are they going to use it?
@jays1204
jays1204 / postbodyEnc.md
Last active September 24, 2023 04:50
Http Method는 POST, Content-Type이 application/x-www-form-urlencoded인 경우 body를 encoding하는게 맞을까?

요즘의 Request

RestFul API를 사용하며 json을 많이 사용하게 됨에 따라 요즈음의 request의 Content-Type은 대부분이 application/json인 것이 많다.

아니면 파일 첨부를 위해 multipart/*를 사용한다. application/x-www-form-urlencoded는 form에서 default로 사용되는 것 이외에는 사실 잘 사용하지 않는 편으로 보인다.

요새 자주 사용하지 않지만, 하지만 여전히 application/x-www-form-urlencoded를 사용하는 경우가 존재한다.

Content-Type이 다름에 따라 뭐가 달라지겠느냐 하겠지만 다른 점이 분명히 있다.