Module-5-Construction Languages Coding

Module-5-Construction Languages Coding - Construction...

Info icon This preview shows pages 1–12. Sign up to view the full content.

View Full Document Right Arrow Icon
Construction Languages & Coding SE 211 Dr. Ahmed Redha Mahlous PSU 1
Image of page 1

Info icon This preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
Overview Programming Design Language Construction Languages Choice of Programming Language Programming into a Language Coding Classes Routines Variables Statements Layout & Style 2
Image of page 2
Programming Design Language Programming Design Language (PDL) is a form of pseudo-code used widely for designing internal function behavior. PDL's popularity stems from the use of natural languages—as opposed to computer languages or graphical techniques—to define the required behavior of functions. This result in detailed function designs that are easier to create, easier to review, and easier to translate to code. The usage of a natural language in PDL provides a "comments first approach" to constructing code for any programming language. PDL should be written without concern of the target programming language and detailed enough that code can be generated with minimal effort. PDL can be used as both design technique and effective documentation approach for functions and code within functions. 3
Image of page 3

Info icon This preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
Programming Design Language Example of PDL 4
Image of page 4
Choice of Programming Language Programming-language choice affects productivity and code quality in several ways. Programmers are more productive using a familiar language than an unfamiliar one. Programmers working in a language they've used for 3+ years are about 30% more productive than programmers with equivalent experience who are new to a language (Boehm et al. 2000). Programmers working with high-level languages achieve better productivity and quality than those working with lower-level languages. 5
Image of page 5

Info icon This preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
Choice of Programming Language Language Level Relative to C C 1 C++ 2.5 Java 2.5 Perl 6 Python 6 Smalltalk 6 Visual Basic 4.5 6
Image of page 6
Programming into a Language Programming in a language Programmers who program "in" a language limit their thoughts to constructs that the language directly supports. If the language tools are primitive, the programmer's thoughts will also be primitive. Programming into a language Programmers who program "into" a language first decide what thoughts they want to express, and then they determine how to express those thoughts using the tools provided by their specific language. 7
Image of page 7

Info icon This preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
Working Classes 8
Image of page 8
Classes Class Foundations: Abstract Data Types (ADT) Good Class Interfaces Reasons to Create a Class Language-Specific Issues 9
Image of page 9

Info icon This preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
Data types A data type is characterized by: a set of values a data representation, which is common to all these values, and a set of operations, which can be applied uniformly to all these values 10
Image of page 10
Class Foundations: A bstract D ata T ypes (ADT) An abstract data type is a collection of data and operations that work on that data.
Image of page 11

Info icon This preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
Image of page 12
This is the end of the preview. Sign up to access the rest of the document.

{[ snackBarMessage ]}

What students are saying

  • Left Quote Icon

    As a current student on this bumpy collegiate pathway, I stumbled upon Course Hero, where I can find study resources for nearly all my courses, get online help from tutors 24/7, and even share my old projects, papers, and lecture notes with other students.

    Student Picture

    Kiran Temple University Fox School of Business ‘17, Course Hero Intern

  • Left Quote Icon

    I cannot even describe how much Course Hero helped me this summer. It’s truly become something I can always rely on and help me. In the end, I was not only able to survive summer classes, but I was able to thrive thanks to Course Hero.

    Student Picture

    Dana University of Pennsylvania ‘17, Course Hero Intern

  • Left Quote Icon

    The ability to access any university’s resources through Course Hero proved invaluable in my case. I was behind on Tulane coursework and actually used UCLA’s materials to help me move forward and get everything together on time.

    Student Picture

    Jill Tulane University ‘16, Course Hero Intern