0% found this document useful (0 votes)
18 views

Filtering Data Introduction

The document discusses filtering data by finding all data that meets certain criteria such as earthquakes of a certain magnitude or within a certain distance, and that it is better to write a generic filtering method rather than duplicating code for each specific filter.

Uploaded by

Mouloud HAOUAS
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
18 views

Filtering Data Introduction

The document discusses filtering data by finding all data that meets certain criteria such as earthquakes of a certain magnitude or within a certain distance, and that it is better to write a generic filtering method rather than duplicating code for each specific filter.

Uploaded by

Mouloud HAOUAS
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

Filtering Data

Introduction
Interfaces: Motivation
• Common problem: filter data
• Find all quakes of magnitude >= X
• Find all quakes within X miles of you
• …
• No new algorithmic concepts for either
• Similar code: write twice?
• Better: write generic method
• You are going to learn how

You might also like