durtchrt
hello world

[컨퍼런스 후기- 20161123] playnode2016

  • Nov 23, 2016
  • CONFERENCE
강연후기 1 javascrpt everywhere - 하나의 프로그래밍 언어로 모바일부터 로봇까지 #소개 JavaScript Everywhere - 하나의 프로그래밍 언어로 천하통일을 꿈꾸는 메이커 JavaScript 와 Node.JS 만으로 IoT 제작/교육 플랫폼을 만들고, 로봇을 위한 임베디드도 Node.JS 로 제작한 사례를 공유합니다. MongoDB 와 Elasticsearch 채용으로, 모바일 부터 로봇, 그리고 데이터 분석 까지 전 영역에 JavaScript 를 적용함으로써 얻은 교훈을 이야기 합니다. 박종건 | Circulus 대표/수원대학교 조교수 게임을 너무 좋아하여 휴학하고 다음 게임에 입사 하였다가, 직장이 아닌 직업을 찾기위해 IT개발을 위해 삼성SDS 정보기술연구소로 입사, IoT 기반 공급망/물류 시스템및 데이터 시각화 업무를 담당했습니다.

4Clojure 문제 모음 1 ~ 25

  • Nov 20, 2016
  • CLOJURE
1.진실만있다. Nothing but the Truth 난이도: 초급 문제 이것은 클로저 폼이다. 폼 평가를 true가 되도록 값을 넣으세요. 생각이 깊게 하지 마세요! 만약 헤갈린다면, 클로저 초급 문서를 보세요. Hint: true는 true와 같다 This is a clojure form. Enter a value which will make the form evaluate to true. Don't over think it! If you are confused, see the getting started page. Hint: true is equal to true. 문제 코드

자바 제네릭스(10) 와일드카드 Wildcards

  • Nov 12, 2016
  • JAVA
상위 제한된 와일드 카드 Upper Bounded Wildcards 변수에 완화된 제한을 걸고 싶을때 upper bounded wildcard를 사용한다. 예를들면, List<Integer>, List<Double>, List<Number> 타입들에서 동작하는 메서드를 작성할때 upper bounded wildcard를 사용해서 만들수 있다. You can use an upper bounded wildcard to relax the restrictions on a variable. For example, say you want to write a method that works on List, List, and List; you can achieve this by using an upper bounded wildcard.

자바 제네릭스(10) 와일드카드 Wildcards

  • Nov 11, 2016
  • JAVA
