Visualizing Generalizations Rylan Cottrell. Generalization Contains common pieces from the original two source code fragments. Abstract the code fragments.

Slides:



Advertisements
Similar presentations
Introduction to C++ An object-oriented language Unit - 01.
Advertisements

The New Library and IT Facilities at Brune Park School
Pass by Value. COMP104 Pass by Value / Slide 2 Passing Parameters by Value * A function returns a single result (assuming the function is not a void function)
Picture It Very Basic Game Picture Pepper. Original Game import java.util.Scanner; public class Game { public static void main() { Scanner scan=new Scanner(System.in);
Review of Inheritance. 2 Several Levels of Inheritance Base Class B Derived class D Derived class D1.
C++ Classes & Data Abstraction
Exception Handling – illustrated by Java mMIC-SFT November 2003 Anders P. Ravn Aalborg University.
Encapsulation, Inheritance & Interfaces CSE 115 Spring 2006 February 27, March 1 & 3, 2006.
C Lecture Notes 1 Program Control (Cont...). C Lecture Notes 2 4.8The do / while Repetition Structure The do / while repetition structure –Similar to.
0 Advanced Selection CE : Introduction to Software Development Week 3 Lecture 2.
Visual Basic Prototyping Visual Basic uses both a Visual Editor and is Code Based. With several simple lines of code, Visual Basic will navigate between.
Module 12 Computation and Configurations Formal Definition Examples.
Inline Functions Sometimes you need the same piece of code at multiple places in your task. Inline functions are copied at each place they are used. In.
Branch Admin Panel Queue Pro: Queue Management System.
 Knowledge and use of tools and resources in a system: standard libraries, system calls, debuggers, the shell environment, system programs and scripting.
Multi-threaded programming with NSPR Larry Hardiman.
2006/09/19AOAsia 21 Towards Locating a Functional Concern Based on a Program Slicing Technique Takashi Ishio 1,2, Ryusuke Niitani 2 and Katsuro Inoue 2.
CSCI 3327 Visual Basic Chapter 6: Methods: A Deeper Look UTPA – Fall 2011.
Together, We make the difference. Create a Working Linker with the MCLinker framework Luba Tang 2013/02/24.
Debugging. Compile problems Read the whole complaint! Runtime problems –Exceptions –Incorrect behavior.
Python – Procedures If the same piece of code needs to be used several times we can use a loop - but only if those times are all together. If you need.
CS106X – Programming Abstractions in C++ Cynthia Bailey Lee CS2 in C++ Peer Instruction Materials by Cynthia Bailey Lee is licensed under a Creative Commons.
Functions Top-down design Breaking a complex problem into smaller parts that we can understand is a common practice. The process of subdividing a problem.
Module 3: Using Microsoft.NET- Based Languages. Overview Overview of the.NET-Based Languages Comparison of the.NET-Based Languages.
Comp 245 Data Structures (A)bstract (D)ata (T)ypes ADT.
© Copyright 1992–2004 by Deitel & Associates, Inc. and Pearson Education Inc. All Rights Reserved. Chapter 5 - Functions Outline 5.1Introduction 5.2Program.
1 Programming Environment and Tools VS.Net 2012 First project MSDN Library.
© Copyright 1992–2004 by Deitel & Associates, Inc. and Pearson Education Inc. All Rights Reserved. Functions Outline 5.1Introduction 5.2Program Modules.
KIC/Computer Programming & Problem Solving 1.  Introduction  Program Modules in C  Math Library Functions  Functions  Function Definitions  Function.
Defect Classes and the defect repository
2.3 The Java API Documentation. What follows are the contents of the Java Application Programming Interface (API) Documentation for the system supplied.
C++ The reason why it is still in use. Table of Contents Disadvantages Disadvantages Advantages Advantages Compare with object-oriented programming language.
© 2006 Pearson Education 1 Obj: to use assignment operators HW: Prelab Exercises 2 Quiz 3.1 – 3.4 in two class days  Do Now: 1.Read p.144 – 145 (3.4 “more.
 2000 Prentice Hall, Inc. All rights reserved. 5.2Program Modules in C Functions –Modules in C –Programs combine user-defined functions with library functions.
Inclusive planet the global social library for the visually impaired.
Lecture-3 Functions and Recursion. C Preprocessor Includes header files like stdio.h Expands macros defined Handles conditional compilations PreprocessorProcessor.
Test Review. General Info. All tests will be comprehensive. You will be tested more on your understanding of code as opposed to your ability to write.
Print Row Function void PrintRow(float x[ ][4],int i) { int j; for(j=0;j
Dale Roberts CSCI N305 Functions Declarations Department of Computer and Information Science, School of Science, IUPUI.
OBJ: Solve Linear systems graphically & algebraically Do Now: Solve GRAPHICALLY 1) y = 2x – 4 y = x - 1 Do Now: Solve ALGEBRAICALLY *Substitution OR Linear.
The PLA Model: On the Combination of Product-Line Analyses 강태준.
Visual Studio.NET CIS 341 Chapter 1. Objectives.NET framework Compile Deploy VB6 compatibility library MDI project Solution Explorer AssemblyInfo.vb.
Lab 6 Instructions You can use g++ on build server, visual studio on local machine or your preferred C++ IDE. Important Note: For your grade, please show.
Introduction to Python
Chapter 5- Assembling , Linking, and Executing Programs
Programming Fundamentals Lecture #7 Functions
Deitel- C:How to Program (5ed)
Functions in C Mrs. Chitra M. Gaikwad.
and Executing Programs
Functions Declarations CSCI 230
March 29th Odds & Ends CS 239.
ساختمان و تجهیزات کتابخانه
Lesson 5-2 Solving Systems by Substitution
Reference Parameters.
CSCI 3327 Visual Basic Chapter 6: Methods: A Deeper Look
Realism Character Narrative Pose Mood Technique Tone Composition
CS 180 Assignment 6 Arrays.
.Net Framework Details Imran Rashid CTO at ManiWeber Technologies.
Discovery – Using Limiters to Refine Your Search
In C Programming Language
Python Lesson’S 1 & 2 Mr. Kalmes.
Lab – 2018/04/12 implement getTotalCount to return how many ‘nMatrix’s are allocated(exist) (modify constructor and destructor, use static variable and.
TEAM NAME MEMBER 1 MEMBER 2 MEMBER 3 MEMBER 4
Warm Up. Warm Up Obj: Students will multiply, divide, and simplify rational expressions.
CSCE 206 Lab Structured Programming in C
What you need to do… Drag the pieces of code into the correct order like you can see in the EXAMPLE below. print ( “ int input ) = + Hello world chr ord.
ITE “A” GROUP 2 ENCAPSULATION.
Instructions For the workshop, the intent is to have each participant get one piece of paper, printed front and back. Each page should have an “a” side.
04 | Understanding Frameworks
Presentation transcript:

Visualizing Generalizations Rylan Cottrell

Generalization Contains common pieces from the original two source code fragments. Abstract the code fragments that are not in agreement using new variables. public void m1(Object obj) { print obj; } public void m2(Object o) { print o; } public void X 1 (Object X 2 ) { print X 2 ; } Generalization

Why Generalizations? Frameworks, libraries and modules help developers harness existing functionality. Small changes can have huge impact. Understanding the commonalties and differences between the uses is important to making any changes.

Problem Generalizing just 5 uses.