Git Product home page Git Product logo

cafe's Introduction

Effective-java-2nd

객체의 생성과 삭제

Item 01: 생성자 대신 static factory method를 사용할 수 없는지 생각해 보라

Item 02: 생성자 인자가 많을 때는 Builder패턴 적용을 고려하라

Item 03: 싱글톤을 쓸 때 property는 private 생성자나 enum타입으로 하라

Item 04: 객체 생성을 막을 때는 private 생성자를 사용하라

Item 05: 불필요한 객체는 만들지 말라

Item 06: 유효기간이 지난 객체 참조는 폐기하라

 

모든 객체의 공통 메서드

Item 08: equals를 재정의할 때는 일반 규약을 따르라

Item 09: equals를 재정의할 때는 반드시 hashCode도 재정의하라

Item 10: toString은 항상 재정의하라

Item 12: Comparable 구현을 고려하라

 

클래스와 인터페이스

Item 13: 클래스와 멤버의 접근 권한을 최소화하라

Item 14: public 클래스 안에는 public필드를 두지 말고 접근자 메서드를 사용하라

Item 15: 변경 가능성을 최소화하라

Item 16:

Item 17:

Item 18:

Item 19:

Item 20:

Item 21:

Item 22:

 

Generic

Item 23:

Item 24:

Item 25:

Item 26:

Item 27:

Item 28:

Item 29:

 

Enum & Annotation

Item 30:

Item 31:

Item 32:

Item 33:

Item 34:

Item 35:

Item 36:

Item 37:

 

Method

Item 38: 인자의 유효성을 검사하라

Item 39:

Item 40:

Item 41:

Item 42:

Item 43:

Item 44:

 

일반적인 프로그래밍 원칙들

Item 45: 지역 변수의 유효범위를 최소화하라

Item 46: for 문보다는 for-each 문을 사용하라

Item 47:

Item 48: 정확한 답이 필요하다면 float와 double은 피하라

Item 49: 객체화된 기본 자료형 대신 기본 자료형을 이용하라

Item 50: 다른 자료형이 적절하다면 문자열 사용은 피하라

Item 51: 문자열 연결 시 성능에 주의하라

Item 52: 객체를 참조할 때는 그 인터페이스를 사용하라

Item 53:

Item 54:

Item 55:

Item 56: 일반적으로 통용되는 작명 관습을 따르라

 

Exception

Item 57:

Item 58:

Item 59:

Item 60:

Item 61:

Item 62:

Item 63:

Item 64:

Item 65:

 

Concurrency

Item 66:

Item 67:

Item 68:

Item 69:

Item 70:

Item 71:

Item 72:

Item 73:

 

Serialization

Item 74:

Item 75:

Item 76:

Item 77:

Item 78:

cafe's People

Contributors

bactoria avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.