У нас вы можете посмотреть бесплатно Programming With Intent - Method Design Part 1 или скачать в максимальном доступном качестве, видео которое было загружено на ютуб. Для загрузки выберите вариант из формы ниже:
Если кнопки скачивания не
загрузились
НАЖМИТЕ ЗДЕСЬ или обновите страницу
Если возникают проблемы со скачиванием видео, пожалуйста напишите в поддержку по адресу внизу
страницы.
Спасибо за использование сервиса ClipSaver.ru
You'd be surprised, how simple changes to the way we write code can speak a thousand words, making our intent clear and thus easier to read, understand and maintain. Methods are the fundamental units of work and have a direct impact on how we reason about the code we write. Good method design leads to good class design and thus good system/API design. In this presentation, we’ll learn about C# principles of good method design and implementation. Method’s that are designed and implemented well: 1. Clearly express our intent to the caller 2. Clearly express our intent to the maintainer and our future selves 3. Make it easier for the maintainer or our future selves to comprehend 4. Are at the correct level of abstraction 5. Are efficient 2:33 Method Design 2:48 Tell me a Story, Don't make me think 9:17 Naming is Everything 13:26 We Don't expose our privates 14:59 Public methods should not be Virtaul/Abstract 15:49 Methods should be sealed 16:41 Methods should Autonomous and Pure 19:47 Need to know Basis - Method should be provided with the bear minimum information 20:20 Methods that are Actions/Commands should be void returning 22:37 Methods that are Queries should return only what they claim or not return at all 28:48 Common Practice is not Common Sense 31:39 Don't validate formal arguments 32:13 Callers Data - Caller's problem 33:11 If you lock the front door and you lock the back door - you're safe in the house 35:18 Clean up and valid input data at the Entry points of your system - front and back door 35:43 No Empty Strings. Strings can either be null or a valid string.