Elucian MoiseforProgramming Languagessagecode.hashnode.dev·Dec 1, 2023Ada: GenericsA generic package in Ada is a template for a package that can be customized for specific types. It allows code reuse by parameterizing the package on one or more types. Some key points about generic packages: They are declared using the generic keyw...Discuss·26 readsAda LanguageADA
Elucian MoiseforProgramming Languagessagecode.hashnode.dev·Nov 30, 2023Ada: OOPObject-Oriented Principles The object-oriented paradigm is based on a few key principles in computer science: Encapsulation Encapsulation refers to the bundling of data with the methods that operate on that data. This allows objects to hide their int...DiscussAda LanguageADA
Elucian MoiseforProgramming Languagessagecode.hashnode.dev·Nov 29, 2023Ada: I/OPrograms in most languages, including Ada programs, have to deal with input and output in some form. This is because: Programs need to accept input from the user or other systems in order to process data and perform tasks. Programs need to provide ...DiscussAda LanguageADA
Elucian MoiseforProgramming Languagessagecode.hashnode.dev·Nov 29, 2023Ada: EnumerationEnumeration declaration Enumeration types in Ada work similarly to enumeration types in other languages like C/C++ and Java. They allow you to define a group of related named constants. An enumeration type in Ada is defined using the keyword "type" a...DiscussAda LanguageADA
Elucian MoiseforProgramming Languagessagecode.hashnode.dev·Nov 29, 2023Ada: StringsAda strings are a fundamental data type in Ada programming language. They are used to represent sequences of characters and are essential for handling text data. Ada provides two main types of strings: fixed-length strings and unbounded-length string...DiscussAda LanguageADA
Elucian MoiseforProgramming Languagessagecode.hashnode.dev·Nov 29, 2023Ada: ExceptionsIn Ada, exceptions are a mechanism for handling exceptional situations that occur during program execution. They are designed to provide a structured way to deal with errors and other unexpected conditions, ensuring that the program can continue runn...Discuss·35 readsAda LanguageADA
Elucian MoiseforProgramming Languagessagecode.hashnode.dev·Nov 28, 2023Ada: RecordsRecord Type A record in Ada is a user-defined composite data type that groups variables of different types under a single name. Records allow you to define structures containing multiple related data items. Some key points about records in Ada: Reco...DiscussAda LanguageADA
Elucian MoiseforProgramming Languagessagecode.hashnode.dev·Nov 28, 2023Ada: ArraysArrays are a fundamental data structure in Ada, used to store a collection of elements of the same type. They are versatile and widely used in various programming scenarios. In Ada, you cannot declare an array without declaring the data type of its e...Discuss·43 readsAda LanguageADA
Elucian MoiseforProgramming Languagessagecode.hashnode.dev·Nov 28, 2023Ada: PackagesPackages are a mechanism to organize Ada code. They allow us to: Encapsulate related entities: We can group logically related declarations and definitions together in a package. This helps organize our code into logical units. Share entities: Entit...DiscussAda LanguageADA
Elucian MoiseforProgramming Languagessagecode.hashnode.dev·Nov 28, 2023Ada: SubprogramsIn Ada, subprograms are equivalent to procedures and functions. More specifically: Procedures in Ada are subprograms that do not return a value. They are called procedure_name. Functions in Ada are subprograms that return a value. They are called f...DiscussAda LanguageADA