Learn to Program with Delphi Community Edition: Part 1 - Introduction and Installation

bjabc 4月前 705

https://community.embarcadero.com/blogs/entry/learn-delphice-part1


Learn to Program with Delphi Community Edition: Part 1 - Introduction and Installation

This blog post is the beginning of the "Learn to Program in Delphi" series. We are expecting that you have some previous experience in programming, but not in Delphi. In this five part series we are going to take you through the process of building a simple "calculator" application. 

This series has a counterpart in C++ using the same example project, so head over here if you want to compare how the same application is developed in both Delphi and C++. 

Learning to Program

In the 21st century programming is an art that is really useful to master. It can be very very useful to know how to write a computer program to solve a certain task, especially when you are a student. Programming will also make you smarter because it teaches how to think in a more organized way.

You need to have a program in which you are going to write your programs. This is called an Integrated Development Environment (IDE) and was invented many years ago with the ancient ancestor of Delphi called Turbo Pascal that combined together three previously separate programs - compiler, code editor and debugger - into one integrated programming environment. You can start learning programming using just Notepad and command line compilers but in the longer run it is not the most productive environment. With the IDE you get a lot of help like syntax checking of your code as you type and much more. Why not be like a pro?

Today we are going to start learning to program in the Object Pascal language used in Delphi Community Edition’s IDE. Object Pascal is probably the best choice to start with programming. From the very beginning it was designed for teaching good programming practices. Over time it grew up as the language of choice for building all kinds of software from Internet communicators like Skype to professional music production like FL Studio.

Today let's just focus on downloading and installing Delphi Community Edition. In the next post, we will go into writing your first lines of code.

Installing Delphi Community Edition

Let's get started! You will need a computer or laptop with Windows, because Delphi itself is Windows program. You can build applications for Windows, mac OS, Android and iOS with Delphi Community Edition. You only need to learn one language, get familiar with just one development environment and you can natively compile your projects to all major desktop and mobile platforms. 

The first step is to download Delphi Community Edition, which is free to developers and organizations with less than $5000 USD in revenue (view the license restrictions). (Don’t qualify for Delphi Community Edition? You can complete this series with a FREE 30 DAY Trial of RAD Studio.) You will then receive an automatically generated email with your own serial number and the download link to the installer program. The installer is about 182 MB in size. You need to download and run it. You will need to have an Internet connection because the installer will be downloading installation files from the internet. On one of the first screens there will be an opportunity for you to enter the serial number that you have received. The next step is to select which platforms and optional features you want to install, as shown in the image below. You can pick only a few and get back to install more later, directly in the Delphi IDE.

In a few minutes (mostly depending on the features and platforms you select) you should have the development environment ready to start working, and it's community splash screen:

In Part 2 of this series, we will start writing our first programs! Before we actually start programming, let's make sure there is a clear understanding of who can use Delphi Community Edition

But What is Delphi Community Edition?

What is Delphi Community Edition? Is it free? Can it be used commercially? Can I use it as a student?

Put simply, yes (with caveats) for all three.

Delphi Community Edition is intended to get people started with Delphi, and that can be either getting started with programming in general - such as a student - or for starting something else, such as writing software for your startup company.  It has the same features as our Professional Edition, but with a restricted commercial license That's enough to learn to program, or to write a saleable Windows or mobile application. If you are a startup, you can do almost all your development for no cost at all.

The only license restriction is based on revenue. This isn't legal advice - please read the EULA - but once your revenues reach $5000 USD (or local equivalent), or you have 5+ developers, you are required to purchase Pro.

  • So if you're a hobbyist? It's free. Enjoy!
  • If you're a student? It's free. Enjoy!
  • If you're a startup? It's free, but once you start making sales and get incoming revenue of $5000 USD or more, you need to move to Professional or above.
  • If you're an existing company? You may not be able to comply with the revenue and team size license limitation, and you'd have to use a commercial version of Delphi Professional, Enterprise or Architect. Remember there is always the fully-featured RAD Studio trial version if you just want to try Delphi out for free for a limited time.

Delphi Community Edition  is to help you get started. If you're using it and start making money, purchase Pro or higher editions; if you aren't, it remains free. Either way we're very glad you're using our products, and this series of blogs is a great resource to get you started.

What if I don’t Qualify for Delphi Community Edition? 

Don’t qualify for Delphi Community Edition? You can complete this series with a FREE 30 DAY Trial of RAD Studio, which includes Delphi Architect trial. 

Next in this Series

Part 1: Introduction and Installation (this blog post)

