D Cookbook
暫譯: D 語言食譜

Adam D. Ruppe

  • 出版商: Packt Publishing
  • 出版日期: 2014-05-18
  • 售價: $2,220
  • 貴賓價: 9.5$2,109
  • 語言: 英文
  • 頁數: 362
  • 裝訂: Paperback
  • ISBN: 1783287217
  • ISBN-13: 9781783287215
  • 海外代購書籍(需單獨結帳)

商品描述

For experienced programmers this book is a journey into D, the language that can dramatically improve your productivity and capabilities. Learning is engaging and straightforward, thanks to the ‘How to do it’/’How it works’ approach.

Overview

  • Leverage D to write efficient and correct programs with minimum code
  • Learn advanced code generation techniques to automate programming tasks
  • See how to apply D idioms to real-world problems and understand how it can benefit you

In Detail

D is a modern programming language that uses the familiar C family syntax while offering advanced modeling capabilities, safety guarantees, programmer productivity, and high efficiency. It helps you to get the most out of your hardware and your programmers simultaneously, saving both development and deployment costs.

This practical guide will walk you through getting the work done with D, from writing your first program to writing advanced autogenerated objects, with notes based on real-world experiences telling you about potential pitfalls and how to avoid them. You'll use some of the third-party libraries available for D to get code working fast, including access to database engines, image processing, and more.

What you will learn from this book

  • Use the D programming language from "Hello World" to bare metal code
  • Gain an insight into avoiding the garbage collector and understand its pros and cons in real-world code examples
  • Discover how to use D's abstraction abilities to make the most of its efficient and easy resource management capabilities
  • Implement and use ranges, a D idiom for lazy sequence implementation with decoupled generic algorithms
  • Explore a variety of third-party libraries available to get your work done faster
  • Integrate D into existing C, C++, and other environments
  • Prove program correctness with static analysis and test-driven development

Approach

A recipe-packed reference guide filled with practical tasks that are concisely explained to develop and broaden the user's abilities with the D programming language.

Who this book is written for

If you are an experienced programmer who is looking to explore a language that offers plenty of advantages over more established programming languages, this is the book for you. We assume that you are already familiar with general programming language basics, but you do not need to be a proficient user of D.

商品描述(中文翻譯)

對於有經驗的程式設計師來說,本書是一次探索 D 語言的旅程,這種語言能顯著提升您的生產力和能力。學習過程引人入勝且簡單明瞭,這要歸功於「如何做到」/「它是如何運作的」的方法。

概述
- 利用 D 語言編寫高效且正確的程式,並以最少的程式碼實現
- 學習先進的程式碼生成技術,自動化程式設計任務
- 了解如何將 D 語言的慣用法應用於現實世界的問題,並理解它能為您帶來的好處

詳細內容
D 是一種現代程式語言,使用熟悉的 C 家族語法,同時提供先進的建模能力、安全性保證、程式設計師的生產力和高效率。它幫助您充分利用硬體和程式設計師的能力,從而節省開發和部署成本。

這本實用指南將引導您使用 D 語言完成工作,從編寫您的第一個程式到撰寫先進的自動生成物件,並根據現實世界的經驗提供有關潛在陷阱及如何避免它們的註解。您將使用一些可用於 D 的第三方庫,以快速實現程式碼,包括訪問資料庫引擎、圖像處理等。

您將從本書中學到的內容
- 從「Hello World」到裸金屬程式碼使用 D 程式語言
- 獲得避免垃圾回收器的見解,並理解其在現實世界程式碼範例中的優缺點
- 探索如何利用 D 的抽象能力,充分發揮其高效且簡單的資源管理能力
- 實現並使用範圍(ranges),這是 D 語言的一種慣用法,用於懶惰序列實現和解耦的泛型演算法
- 探索各種可用的第三方庫,以更快地完成工作
- 將 D 語言整合到現有的 C、C++ 和其他環境中
- 通過靜態分析和測試驅動開發來證明程式的正確性

方法
這是一本充滿實用任務的食譜式參考指南,簡明扼要地解釋了如何發展和擴展用戶在 D 程式語言方面的能力。

本書的讀者對象
如果您是一位有經驗的程式設計師,想要探索一種在許多方面優於更成熟程式語言的語言,那麼這本書就是為您而寫的。我們假設您已經熟悉一般程式語言的基本知識,但您不需要是 D 的熟練使用者。