Difference between revisions of "Cookbook"
Line 1: | Line 1: | ||
+ | __NOTOC__ | ||
+ | <div style="width: 45em;"> | ||
+ | The Cookbook is a community-created collection of practical examples, guides and advice for accomplishing common tasks in D. Here you can find knowledge and insight based on experience and "what works". | ||
+ | |||
+ | One should keep in mind that, while the goal of the Cookbook is certainly to establish best-practices and inspire developers to write proper D code, it also strives to help get things done, and as such may take a more pragmatic approach than normal documentation. The Cookbook is not a short-cut to learning D. The reader is adviced to read the official D documentation as well. | ||
+ | </div> | ||
= Guides and Advice = | = Guides and Advice = | ||
− | + | <!--------><table cellspacing="20" width="100%"><tr><td style="vertical-align: top; width: 50%;"> | |
− | <table cellspacing="20" width="100%"> | ||
− | <tr><td> | ||
== Compiler == | == Compiler == | ||
− | * [[ | + | * [[Checklist for optimal portability and performance]] |
− | </td><td> | + | <!--------></td><td style="vertical-align: top; width: 50%;"> |
== Data Handling == | == Data Handling == | ||
* [[When to use const and immutable]] | * [[When to use const and immutable]] | ||
− | </td></tr> | + | <!--------></td></tr></table> |
− | </table> | ||
= Recipes and Examples = | = Recipes and Examples = | ||
− | <table cellspacing="20" width="100%"> | + | <!--------><table cellspacing="20" width="100%"><tr><td style="vertical-align: top; width: 50%;"> |
− | <tr><td> | + | |
+ | == Building == | ||
+ | * [[A minimalistic cross-platform Makefile]] | ||
== Math == | == Math == | ||
* [[Constructing a custom data type with overloaded operators]] | * [[Constructing a custom data type with overloaded operators]] | ||
− | </td><td> | + | <!--------></td><td style="vertical-align: top; width: 50%;"> |
== Strings and Text == | == Strings and Text == | ||
* [[Converting_strings_between_ASCII_and_Unicode_and_others|Converting strings between ASCII and Unicode and others]] | * [[Converting_strings_between_ASCII_and_Unicode_and_others|Converting strings between ASCII and Unicode and others]] | ||
+ | * [[Iterating through every character or byte in a Unicode string]] | ||
− | </td></tr> | + | <!--------></td></tr></table> |
− | </table> |
Revision as of 13:22, 24 November 2012
The Cookbook is a community-created collection of practical examples, guides and advice for accomplishing common tasks in D. Here you can find knowledge and insight based on experience and "what works".
One should keep in mind that, while the goal of the Cookbook is certainly to establish best-practices and inspire developers to write proper D code, it also strives to help get things done, and as such may take a more pragmatic approach than normal documentation. The Cookbook is not a short-cut to learning D. The reader is adviced to read the official D documentation as well.
Guides and Advice
Compiler |
Data Handling |
Recipes and Examples
BuildingMath |
Strings and Text |