Part 2: Building and Debugging in Delphi

Part 3: Architecture and Layers

Part 4: Designing User Interfaces

Part 5: Putting the Calculator Together

Notice: This series of blog posts was originally written for an earlier release by the late Pawel Glowacki, a Delphi expert who contributed a great deal to the product promotion and friend we all miss


最新回复 (3)
  • 翻译一下! E文太累了
    ------------------------------------------------

    用Delphi Community Edio学习程序:第1部分:介绍和安装

    Postedby Marco Cantu,拉德帕蒙林部落格


    这篇博文是“Delphi学习程序”系列的开始。我们期待您在编程方面有一些经验,但在Delphi中没有。在这五部分系列中,我们将带您完成一个简单的“计算器”应用程序的过程。


    这个系列在C++中有一个对应的例子,使用相同的示例项目,所以如果你想比较Delphi和C++中的同一个应用程序是如何开发的。

    学习编程


    在二十一世纪编程是一门非常有用的艺术。特别是当你是学生的时候,知道如何编写一个计算机程序来解决某个任务是非常有用的。编程也会让你变得更聪明,因为它教你如何更有组织地思考。


    你需要有一个程序来编写你的程序。这被称为集成开发环境(IDE),它是在许多年前与Delphi的古代祖先Turbo Pascal发明的,它将三个以前分开的程序——编译器、代码编辑器和调试器组合成一个集成的编程环境。您可以使用记事本和命令行编译器开始学习编程,但从长远来看,它不是最有生产力的环境。使用IDE,您可以在键入更多的代码时对代码进行语法检查。为什么不像个专业人士呢?


    今天,我们将开始学习在Delphi Community Edio的IDE中使用的对象PASCAL语言编程。对象Pascal可能是从编程开始的最佳选择。从一开始它就被设计用于教好编程实践。随着时间的推移,它成长为选择各种语言的语言,从像Skype这样的互联网传播者到像FL Studio这样的专业音乐制作软件。


    今天让我们专注于下载和安装Delphi Community Edio。在下一篇文章中,我们将开始编写你的第一行代码。

    安装Delphi社区版


    让我们开始吧!你需要一台带Windows的电脑或笔记本电脑,因为Delphi本身就是Windows程序。您可以用Delphi Community Edio为Windows、Mac OS、Android和iOS构建应用程序。你只需要学习一种语言,熟悉一种开发环境,你就可以将你的项目自然地编译到所有的桌面和移动平台上。


    第一步是下载Delphi Community Edio,它对收入和收入不到5000美元的开发者和组织是免费的(查看许可限制)。(不符合德尔福社区版吗?)你可以在RAD Studio免费试用30天完成这个系列。然后你会收到一个自动生成的电子邮件,带有你自己的序列号和下载链接到安装程序。安装程序的大小约为182 MB。你需要下载并运行它。因为安装程序将从Internet上下载安装文件,所以您需要有Internet连接。在第一个屏幕上,将有一个机会让你输入你收到的序列号。下一步是选择您想要安装的平台和可选特征,如下面的图像所示。你可以选择一些,然后返回安装更多,直接在Delphi IDE中。


    在几分钟内(主要取决于您选择的特性和平台),您应该有开发环境准备开始工作,并且它是社区飞溅屏幕:


    在本系列的第2部分,我们将开始编写我们的第一个程序!在我们真正开始编程之前,让我们明确了解谁可以使用德尔福社区版。

    但是德尔福社区版是什么呢?


    什么是德尔福社区版?是免费的吗?可以用在商业上吗?我能用它当学生吗?


    简单地说,对所有三个都有(警告)。


    Delphi Community Engress旨在让人们开始使用Delphi,它可以从总体上开始编程,比如学生,或者开始其他的事情,比如为初创公司编写软件。它具有与我们专业版相同的特性,但具有受限的商业许可证,足以学习编程或编写可销售的Windows或移动应用程序。如果你是一个创业公司,你可以做几乎所有的开发,没有任何成本。


    唯一的许可限制是基于收入。这不是法律建议-请阅读EULA -但一旦你的收入达到5000美元美元(或当地当量),或你有5 +开发商,你需要购买PRO。


    如果你是业余爱好者?它是免费的。享受!

    如果你是学生?它是免费的。享受!

    如果你是创业公司?它是免费的,但是一旦你开始销售并获得5000美元或更多的收入,你就需要转移到PR。
  • Delphi 的这个做法是正确的,盼望Delphi的复兴之日,早日到来。
     
返回