프로그래밍(301)
-
[rails] 스캐폴딩 기능 개발 기초 : 상세 화면 작성
1234567891011121314151617[elkiss@elkiss-centos controllers]$ vim books_controller.rb before_action :set_book, only: [:show, :edit, :update, :destroy]... def show end... private # Use callbacks to share common setup or constraints between actions. def set_book @book = Book.find(params[:id]) end # Never trust parameters from the scary internet, only allow the white list through. def book_params pa..
2016.08.14 -
[effective modern c++] 항목 5 : 명시적 형식 선언보다는 auto를 선호하라
요약auto를 잘 활용하면 타이핑 양이 줄어든다.형식을 직접 지정했을 때 겪게 되는 정확성 문제와 성능 문제도 방지할 수 있다.(흠.. 하지만 명시적으로 정의 했을 때 보다 코드 리더블은 떨어지겠지..) auto를 선호하라반복자가 가르키는 것을 표현하기에 명시적으로 선언하기 매우 어렵다.간단한 선언의 즐거움으로 auto를 사용한다. C++14부터는 람다 표현식의 매개변수에도 auto를 사용할 수 있다.123 auto derefUPLess = [](const auto& p1, const auto& p2) { return p1
2016.08.14 -
[CI] 팀시티 git checkout 메모리 에러
에러는 대강 이렇다. 1234567891011121314151617181920212223242526272829303132333435363738394041jetbrains.buildServer.agent.impl.patch.PatchDownloaderImpl$1: Server was not able to build correct patch, most likely due to VCS errors at jetbrains.buildServer.agent.impl.patch.PatchDownloaderImpl.throwError(PatchDownloaderImpl.java:118) at jetbrains.buildServer.agent.impl.patch.PatchDownloaderImpl.checkPatch(P..
2016.08.12 -
[mRemote] 원격 툴 최대 창 갯수 에러
https://mremoteng.atlassian.net/browse/MR-582 2개 이상 못 켤때도 있고 조금 불편한 버그여서 구글링으로 찾아봤다.픽스된 exe가 있어 받아와서 써보니 정상동작 하였다.
2016.07.22 -
[effective modern c++] 항목 4: 연역된 형식을 파악하는 방법을 알아두자
기억해 둘 사항들- 컴파일러가 연역하는 형식을 IDE 편집기나 컴파일러 오류 메시지, 부스트 TypeIndex 라이브러리를 이용해서 파악할 수 있다.- 일부 도구의 결과는 유용하지도 않고 정확하지도 않을 수 있다. C++의 형식 연역 규칙들을 제대로 이해하자.
2016.07.16 -
[effective modern c++] 항목 3: decltype의 작동 방식 숙지
decltype주어진 이름이나 표현식의 형식을 알려준다. C++11에서 decltype는 함수의 반환 형식이 그 매개변수 형식들에 의존하는 함수 템플릿을 선언할 때 주로 쓰인다. 너무 이해 안 되서 한 10번은 넘게 읽은 것 같다. 예시로 이해해보기12345 std::deque intDq; intDq.resize(10); authAndAccess(intDq, 5) = 10; std::cout
2016.07.16