DEV Community

# effective

Posts

👋 Sign in for the ability to sort posts by relevant, latest, or top.
Effective Java Tuesday! Let's Consider Static Factory Methods

Effective Java Tuesday! Let's Consider Static Factory Methods

110
Comments 5
4 min read
Effective Java! Favor Generic Methods

Effective Java! Favor Generic Methods

30
Comments 1
3 min read
Effective Java Tuesday! The Builder Pattern!

Effective Java Tuesday! The Builder Pattern!

24
Comments 2
4 min read
Effective Java Tuesday! Obey the `equals` contract

Effective Java Tuesday! Obey the `equals` contract

21
Comments 3
7 min read
Effective Java Tuesday! Singletons!

Effective Java Tuesday! Singletons!

17
Comments 15
3 min read
Effective Java Tuesday! Prefer Dependency Injection!

Effective Java Tuesday! Prefer Dependency Injection!

16
Comments 2
3 min read
Effective Java Tuesday! Obey the `hashCode` contract

Effective Java Tuesday! Obey the `hashCode` contract

15
Comments
3 min read
Effective Java Tuesday! Avoid Creating Unnecessary Objects!

Effective Java Tuesday! Avoid Creating Unnecessary Objects!

15
Comments 3
3 min read
Effective Java! Don't Use Raw Types

Effective Java! Don't Use Raw Types

14
Comments 1
4 min read
Effective Java! Return Optionals Judiciously

Effective Java! Return Optionals Judiciously

13
Comments
4 min read
Effective Java! Prefer Class Hierarchies to Tagged Classes

Effective Java! Prefer Class Hierarchies to Tagged Classes

12
Comments 2
3 min read
Effective Java Tuesday! Utility Classes!

Effective Java Tuesday! Utility Classes!

12
Comments
2 min read
Effective Java Tuesday! Minimize Mutability

Effective Java Tuesday! Minimize Mutability

11
Comments
5 min read
Effective Java! Use Bounded Wildcards to Increase API Flexibility

Effective Java! Use Bounded Wildcards to Increase API Flexibility

11
Comments
7 min read
Effective Java Tuesday! Prefer try-with-resources

Effective Java Tuesday! Prefer try-with-resources

11
Comments 2
3 min read
Effective Java Tuesday! Consider Implementing `Comparable`

Effective Java Tuesday! Consider Implementing `Comparable`

10
Comments 2
4 min read
Effective Java Tuesday! Override `clone` judiciously

Effective Java Tuesday! Override `clone` judiciously

10
Comments
5 min read
Effective Java! Use Enums Instead of int Constants

Effective Java! Use Enums Instead of int Constants

10
Comments 2
8 min read
Effective Java! Use EnumMap instead of Ordinal Indexing

Effective Java! Use EnumMap instead of Ordinal Indexing

9
Comments
2 min read
Effective Java Tuesday! Avoid Finalizers and Cleaners!

Effective Java Tuesday! Avoid Finalizers and Cleaners!

9
Comments
3 min read
Effective Java! Prefer Annotations to Naming Patterns

Effective Java! Prefer Annotations to Naming Patterns

8
Comments
6 min read
Effective Java: Know and Use the Libraries

Effective Java: Know and Use the Libraries

8
Comments 1
3 min read
Effective Java! Emulate Extensible Enums With Interfaces.

Effective Java! Emulate Extensible Enums With Interfaces.

8
Comments
2 min read
Effective Java Tuesday! Favor Composition Over Inheritance

Effective Java Tuesday! Favor Composition Over Inheritance

8
Comments 1
4 min read
Effective Java Tuesday! In Public Classes, Use Accessors, Not Public Fields

Effective Java Tuesday! In Public Classes, Use Accessors, Not Public Fields

8
Comments
2 min read
Effective Java Tuesday! Prefer Interfaces to Abstract Classes

Effective Java Tuesday! Prefer Interfaces to Abstract Classes

8
Comments
3 min read
An Effective Strategy for Better Learning

An Effective Strategy for Better Learning

7
Comments
6 min read
Effective Java! Prefer Lambdas to Anonymous Classes

Effective Java! Prefer Lambdas to Anonymous Classes

7
Comments
3 min read
Effective Java! Favor the Use of Standard Functional Interfaces

Effective Java! Favor the Use of Standard Functional Interfaces

