filmov
tv
Learn Delphi Programming | Unit 9.3| Annotating and Commenting Your Delphi Code
Показать описание
A couple of months ago I had the opportunity to review some code that I wrote when I first started working with Delphi in the mid-90s. I hate to admit it but it was pretty bad. A very humbling experience for sure. My skills are vastly improved since that time. In fact, I've notice changes in just a few months. Have you ever gone back and looked at the code that you wrote six months ago? I bet that the thought going through your head was "What was I thinking? There is no way I wrote that."
If you ever had to debug your own code from a previous project I bet it was painful. It is even worse if you have to debug someone else's code. The only thing that can help the pain is good comments. Notice I said "good" comments. What does your code do?
You can write multi-line comments by enclosing the comment text between two braces or curly brackets or you can write single-line comments by starting your comment text with two forward slashes (//) on a blank line or after the line terminator (semi-colon) at the end of an instruction.
Links:
If you ever had to debug your own code from a previous project I bet it was painful. It is even worse if you have to debug someone else's code. The only thing that can help the pain is good comments. Notice I said "good" comments. What does your code do?
You can write multi-line comments by enclosing the comment text between two braces or curly brackets or you can write single-line comments by starting your comment text with two forward slashes (//) on a blank line or after the line terminator (semi-colon) at the end of an instruction.
Links:
Learn Delphi Programming | Unit 2.2 | Programming Languages
Learn Delphi Programming | Unit 5.2 | Working with Multiple Forms In a Delphi Project
Learn Delphi Programming | Unit 9.3| Annotating and Commenting Your Delphi Code
How to Create and Use a Unit in Delphi Programming
Learn Delphi Programming | Unit 10.9 | Exploring Strings | StringReplace Function
Learn Delphi Programming | Unit 8.9 | Introduction To Delphi's Built-In Functions
Learn Delphi Programming | Unit 14.2 | Multiple Nested If and Else statements
Delphi Programming Tutorial - Lesson 26: Understanding a Forms Unit
Learn Delphi Programming | Unit 17.3 | Randomizing the Elements of an Array in Delphi
Learn Delphi Programming | Unit 10.10 | Challenge 2 | Programming the Delete() Procedure in Delphi
Learn Delphi Programming | Unit 17.1 | Introduction to Arrays in Delphi
Learn Delphi Programming | Unit 8.1 | Understanding Events and Event Handlers in Delphi
Learn Delphi Programming | Unit 12.1 | Exploring Integer Data Types in Delphi
Learn Delphi Programming | Unit 14.4 | Making Multiple Decisions with Nested If and Else statements
Learn Delphi Programming | Unit 8.6 | Understanding a Delphi Object’s Methods
Learn Delphi Programming | Unit 5.4 | Understanding Classes and Objects
Learn Delphi Programming | Unit 3.4 | The Delphi 2010 Integrated Development Environment
Learn Delphi Programming | Unit 15.4 | Mathematical Functions and Expressions | Sqr and BODMAS
Learn Delphi Programming | Unit 17.4 | Exploring Two-Dimensional Arrays in Delphi
Learn Delphi Programming | Unit 8.5 | Code Shortcuts and Assistance In Delphi
Learn Delphi Programming | Unit 5.5 | Exploring a Delphi Form's Unit
Learn Delphi Programming | Unit 2.1 | Types Of Programs
Learn Delphi Programming | Unit 5.3 | Exploring Form Events
Learn Delphi Programming | Unit 14.6 | Making Decisions with Boolean Expressions
Комментарии