Clean Ruby : a guide to crafting better code for Rubyists /: a guide to crafting better code for Rubyists. ([2019])
- Record Type:
- Book
- Title:
- Clean Ruby : a guide to crafting better code for Rubyists /: a guide to crafting better code for Rubyists. ([2019])
- Main Title:
- Clean Ruby : a guide to crafting better code for Rubyists
- Further Information:
- Note: Carleton DiLeo.
- Authors:
- DiLeo, Carleton
- Contents:
- The Qualities of Clean CodeReadabilityExtensibilitySimplicityNaming ThingsVariablesNaming conventionsThe dataLengthAvoid unnecessary informationAvoid conjunctionsOnly alpha charactersMethodsUse verbsReturn valueBang methodsClassesPurposeRoleModulesCreating Quality MethodsParametersUse fewer parametersParameter orderReturn ValuesGuard ClauseLengthHow to shorten a methodToo shortCommentsQuality commentsStale commentsComments and refactoringLimit NestingUsing Boolean LogicUsing a VariableUsing a MethodUnlessTernary operatorDouble negativeTruthy and FalsyTruthy ValuesFalsy Values& vs &&ClassesInitialize MethodKeep it SimpleAvoiding ErrorsToo many parametersClass methods vs instance methodsInstance variablesPrivate methodsMethod orderMoving methods to a moduleLimiting InheritanceRefactoringNo change too smallTestsSingle Responsibility PrincipleTest-Driven Development (TDD)Start with testsImplement our codeMore TestsClean TestsWrapping up.
- Publisher Details:
- New York : Apress
- Publication Date:
- 2019
- Copyright Date:
- 2019
- Extent:
- 1 online resource
- Subjects:
- 005.13/3
Ruby (Computer program language)
Computer programming
Electronic books - Languages:
- English
- ISBNs:
- 9781484255469
1484255461 - Related ISBNs:
- 9781484255452
- Notes:
- Note: Online resource; title from PDF title page (SpringerLink, viewed December 16, 2019).
- Access Rights:
- Legal Deposit; Only available on premises controlled by the deposit library and to one user at any one time; The Legal Deposit Libraries (Non-Print Works) Regulations (UK).
- Access Usage:
- Restricted: Printing from this resource is governed by The Legal Deposit Libraries (Non-Print Works) Regulations (UK) and UK copyright law currently in force.
- View Content:
- Available online (eLD content is only available in our Reading Rooms) ↗
- Physical Locations:
- British Library HMNTS - ELD.DS.476370
- Ingest File:
- 02_628.xml