Glossary


J. S.
This flashcard set covers advanced programming concepts and techniques, focusing on functions, objects, and data structures. It delves into topics like object-oriented programming, functional programming styles, and various data types such as lists, dictionaries, and strings. The flashcards explore programming paradigms, error handling, and operations like filtering, mapping, and reducing sequences. This set is ideal for programmers looking to deepen their understanding of programming languages and best practices, providing insights into both theoretical concepts and practical applications.
Cartes-fiches
194
Utilisateurs
2
Langue
Anglais
Catégorie
Informatique
Niveau
Autres
Créé / Mis à jour
29.01.2018 / 30.01.2018

Cartes-fiches

polymorphic:

Pertaining to a function that can work with more than one type.

type-based dispatch:

A programming pattern that checks the type of an operand and invokes different functions for different types.

operator overloading:

Changing the behavior of an operator like + so it works with a programmer-defined type.

positional argument:

An argument that does not include a parameter name, so it is not a keyword argument.

subject:

The object a method is invoked on.

method:

A function that is defined inside a class definition and is invoked on instances of that class.

object-oriented programming:

A style of programming in which data and the operations that manipulate it are organized into classes and methods.

object-oriented language:

A language that provides features, such as programmerdefined types and methods, that facilitate object-oriented programming.

assert statement:

A statement that check a condition and raises an exception if it fails.

invariant:

A condition that should always be true during the execution of a program.

functional programming style:

A style of program design in which the majority of functions are pure.

modifier:

A function that changes one or more of the objects it receives as arguments. Most modifiers are void; that is, they return None.

pure function:

A function that does not modify any of the objects it receives as arguments. Most pure functions are fruitful.

designed development:

A development plan that involves high-level insight into the problem and more planning than incremental development or prototype development.

prototype and patch:

A development plan that involves writing a rough draft of a program, testing, and correcting errors as they are found.

object diagram:

A diagram that shows objects, their attributes, and the values of the attributes.

deep copy:

To copy the contents of an object as well as any embedded objects, and any objects embedded in them, and so on; implemented by the deepcopy function in the copy module.

shallow copy:

To copy the contents of an object, including any references to embedded objects; implemented by the copy function in the copy module.

embedded object:

An object that is stored as an attribute of another object.

attribute:

One of the named values associated with an object.

instantiate:

To create a new object.

instance:

An object that belongs to a class.

class object:

An object that contains information about a programmer-defined type. The class object can be used to create instances of the type.

class:

A programmer-defined type. A class definition creates a new class object.

pipe object:

An object that represents a running program, allowing a Python program to run commands and read the results.

shell:

A program that allows users to type commands and then executes them by starting other programs.

bytes object:

An object similar to a string.

database:

A file whose contents are organized like a dictionary with keys that correspond to values.

catch:

To prevent an exception from terminating a program using the try and except statements.

absolute path:

A path that starts from the topmost directory in the file system.

relative path:

A path that starts from the current directory.

path:

A string that identifies a file.

directory:

A named collection of files, also called a folder.

text file:

A sequence of characters stored in permanent storage like a hard drive.

format sequence:

A sequence of characters in a format string, like %d, that specifies how a value should be formatted.

format string:

A string, used with the format operator, that contains format sequences.

format operator:

An operator, %, that takes a format string and a tuple and generates a string that includes the elements of the tuple formatted as specified by the format string.

persistent:

Pertaining to a program that runs indefinitely and keeps at least some of its data in permanent storage.

shape error:

An error caused because a value has the wrong shape; that is, the wrong type or size.

data structure:

A collection of related values, often organized in lists, dictionaries, tuples, etc.

Étudier