舉報

會員
D Cookbook
最新章節:
Index
Arecipepackedreferenceguidefilledwithpracticaltasksthatareconciselyexplainedtodevelopandbroadentheuser'sabilitieswiththeDprogramminglanguage.Ifyouareanexperiencedprogrammerwhoislookingtoexplorealanguagethatoffersplentyofadvantagesovermoreestablishedprogramminglanguages,thisisthebookforyou.Weassumethatyouarealreadyfamiliarwithgeneralprogramminglanguagebasics,butyoudonotneedtobeaproficientuserofD.
目錄(153章)
倒序
- coverpage
- D Cookbook
- Credits
- Foreword
- About the Author
- About the Reviewers
- www.PacktPub.com
- Support files eBooks discount offers and more
- Preface
- What this book covers
- What you need for this book
- Who this book is for
- Conventions
- Reader feedback
- Customer support
- Chapter 1. Core Tasks
- Introduction
- Installing the compiler and writing a "Hello World" program
- Adding additional modules (files) to your program
- Using external libraries
- Building and processing arrays
- Using associative arrays to translate input
- Creating a user-defined vector type
- Using a custom exception type
- Understanding immutability
- Slicing a string to get a substring
- Creating a tree of classes
- Chapter 2. Phobos – The Standard Library
- Introduction
- Performing type conversions
- Finding the largest files in a directory
- Creating a network client and server
- Using Base64 to create a data URI
- Generating random numbers
- Normalizing a string and performing Unicode comparisons
- Searching with regular expressions
- Writing a digest utility
- Using the std.zlib compression
- Using the std.json module
- Chapter 3. Ranges
- Introduction
- Using ranges when implementing an algorithm
- Creating an input range
- Creating an output range
- Creating a higher-order range
- Putting a range interface on a collection
- Creating an input range over a tree structure
- Using runtime polymorphic (class) ranges
- Storing a range as a data member
- Sorting ranges efficiently
- Searching ranges
- Using functional tools to query data
- Chapter 4. Integration
- Introduction
- Calling the Windows API functions
- Removing the Windows console
- Making Linux system calls
- Writing part of a C program in D
- Interfacing with C++
- Using structs to mimic the C++ object structure
- Communicating with external processes
- Communicating with a dynamic scripting language
- Using Windows' COM
- Chapter 5. Resource Management
- Introduction
- Avoiding the garbage collector
- Making a reference-counted object
- Manually managing class memory
- Using scope guards to manage transactions
- Creating an array replacement
- Managing lent resources
- Creating a NotNull struct
- Using unique pointers
- Using RAII and handling the limitations of class destructors
- Chapter 6. Wrapped Types
- Introduction
- Creating a struct with reference semantics
- Simulating inheritance with structs
- Creating a ranged integer
- Creating an opaque handle type
- Creating a subtyped string for i18n
- Forwarding methods with opDispatch
- Creating a tagged dynamic type
- Creating a structure with two views into the same data
- Simulating multiple inheritance with mixin templates
- Chapter 7. Correctness Checking
- Introduction
- Using assertions and exceptions
- Using static asserts
- Using template constraints and static if
- Preventing memory corruption bugs with @safe
- Leveraging const-correctness
- Avoiding side effects of pure functions
- Verifying object invariants and pre- and post-conditions
- Unit testing your code
- Documenting your code with Ddoc
- Writing platform-specific code (versions) and per-client configuration modules
- Chapter 8. Reflection
- Introduction
- Getting dynamic runtime type information
- Getting a list of child classes
- Determining whether a module is available
- Getting a list of all methods or fields in a module or an object
- Inspecting function overloads
- Determining names types and default values of function parameters
- Getting components of complex types
- Using user-defined attributes
- Implementing a custom lint-style check for virtual functions
- Extending the runtime type information
- Creating a command-line function caller
- Chapter 9. Code Generation
- Introduction
- Creating user-defined literals
- Parsing a domain-specific language
- Generating data structures from text diagrams
- Automating dynamic calls with multiple dispatch
- Building a lookup table
- Using string parameters to change functions
- Wrapping instance methods
- Using opDispatch to generate properties
- Duck typing to a statically-defined interface
- Chapter 10. Multitasking
- Introduction
- Using threads
- Passing messages with std.concurrency
- Processing parallel data with std.parallelism
- Using fibers
- Creating new processes
- Exploring thread-safe single-locking singletons
- Using asynchronous I/O
- Chapter 11. D for Kernel Coding
- Introduction
- Running D on bare metal x86 with a stripped runtime
- Adding interrupt handling to the bare metal x86 code
- Chapter 12. Web and GUI Programming
- Introduction
- Creating a dynamic website with cgi.d
- Creating a web API with web.d
- Parsing and modifying an HTML page with dom.d
- Accessing a SQL database
- Sending an e-mail
- Writing colored output to the console
- Getting real-time input from the terminal
- Working with image files
- Creating a graphics window to show a TV static demo
- Creating an OpenGL window
- Appendix A. Addendum
- Compiling D for ARM/Linux Raspberry Pi
- Running D on bare metal ARM
- Using the exponentiation operator
- Getting a stack trace without throwing an exception
- Finding more information about D
- Index 更新時間:2021-07-16 11:51:10
推薦閱讀
- Getting Started with Gulp(Second Edition)
- Spring 5.0 Microservices(Second Edition)
- 程序員面試算法寶典
- Oracle數據庫從入門到運維實戰
- PHP網絡編程學習筆記
- Python數據可視化之Matplotlib與Pyecharts實戰
- 小程序開發原理與實戰
- Raspberry Pi Robotic Projects(Third Edition)
- DB2SQL性能調優秘笈
- ASP.NET開發寶典
- Wearable:Tech Projects with the Raspberry Pi Zero
- Learning Shiny
- Pandas 1.x Cookbook
- C#網絡編程高級篇之網頁游戲輔助程序設計
- TypeScript High Performance
- C/C++語言程序開發參考手冊
- 深度學習:基于Python語言和TensorFlow平臺(視頻講解版)
- 精通Oracle 12c 數據庫管理
- Switching to Angular 2
- 算法學習與應用從入門到精通
- C++ Primer(中文版)(第5版)
- Ext JS源碼分析與開發實例寶典
- Meteor Design Patterns
- PHP程序員面試筆試寶典
- Visual Studio 2010 Best Practices
- C++17 STL Cookbook
- SAP HANA平臺軟件開發實戰
- JSP網絡程序設計與案例開發教程
- 大模型應用開發極簡入門:基于GPT-4和ChatGPT
- Visual Basic程序設計教程