PDL Programming Help by Programmers hub

Introduction to PDL

PDL stands for Program Design Language. It is used for designing and documenting methods and procedures in software. It is a simple language which is written without any terms or Libraries.

PDL is used commonly because it is easy to maintain other form of design document. If you are using PDL then you can make changes easily in your design.

Advantage of PDL is to Assures code is always documented Allows for high level design of routine that does not rely on a specific programming language implementation (remember the comments are plain English) Once the comments are complete, coding is a snap because the logic has already been documented in plain English in the comments.

Example of PDL:

Public Function CanPersonVote(ByVal Age As Integer, _

ByVal HasVoterID As Boolean) As Boolean

'If the person is of the legal drinking age

'If the person has a voter id card

'Return success to the caller

'Otherwise the person does not have a voter id card

'Return Failure to the caller

'Otherwise the person is too young

'Return Failure to the caller

End Function

Public Function CanPersonVote(ByVal Age As Integer, _

ByVal HasVoterID As Boolean) As Boolean

'If the person is of the legal voting age

If Age > 18 Then

'If the person has a voter id card

If HasVoterID Then

'Return success to the caller

Return True

'Otherwise the person does not have a voter id card

Else

'Return Failure to the caller

Return False

End If

'Otherwise the person is too young

Else

'Return Failure to the caller

Return False

End If

End Function

Tutorials for Programming design Language: