Difference between revisions of "Tutorials"

From D Wiki
Jump to: navigation, search
(Added design patterns)
(How To)
(19 intermediate revisions by 6 users not shown)
Line 10: Line 10:
  
 
Although D inherited much of its syntax from C and C++, the new features that it introduces lead to some common idioms that are unique to D.
 
Although D inherited much of its syntax from C and C++, the new features that it introduces lead to some common idioms that are unique to D.
 +
See also category [[:Category:CommonIdiom|CommonIdiom]].
  
 
* [[Initializing variables]]
 
* [[Initializing variables]]
Line 22: Line 23:
 
== Design Patterns ==
 
== Design Patterns ==
  
* [[Instantiator Function Pattern]] - Instantiating classes and structs with minimal boilerplate
+
* [[Instantiator Function Pattern]] - Instantiating classes and structs with minimal redundancy.
 +
* [[Compile-time Command Pattern]] - Store function and arguments to be invoked later.
 +
* [[Higher Order Range Pattern]] - Transform a range before passing it to a function/object.
 +
* [[Mixin Macros Pattern]] - Mixins + Compile-Time Magic
 +
* [[Low-Lock Singleton Pattern]] - Singletons without double-checked locking
  
 
== How To ==
 
== How To ==
 +
See also category [[:Category:HowTo|HowTo]].
 
* [[Bind D to C]]
 
* [[Bind D to C]]
 
* [[Compiling_and_linking_with_DMD_on_Windows|Compile and link with DMD on Windows]]
 
* [[Compiling_and_linking_with_DMD_on_Windows|Compile and link with DMD on Windows]]
Line 33: Line 39:
 
* [[Implicit conversions in user types|Implicitly convert a user-defined type to a builtin type]]
 
* [[Implicit conversions in user types|Implicitly convert a user-defined type to a builtin type]]
 
* [[Output locale character (MBS) to console]]
 
* [[Output locale character (MBS) to console]]
* [[printf]]
 
 
* [[Promote D Projects]]
 
* [[Promote D Projects]]
 
* [[Regular expressions]]
 
* [[Regular expressions]]
Line 48: Line 53:
 
* [[Extending Unit Tests]]
 
* [[Extending Unit Tests]]
 
* [[Running DMD From The Command Prompt]]
 
* [[Running DMD From The Command Prompt]]
 +
* [[Perf]]
 +
* [[Floating Point Gotchas]]
 +
* [[LDC+Dub+Vibe.d on SmartOS 64bit]]
 +
* [[Call D from Ruby using FFI]]
  
 
=== Microsoft Windows ===
 
=== Microsoft Windows ===
Line 54: Line 63:
 
* [[COM Programming]]
 
* [[COM Programming]]
 
* [[Using UTF on Windows]]
 
* [[Using UTF on Windows]]
 +
 +
[[Category:Tutorials]].

Revision as of 23:12, 4 August 2016

Videos Tutorials

Best Practices

Common Idioms

Although D inherited much of its syntax from C and C++, the new features that it introduces lead to some common idioms that are unique to D. See also category CommonIdiom.

Design Patterns

How To

See also category HowTo.

Microsoft Windows