ycliper

Популярное

Музыка Кино и Анимация Автомобили Животные Спорт Путешествия Игры Юмор

Интересные видео

2025 Сериалы Трейлеры Новости Как сделать Видеоуроки Diy своими руками

Топ запросов

смотреть а4 schoolboy runaway турецкий сериал смотреть мультфильмы эдисон
Скачать

Static Factory Methods - Effective Java, Item 1

Java

Software Development

Автор: nipafx

Загружено: 2018-09-23

Просмотров: 6166

Описание: Static factory methods are awesome! They allow us to overcome three shortcomings of constructors by allowing us to freely choose a name, take control over returned instances, and take control over the returned type. I use them every day.

Also, I'm actually sorry about all the "actuallies". 😉

Table of contents:

00:00 What's wrong with constructors?
01:14 Quick introduction to static factory methods
01:28 Named constructors
02:23 Instance control
04:16 └ Immutability and documentation
05:15 └ Value-based classes
06:02 Type control
07:57 Where to put static factory methods?
08:22 Discoverability
10:07 Make constructor inaccessible
11:03 Refactoring to static factory methods
12:33 Not the factory patterns!
13:53 Summary

Repository with examples: https://github.com/CodeFX-org/effecti...
BED-Con in Berlin: http://www.bed-con.org/

Twitter-poll:   / 1037310344585261056  
§1 GG:   / 1038376068728676353  
Value-based classes: https://blog.codefx.org/java/value-ba...
Comment your &*☠# Code: https://blog.codefx.org/techniques/do...

Nicolai:
home: http://codefx.org
online Java courses: http://courses.codefx.org
on Twitter:   / nipafx  

Affiliate links for Effective Java, Third Edition:
InformIT (the publisher): http://tiny.cc/effective-java-3rd
Amazon USA: https://amzn.to/2QI0D0S
Amazon Germany: https://amzn.to/2OvsWOu

Не удается загрузить Youtube-плеер. Проверьте блокировку Youtube в вашей сети.
Повторяем попытку...
Static Factory Methods - Effective Java, Item 1

Поделиться в:

Доступные форматы для скачивания:

Скачать видео

  • Информация по загрузке:

Скачать аудио

Похожие видео

Use Builders... Cautiously - Effective Java, Item 2

Use Builders... Cautiously - Effective Java, Item 2

Effective Java in Depth -- Item 1: Consider static factory methods instead of constructors

Effective Java in Depth -- Item 1: Consider static factory methods instead of constructors

Design Patterns Master Class | All Design Patterns Covered

Design Patterns Master Class | All Design Patterns Covered

Java, null, and JSpecify

Java, null, and JSpecify

Effective Java - Still Effective After All These Years

Effective Java - Still Effective After All These Years

My 10 “Clean” Code Principles (Start These Now)

My 10 “Clean” Code Principles (Start These Now)

Are Factory Methods Better Than Constructors?

Are Factory Methods Better Than Constructors?

Копия Miro с нуля на React в 2025 + Архитектура front-end БЕЗ FSD!

Копия Miro с нуля на React в 2025 + Архитектура front-end БЕЗ FSD!

STOP Using Classes In JavaScript | Prime Reacts

STOP Using Classes In JavaScript | Prime Reacts

Clean Lambdas - by Victor Rentea at JBCNConf'17

Clean Lambdas - by Victor Rentea at JBCNConf'17

© 2025 ycliper. Все права защищены.



  • Контакты
  • О нас
  • Политика конфиденциальности



Контакты для правообладателей: [email protected]