On this page, you will plan a railroad crossing data collection system by creating an abstract data type to organize crossing activation data with timestamps and speed.
A sublist is a list used as an item of another list.
(The word sublist is also used to refer to some subset of a list.)
Example: Railroad Crossing Data Structure

Without abstraction, accessing this data looks messy:
But code like
is hard to read and understand. A better approach is to use abstraction to organize the crossing data. The abstraction hides the complex list and item of blocks, making your code much easier to write, read, and debug.
With Abstraction: Cleaner Railroad Crossing Code

Now the code becomes much more readable:
The word "abstract" in computer science means making something easier to understand, not harder! ADTs help you create cleaner, more readable code.
block is the constructor; it constructs one example of the data structure. By naming the pieces of the structure, the constructor ensures you build the structure consistently every time.
,
,
, of crossing record, are the selectors; they each select one piece of the data structure.Modern railroad crossings use sophisticated data collection systems to ensure safety. These systems track:
Reshma Saujani (born 1975) founded the nonprofit organization Girls Who Code in response to the historical decline in the number of women employed in computer science fields. According to their website, in 1995, 37% of computer scientists were women. As of 2023, it’s only 24%. Reshma and Girls Who Code aim to fix this imbalance by running clubs that teach girls CS. In addition to being an activist, Reshma was the first Indian American woman to run for Congress and has served as New York City’s Deputy Public Advocate, where she created innovative partnerships to support DREAMers and promote campaign finance reform, among other initiatives.