D Web Development(Paperback)
暫譯: D 網頁開發(平裝本)

Kai Nacke

  • 出版商: Packt Publishing
  • 出版日期: 2016-01-29
  • 售價: $1,660
  • 貴賓價: 9.5$1,577
  • 語言: 英文
  • 頁數: 196
  • 裝訂: Paperback
  • ISBN: 178528889X
  • ISBN-13: 9781785288890
  • 海外代購書籍(需單獨結帳)

相關主題

商品描述

Leverage the power of D and the vibe.d framework to develop web applications that are incredibly fast

About This Book

  • Utilize the elegant vibe.d framework to build web applications easily and REST backends with the D programming language
  • Learn about all components of vibe.d to enhance your web development with D
  • A hands-on guide to the vibe.d framework; from static web pages to template-based, interactive and localized web applications with database access and REST backends

Who This Book Is For

Whether you are new to the world of D, or already have developed applications in D, or if you want to leverage the power of D for web development, then this book is ideal for you. Basic knowledge of core web technologies like HTML 5 is helpful but not required. This book explains the difficult details to speed your web development.

What You Will Learn

  • Create amazingly fast web applications with D
  • Use Diet templates to easily create a web user interface
  • Utilize the web framework for interactive applications with input validation and internationalization
  • Access a database to provide persistent storage for your application
  • Extend your application with a REST interface and access other applications via REST
  • Understand vibe.d's fiber-based approach to asynchronous I/O and use it for integration of existing components
  • Create GUI applications with vibe.d

In Detail

D is a programming language with C-like syntax and static typing. The vibe.d framework builds on powerful D concepts like template meta-programming and compile-time function execution to provide an easy-to-use environment for web applications. The combination of a feature-rich web programming framework with a language compiling to native code solves two common issues in web development today: it accelerates your development and it results in fast, native web applications. Learning the vibe.d framework before you start your application will help you to choose the right features to reach your goal.

This book guides you through all aspects of web development with D and the vibe.d framework.

Covering the popular operating systems today, this guide starts with the setup of your development system. From the first Hello World-style application you will move on to building static web pages with templates. The concise treatment of web forms will give you all the details about form handling and web security. Using the abstractions of the web framework you will learn how to easily validate user input. Next, you will add database access to your application, providing persistent storage for your data. Building on this foundation, you will expose your component and integrate other components via REST. Learning about the internals of vibe.d you will be able to use low-level techniques such as raw TCP access. The vibe.d concepts can also be used for GUI clients, which is the next topic that you will learn. vibe.d is supported by an active community, which adds new functionality. This comprehensive guide concludes with an overview of the most useful vibe.d extensions and where to find them. It also shows you how to integrate these extensions in your application.

The concepts are always illustrated with source code, giving you an insight into how to apply them in your application.

Style and approach

A tutorial-style guide to develop web applications with D and the vibe.d framework. Each topic is explained in detail and illustrated with source code, providing you with hands-on assistance for your application.

商品描述(中文翻譯)

利用 D 語言和 vibe.d 框架的強大功能來開發極速的網頁應用程式

關於本書
- 利用優雅的 vibe.d 框架,輕鬆使用 D 語言構建網頁應用程式和 REST 後端
- 了解 vibe.d 的所有組件,以提升您使用 D 的網頁開發能力
- 一本實用的 vibe.d 框架指南;從靜態網頁到基於模板的互動式和本地化網頁應用程式,並具備資料庫存取和 REST 後端

本書適合誰
無論您是 D 語言的新手,還是已經在 D 語言中開發過應用程式,或是想要利用 D 語言的力量進行網頁開發,本書都非常適合您。對於 HTML 5 等核心網頁技術的基本知識會有所幫助,但並非必需。本書將解釋一些困難的細節,以加速您的網頁開發。

您將學到什麼
- 使用 D 創建驚人快速的網頁應用程式
- 使用 Diet 模板輕鬆創建網頁用戶介面
- 利用網頁框架開發具輸入驗證和國際化的互動式應用程式
- 存取資料庫以提供應用程式的持久儲存
- 透過 REST 擴展您的應用程式並存取其他應用程式
- 理解 vibe.d 的基於纖維的非同步 I/O 方法,並用於整合現有組件
- 使用 vibe.d 創建 GUI 應用程式

詳細內容
D 是一種具有類 C 語法和靜態類型的程式語言。vibe.d 框架建立在強大的 D 概念之上,如模板元程式設計和編譯時函數執行,提供一個易於使用的網頁應用程式環境。功能豐富的網頁程式設計框架與編譯為本機代碼的語言的結合,解決了當今網頁開發中的兩個常見問題:加速您的開發並產生快速的本機網頁應用程式。在開始應用程式之前學習 vibe.d 框架將幫助您選擇正確的功能以達成您的目標。

本書將引導您了解 D 語言和 vibe.d 框架的所有網頁開發方面。

本指南涵蓋當今流行的作業系統,從設置您的開發系統開始。從第一個 Hello World 風格的應用程式開始,您將進一步構建靜態網頁和模板。對於網頁表單的簡明處理將提供有關表單處理和網頁安全性的所有細節。利用網頁框架的抽象,您將學會如何輕鬆驗證用戶輸入。接下來,您將為應用程式添加資料庫存取,為您的數據提供持久儲存。在此基礎上,您將暴露您的組件並通過 REST 整合其他組件。了解 vibe.d 的內部運作後,您將能夠使用低級技術,如原始 TCP 存取。vibe.d 的概念也可以用於 GUI 客戶端,這是您將學習的下一個主題。vibe.d 擁有一個活躍的社群,持續添加新功能。本綜合指南以最有用的 vibe.d 擴展概述及其獲取方式作結,並展示如何在您的應用程式中整合這些擴展。

這些概念始終以源代碼進行說明,讓您深入了解如何在應用程式中應用它們。

風格與方法
一本以教程風格編寫的指南,幫助您使用 D 語言和 vibe.d 框架開發網頁應用程式。每個主題都詳細解釋並附有源代碼,為您的應用程式提供實用的協助。