와일드카드 Wildcards generic 코드에서는 unkown 타입을 표현하는 물음표(?)를 와일드 카드라고 부른다. 와일드카드는 다양한 상황에서 쓰인다.(파라메터, 필드, 지역변수 타입 때로는 리턴 타입에도 쓰인다. (though it is better programming practice to be more specific). 와일드카드는 제네릭 메서드 호출, 제네릭 클래스의 인스턴스 생성, 또는 슈퍼타입을 위해 타입인자로는 사용되지 않는다. In generic code, the question mark (?), called the wildcard, represents an unknown type. The wildcard can be used in a variety of situations: as the type of a parameter, field, or local variable; sometimes as a return type (though it is better programming practice to be more specific).

자바 제네릭스(13) Java Generics: 하위 제한 와일드카드(Lower Bounded Wildcards)

  • Nov 7, 2016
  • JAVA
원문링크 하위 제한 와일드카드 Lower Bounded Wildcards 상위제한와일드카드장은 특정 타입이나 그 특정타입의 서브타입을 알 수 없을때는 ‘extends’ 키워드를 사용하는 것을 보여줬다. 비슷한 것으로, 하위제한와일드카드는 특정타입이나 그 특정 타입의 슈퍼타입을 제한하고자할때 사용한다. The Upper Bounded Wildcards section shows that an upper bounded wildcard restricts the unknown type to be a specific type or a subtype of that type and is represented using the extends keyword. In a similar way, a lower bounded wildcard restricts the unknown type to be a specific type or a super type of that type.

자바 제네릭스(12) Java Generics: 상위 제한된 와일드카드(Upper Bounded Wildcards)

  • Nov 7, 2016
  • JAVA
원문링크 제한없는 와일드카드 Unbounded Wildcards 제한없는 와일드카드 타입은 와일드카드 문자(‘?’)만 사용한것이다. 예를 들면 List<?>와 같다. List<?>의 ?는 List의 ‘알수없는 타입(unkown type)‘이라고 부른다. 아래 두개의 시나리오는 제한없는 와일드카드가 유용한 접근법이다. The unbounded wildcard type is specified using the wildcard character (?), for example, List<?>. This is called a list of unknown type. There are two scenarios where an unbounded wildcard is a useful approach: Object 클래스에서 제공하는 기능(메서드)을 사용하도록 메서드를 구현할 때.

자바 제네릭스(9) Java Generics: 타입추론(Type Inference)

  • Nov 5, 2016
  • JAVA
용어 statement: 문장으로 해석하면 오해의 여지가 있어서 statement 영문 그대로 작성한다. 컴퓨터 프로그래밍에서는 statement를 독립적인 요소의 최소 단위. 영문위키의 중간을 보면 Kinds of statements 파트에 Simple statments, Compound statements 부분의 코드를 보면 느낌이 온다. 원문링크 타입추론 Type Inference 타입추론은 메서드를 호출하는 코드에서 타입인자가 정의한대로 제대로 쓰였는지 살펴보는 컴파일러의 능력이다. 타입추론은 인자의 타입을 확인하고 만약 사용가능하다면, 해당 타입을 할당하거나 리턴될 것이다. 결국 타입추론은 모든 인자에 동작해서 가장 구체적인 타입을 찾는 것을 시도한다.

자바 제네릭스(8) Java Generics: 제네릭스, 상속, 서브타입 (Generics, Inheritance, and Subtypes)

  • Nov 5, 2016
  • JAVA
원문링크 용어 메서드 시그니처(method signature): 메서들간에 개성 주는것으로 자바 컴파일러인지 메서드 시그니처를 기준으로 오버로딩을 한다. 자바에서는 메서드명, 파라미터 갯수, 파라미터 타입, 파라미터 순서(자바에서는 리턴타입은 시그니처가 아니다.) - 파라미터명도 시그니처인지는 아리까리하다. 메서드 오버로딩를 생각하면 맞는거 같은데… 좀더 생각해보고 내용 수정 예정 콘크리트 타입, 구현타입(concrete type): 자바에서는 타입들중 interface, abstract class를 제외하고 남은 class를 concrete 타입으로 이해하면 될 듯.참고링크 - 영문: 번역 예정 제네릭스, 상속, 서브타입 Generics, Inheritance, and Subtypes 타입간 호환이된다면 특정 타입의 객체를 다른 타입에 할당이 가능합니다.

자바 제네릭스(7) Java Generics: Generic 메서드와 제한된 타입 매개변수 (Generic Methods and Bounded Type Parameters)

  • Nov 5, 2016
  • JAVA
Generic 메서드와 제한된 타입 매개변수 Generic Methods and Bounded Type Parameters 제한된 타입 매개변수는 generic 알고리즘들을 구현할때 핵심이된다. 아래의 예는 두번째 인자보다 큰 값이 첫번째 인자인 배열에 몇개가 있는지 세는 메서드이다. Bounded type parameters are key to the implementation of generic algorithms. Consider the following method that counts the number of elements in an array T[] that are greater than a specified element elem. public static <T> int countGreaterThan(T[] anArray, T elem) { int count = 0; for (T e : anArray) if (e > elem) // compiler error ++count; return count; } 메서드 구현은 간단하지만, ‘>’ 연산자가 기본형(short, int, double, long, float, byte, char)에만 동작이 허용되기 때문이다.

자바 제네릭스(6) Java Generics: 제한된 타입 매개변수 (Bounded Type Parameters)

  • Nov 4, 2016
  • JAVA
원문 링크 제한된 타입 매개변수 Bounded Type Parameters 매개변수화된 타입에 타입인자를 넣을때 타입 제한을 걸고 싶을 때가 있을 것이다. 예를 들어, Number 타입 또는 Number 타입의 자식 클래스의 객체만 허용하는 숫자 처리를 위한 메서드를 만들 수 있다. 이것이 제한된 타입 매개변수다 There may be times when you want to restrict the types that can be used as type arguments in a parameterized type. For example, a method that operates on numbers might only want to accept instances of Number or its subclasses.
Prev Next
AUTHOR
boojongmin

Hello world!

LATESTS
Spring WebFlux
  • Nov 9, 2017
  • ENGLISH
컨퍼런스 후기:20161221 AKKA
  • Dec 21, 2016
  • CONFERENCE
20161212: hazelcast 교육 내용 정리
  • Dec 12, 2016
  • CONFERENCE
인텔리J 단축키 모음
  • Nov 30, 2016
  • IDE
20161125 나는 프로그래머다 컨퍼런스
  • Nov 25, 2016
  • CONFERENCE
[발번역]The Java™ Tutorials - 2-2. Pausing Execution with Sleep
  • Nov 24, 2016
  • JAVA
[발번역]The Java™ Tutorials - 2-1. 쓰레드 정의와 시작 Defining and Starting a Thread
  • Nov 24, 2016
  • JAVA
[발번역]The Java™ Tutorials - 2. Thread Objects
  • Nov 24, 2016
  • JAVA
[발번역]The Java™ Tutorials - 1. Processes and Threads
  • Nov 24, 2016
  • JAVA
[발번역]The Java™ Tutorials - 0. Concurrency
  • Nov 24, 2016
  • JAVA
TAGS
  • java
  • generics
  • 번역
  • concurrency
  • 4clojure
  • bounded-type-parameter
  • clojure
  • favorite
  • generic-method
  • inheritance

© durtchrt

Powered by Hugo.

Robust designed by Daisuke Tsuji.