• O'Reilly:Ruby最佳实践(影印版)
  • O'Reilly:Ruby最佳实践(影印版)
21年品牌 40万+商家 超1.5亿件商品

O'Reilly:Ruby最佳实践(影印版)

30.6 6.4折 48 九品

仅1件

山西太原
认证卖家担保交易快速发货售后保障

作者布朗 著

出版社东南大学出版社

出版时间2010-01

版次1

装帧平装

上书时间2024-07-01

   商品详情   

品相描述:九品
图书标准信息
  • 作者 布朗 著
  • 出版社 东南大学出版社
  • 出版时间 2010-01
  • 版次 1
  • ISBN 9787564119355
  • 定价 48.00元
  • 装帧 平装
  • 开本 16开
  • 纸张 胶版纸
  • 页数 309页
  • 正文语种 英语
【内容简介】
你能够编写真正优雅的Ruby代码吗?《Ruby最佳实践》正是为想要像专家那样使用Ruby的程序员所准备的。《Ruby最佳实践(影印版)》由Ruby项目Prawn的开发者所著,简洁地向你阐释如何使用Ruby编写优美的应用程序接口和领域特定语言。此外,还包括如何应用函数式编程的思想和技术,使代码更简洁,使你更有效率。通过《Ruby最佳实践(影印版)》,你将会学到如何编写可读性更高,表达能力更强的代码,以及许多其他方面的内容。
《Ruby最佳实践》将会帮助你:
*理解Ruby代码块所蕴含的神秘力量
*学习如何在不破坏原有Ruby代码的情况下进行调整,例如运行时在模块内糅合
*探究测试与调试中的细节,以及如何从易测性出发进行设计
*学习通过让事情保持简单来编写快速代码
*用于文本处理和文件管理的开发策略,包括正则表达式
*理解为什么会发生错误以及错误是如何发生的
*利用Ruby的多语言特性减少文化障碍
《Ruby最佳实践(影印版)》还包含多个章节对测试代码、设计应用程序接口以及项目维护做了全面介绍。《Ruby最佳实践》将陪伴你学习如何将这门丰富、优美的语言发挥到极致。
【作者简介】
GregoryT.Brown是康涅狄格州纽黑文市的一位Ruby爱好者,他的大多数时间都花在了与Ruby语言相关的自由软件项目上。他是Ruport的原作者,并且是Prawn的作者,该Ruby库被用来生成PDF文档。
【目录】
Foreword
Preface
1.DrivingCodeThroughTests
AQuickNoteonTestingFrameworks
DesigningforTestability
TestingFundamentals
Well-FocusedExamples
TestingExceptions
RuntheWholeSuiteatOnce
AdvancedTestingTechniques
UsingMocksandStubs
TestingComplexOutput
KeepingThingsOrganized
EmbeddingTestsinLibraryFiles
TestHelpers
CustomAssertions
Conclusions

2.DesigningBeautifulAPIs
DesigningforConvenience:Ruport’sTable()feature
Ruby’sSecretPower:FlexibleArgumentProcessing
StandardOrdinalArguments
OrdinalArgumentswithOptionalParameters
Pseudo-KeywordArguments
TreatingArgumentsAsanArray
Ruby’sOtherSecretPower:CodeBlocks
WorkingwithEnumerable
UsingBlockstoAbstractPre-andPostprocessing
BlocksAsDynamicCallbacks
BlocksforInterfaceSimplification
AvoidingSurprises
Useattr_reader,attr_writer,andattr_accessor
UnderstandWhatmethod?andmethod!Mean
MakeUseofCustomOperators
Conclusions

3.MasteringtheDynamicToolkit
BlankSlate:ABasicObjectonSteroids
BuildingFlexibleInterfaces
Makinginstance_eval()Optional
HandlingMessageswithmethod_missing()andsend()
Dual-PurposeAccessors
ImplementingPer-ObjectBehavior
ExtendingandModifyingPreexistingCode
AddingNewFunctionality
ModificationviaAliasing
Per-ObjectModification
BuildingClassesandModulesProgrammatically
RegisteringHooksandCallbacks
DetectingNewlyAddedFunctionality
TrackingInheritance
TrackingMixins
Conclusions

4.TextProcessingandFileManagement
Line-BasedFileProcessingwithStateTracking
RegularExpressions
Don’tWorkTooHard
AnchorsAreYourFriends
UseCautionWhenWorkingwithQuantifiers
WorkingwithFiles
UsingPathnameandFileUtils
ThetempfileStandardLibrary
AutomaticTemporaryDirectoryHandling
CollisionAvoidance
SameOldI/OOperations
AutomaticUnlinking
Text-ProcessingStrategies
AdvancedLineProcessing
AtomicSaves
Conclusions

5.FunctionalProgrammingTechniques
LazinessCanBeaVirtue(ALookatlazy.rb)
MinimizingMutableStateandReducingSideEffects
ModularCodeOrganization
Memoization
InfiniteLists
Higher-OrderProcedures
Conclusions

6.WhenThingsGoWrong
AProcessforDebuggingRubyCode
CapturingtheEssenceofaDefect
ScrutinizingYourCode
UtilizingReflection
ImprovinginspectOutput
FindingNeedlesinaHaystack
WorkingwithLogger
Conclusions

7.ReducingCulturalBarriers
m17nbyExample:ALookatRuby’sCSVStandardLibrary
Portablem17nThroughUTF-8Transcoding
SourceEncodings
WorkingwithFiles
TranscodingUserInputinanOrganizedFashion
m17ninStandaloneScripts
InferringEncodingsfromLocale
CustomizingEncodingDefaults
m17n-SafeLow-LevelTextProcessing
LocalizingYourCode
Conclusions

8.SkillfulProjectMaintenance
ExploringaWell-OrganizedRubyProject(Haml)
ConventionstoKnowAbout
WhatGoesinaREADME
LayingOutYourLibrary
Executables
Tests
Examples
APIDocumentationviaRDoc
BasicDocumentationTechniquesandGuidelines
ControllingOutputwithRDocDirectives
TheRubyGemsPackageManager
WritingaGem::Specification
WorkingwithDependencies
Rake:Ruby’sBuilt-inBuildUtility
Conclusions
A.WritingBackward-CompatibleCode
B.LeveragingRuby’sStandardLibrary
C.RubyWorstPractices
Index
点击展开 点击收起

—  没有更多了  —

以下为对购买帮助不大的评价

此功能需要访问孔网APP才能使用
暂时不用
打开孔网APP