7
Comments
3 min read
Effective Java! Use Stream Judiciously

Effective Java! Use Stream Judiciously

7
Comments
3 min read
Effective Java! Use Varargs Judiciously

Effective Java! Use Varargs Judiciously

7
Comments
2 min read
Effective Java! Make Defensive Copies When Necessary

Effective Java! Make Defensive Copies When Necessary

7
Comments
3 min read
Effective Java! Use Overloading Judiciously

Effective Java! Use Overloading Judiciously

7
Comments
2 min read
Effective Java! Return Empty Collections or Arrays, Not Nulls

Effective Java! Return Empty Collections or Arrays, Not Nulls

7
Comments
2 min read
Effective Java: Minimize The Scope of Local Variables

Effective Java: Minimize The Scope of Local Variables

7
Comments
2 min read
Effective Java Tuesday! Don't Leak Object References!

Effective Java Tuesday! Don't Leak Object References!

7
Comments
3 min read
Effective Java: Prefer Alternatives To Java Serialization

Effective Java: Prefer Alternatives To Java Serialization

6
Comments
4 min read
Effective Java: Prefer Primitive Types to Boxed Types

Effective Java: Prefer Primitive Types to Boxed Types

6
Comments
3 min read
Effective Java Tuesday! Override `toString`

Effective Java Tuesday! Override `toString`

6
Comments
2 min read
Effective Java Tuesday! Design and Document Classes for Inheritance or Else Prohibit It.

Effective Java Tuesday! Design and Document Classes for Inheritance or Else Prohibit It.

6
Comments
4 min read
Effective Java: Consider Serialization Proxies Instead of Serialized Instances

Effective Java: Consider Serialization Proxies Instead of Serialized Instances

6
Comments
4 min read
Effective Java! Use Interfaces Only to Define Types

Effective Java! Use Interfaces Only to Define Types

6
Comments
2 min read
Effective Java! Favor Static Members Classes over Non-Static

Effective Java! Favor Static Members Classes over Non-Static

6
Comments 1
3 min read
Effective Java: Write readObject Methods Defensively

Effective Java: Write readObject Methods Defensively

6
Comments
4 min read
Effective Java! Eliminate Unchecked Warnings

Effective Java! Eliminate Unchecked Warnings

6
Comments
2 min read
Robust function to create select tag in javascript

Robust function to create select tag in javascript

6
Comments
2 min read
Effective Java! Prefer Lists to Array

Effective Java! Prefer Lists to Array

6
Comments
3 min read
Effective Java! Favor Generic Types

Effective Java! Favor Generic Types

6
Comments
3 min read
Effective Java! Use EnumSet Instead of Bit Fields

Effective Java! Use EnumSet Instead of Bit Fields

6
Comments 2
2 min read
Effective Java! Consistently Use the Override Annotation

Effective Java! Consistently Use the Override Annotation

6
Comments
2 min read
Effective Java: Consider Using a Custom Serialized Form

Effective Java: Consider Using a Custom Serialized Form

6
Comments
6 min read
Effective Java: Avoid Excessive Synchronization

Effective Java: Avoid Excessive Synchronization

6
Comments
5 min read
Effective Java: Synchronize Access to Shared Mutable Data

Effective Java: Synchronize Access to Shared Mutable Data

6
Comments
4 min read
Effective Java: Include Failure-Capture Information in Detail Messages

Effective Java: Include Failure-Capture Information in Detail Messages

6
Comments
2 min read
Effective Java! Use Instance Fields Instead of Ordinals

Effective Java! Use Instance Fields Instead of Ordinals

5
Comments
2 min read
Effective Java Tuesday! Minimize the Accessibility of Classes and Member

Effective Java Tuesday! Minimize the Accessibility of Classes and Member

5
Comments
5 min read
Effective Java! Combine Generics and Varargs Judiciously

Effective Java! Combine Generics and Varargs Judiciously

5
Comments
6 min read
Effective Java! Consider Typesafe Heterogenous Containers

Effective Java! Consider Typesafe Heterogenous Containers

5
Comments
3 min read
Effective Java! Prefer Method References to Lambdas

Effective Java! Prefer Method References to Lambdas

5
Comments
2 min read
Effective Java! Design Method Signatures Carefully

Effective Java! Design Method Signatures Carefully

5
Comments 2
3 min read
loading...