본문 바로가기

카테고리 없음

2020-11-01 22시 개발자 글 모음 | "[번역] 2. Domain 모델 (매" 외 3개 이야기

Capistrano + Nginx를 활용한 자동 배포 by 김철민 about Nginx,AWS

  • ## Capfile # Load DSL and set up stages require "capistrano/setup" # Include default deployment tasks require "capistrano/deploy" # Load the SCM plugin appropriate to your project: # # require "capistrano/scm/hg" # install_plugin Capistrano::SCM::Hg # or # require "capistrano/scm/svn" # install_plugin Capistrano::SCM::Svn # or require "capistrano/scm/git" install_plugin Capistrano::SCM::Git # Include tasks from other gems included in your Gemfile # For documentation on these
  • key} ## 프로젝트 배포 후 유지에 있어 공통으로 쓰이는 폴더들 # Capistrano에 배포된 프로젝트는 현재 상용서비스로 사용되는 프로젝트와 과거에 배포되었던 프로젝트 총 :keep_releases개 로 나뉘어 관리가 이루어진다
  • key} ## 프로젝트 배포 후 유지에 있어 공통으로 쓰이는 폴더들 # Capistrano에 배포된 프로젝트는 현재 상용서비스로 사용되는 프로젝트와 과거에 배포되었던 프로젝트 총 :keep_releases개 로 나뉘어 관리가 이루어진다


URL에서 쿼리스트링의 파라메터 가져오기 by 신현석

  • set 과 같은 메서드를 사용할 수 있고 쿼리 스트링만 사용한다면 URLSearchParams 에 쿼리 스트링을 직접 넣어서 사용할 수도 있다
  • Caniuse에는 URL API가 url과 mdn-api_url 두개로 제공되고 있는데 MDN은 IE10부터 지원한다고 되어 있고 whatwg은 IE를 지원하지 않는 것으로 되어 있다
  • 실제로 IE에서 실행해 보면 제대로 동작하지 않는데 MDN의 정보는 createObjectURL 이라는 IE URL의 다른 메서드에 대한 정보를 보여주고 있는 것이어서 위와 같이 사용할 수는 없다


[Android] Android with JUnit5 (번역) by 김지훈 about JUnit,HTTPS,Android

  • fun `Given flag is true
  • Then activity is launched` () {
  • Then activity is not launched` () {


[번역] 2. Domain 모델 (매핑 타입, 네이밍 전략, Basic Type - 1) by 정철

  • primary key (id) ) // entity @Entity(name = "Contact") public static class Contact { @Id private Integer id; private Name name; private String notes; private URL website; private boolean starred; //Getters and setters are omitted for brevity } @Embeddable public class Name { private String first; private String middle; private String last; // getters and setters omitted }
  • @Entity @Table(name = "Customers") public class Customer { @Id @GeneratedValue private Long id; private String firstName; private String lastName; @Column(name = "email") private String emailAddress; // getters and setters } // 사용되는 이름 Customer -> Customers firstName -> firstName lastName -> lastName emailAddress -> email
  • @Type 어노테이션 사용 @Entity(name = "Product") public static class Product { @Id private Integer id; @Type( type = "bitset" ) private BitSet bitSet; public Integer getId() { return id; } //Getters and setters are omitted for brevity } // 방법 2