ANALYSIS REFACTORING WITH TOOLS

Slides:



Advertisements
Similar presentations
A Taste of Visual Studio 2005 David Grey. Introduction In this session we will introduce Visual Studio 2005 and its features and examine those features.
Advertisements

Agenda Definitions Evolution of Programming Languages and Personal Computers The C Language.
Programming Paradigms and languages
Chapter 2- Visual Basic Schneider1 Chapter 2 Problem Solving.
Case Tools Trisha Cummings. Our Definition of CASE  CASE is the use of computer-based support in the software development process.  A CASE tool is a.
About the Presentations The presentations cover the objectives found in the opening of each chapter. All chapter objectives are listed in the beginning.
Your Interactive Guide to the Digital World Discovering Computers 2012.
A First Program Using C#
Languages and Environments Higher Computing Unit 2 – Software Development.
1 v1.6 08/02/2006 Overview of Eclipse Lectures 1.Overview 2.Installing and Running 3.Building and Running Java Classes 4.Refactoring 5.Debugging 6.Testing.
Computer Programming A program is a set of instructions a computer follows in order to perform a task. solve a problem Collectively, these instructions.
BTEC Unit 06 – Lesson 08 Principals of Software Design Mr C Johnston ICT Teacher
Programming Concepts Chapter 3.
Refactoring Improving the structure of existing code Refactoring1.
Copyright © 2007 Addison-Wesley. All rights reserved.1-1 Reasons for Studying Concepts of Programming Languages Increased ability to express ideas Improved.
Feasibility Study Cross-language Clone Analysis Team 2.
INTRODUCTION TO COMPUTING CHAPTER NO. 04. Programming Languages Program Algorithms and Pseudo Code Properties and Advantages of Algorithms Flowchart (Symbols.
Functions, Procedures, and Abstraction Dr. José M. Reyes Álamo.
Introduction to Computer Application (IC) MH Room 517 Time : 7:00-9:30pm.
Eclipse 24-Apr-17.
Programming with Microsoft Visual Basic th Edition
1 CSC/ECE 517 Fall 2010 Lec. 3 Overview of Eclipse Lectures Lecture 2 “Lecture 0” Lecture 3 1.Overview 2.Installing and Running 3.Building and Running.
Visual Basic for Application - Microsoft Access 2003 Programming applications using Objects.
SEG 4110 – Advanced Software Design and Reengineering Topic T Introduction to Refactoring.
Object Oriented Programming Criteria: P2 Date: 07/10/15 Name: Thomas Jazwinski.
1 The Software Development Process ► Systems analysis ► Systems design ► Implementation ► Testing ► Documentation ► Evaluation ► Maintenance.
Eclipse 27-Apr-17.
4 - Conditional Control Structures CHAPTER 4. Introduction A Program is usually not limited to a linear sequence of instructions. In real life, a programme.
Principles of Programming & Software Engineering
Data Virtualization Tutorial: Custom Functions
Steve Chenoweth Office Phone: (812) Cell: (937)
Software Testing.
Unit 2 Technology Systems
Visit for more Learning Resources
Module Road Map Refactoring Why Refactoring? Examples
Basic 1960s It was designed to emphasize ease of use. Became widespread on microcomputers It is relatively simple. Will make it easier for people with.
Chapter 1 Introduction.
Modern Systems Analysis and Design Third Edition
Introduction and Principles
Chapter Topics 15.1 Graphical User Interfaces
Modern Systems Analysis and Design Third Edition
System Design and Modeling
Chapter 1 Introduction.
Haritha Dasari Josue Balandrano Coronel -
Lecture 2 of Computer Science II
By Dr. Abdulrahman H. Altalhi
Eclipse 20-Sep-18.
Unit# 8: Introduction to Computer Programming
TRANSLATORS AND IDEs Key Revision Points.
Computer Programming.
Chapter 12 User Interface Design
VISUAL BASIC.
CSC128 FUNDAMENTALS OF COMPUTER PROBLEM SOLVING
Functions, Procedures, and Abstraction
Teaching slides Chapter 8.
Modern Systems Analysis and Design Third Edition
Modern Systems Analysis and Design Third Edition
Chapter 3 – Agile Software Development
Chapter 15: GUI Applications & Event-Driven Programming
Lecture 06:Software Maintenance
IDE’s and Debugging.
Tonga Institute of Higher Education IT 141: Information Systems
Chapter 11 Managing Databases with SQL Server 2000
Tonga Institute of Higher Education IT 141: Information Systems
Chapter 15 Functional Programming 6/1/2019.
Review of Previous Lesson
Functions, Procedures, and Abstraction
Modern Systems Analysis and Design Third Edition
WRITING AN ALGORITHM, PSEUDOCODE, AND FLOWCHART LESSON 2.
Web Application Development Using PHP
Presentation transcript:

ANALYSIS REFACTORING WITH TOOLS First International Virtual Conference on Multidisciplinary Research 2018 ANALYSIS REFACTORING WITH TOOLS Zhala Sarkawt Othman From: Erbil, Iraq Master Student in Firat University Elazig, Turkey e-mail: zhala.sarkawt@gmail.com). 4/6/2019

Contents INTRODUCTION METHOD AND MATERIALS RESULTS DISCUSSION AND CONCLUTION 4/6/2019

INTRODUCTION Refactoring is a technique of fluctuating the now prevailing basis codes using an unconventional as well as the incremental system. The universal comportment of the code is not reformed through refactoring. Refactoring is advantageous as its reprocess results in either the refactored code being definitely employed in a more advanced way or for an additional tenacity. 4/6/2019

INTRODUCTION Refactoring Having a refactoring tool arranges for a much indispensable sustenance in scrutinizing a code rather than doing it manually. This is because manual refactoring consumes a lot of time. The refactoring process must be in route with the common comportment of the programs set in place. The program writer is tasked with the choice of providing an eminence work at a cognizant time interval. Much of the statistics is already known to the programmer. 4/6/2019

METHOD AND MATERIALS A project analyzer is a refactoring tool that is essential to refactoring already in place Visual basic code. This tool has substantiated to be useful in various ways. As a refactoring tool, the scheme analyzer also completes robotically a splinter of the refactoring. A number of vagaries in the codes entail mortal consideration, therefore, making a refactoring to be completed by hand. 4/6/2019

METHOD AND MATERIALS There are some existing refactoring tools for the most widely used modern languages, such as Java, C# and C++, mostly as refactoring browser plug-ins to the most mainstream IDEs (e.g., Microsoft Visual Studio or Eclipse). In addition, the database logic is not related to the fundamental code that it is initially written. It is easy to read the source code with the aid of the flowchart. The flowchart assists to refactor the codes to systems that are easily decipherable plus increased. 4/6/2019

METHOD AND MATERIALS The (flowchart 1) about Refactoring Process. This makes a graphic construal of the code to be more favored since it divulges designs which can be distinguished in the source code. 4/6/2019

METHOD AND MATERIALS Refactoring Technique Meaning in Life Extract Method This allows you to define a new method based on a selection of code statements. Encapsulate Field Turns a public field into a private field encapsulated by a .NET property. Extract Interface Defines a new interface type based on a set of existing type members. Reorder Parameters Provides a way to reorder member arguments. Remove Parameters As you would expect, this refactoring removes a given argument from the current list of parameters. Rename This allows you to rename a code token (method name, field, local variable, and so on) throughout a project. Promote Local Variable to Parameter Moves a local variable to the parameter set of the defining method. The refactoring techniques streamline methods, remove code duplication, and pave the way for future improvements. In (Table 1) the following are examples of simple refactoring in Visual Studio. 4/6/2019

Example of "Extract Method" Refactoring 1. We will select the following range of code inside the Test (Class): This example of the "Extract Method" Refactoring. We use one of the tools in programming to improve the code in order to make the intent of the code clearer; you will extract the code that collects test cases from base classes into a new method called “printmarks”. 4/6/2019

Example of "Extract Method" Refactoring After we select three lines of the code from the selection's context menu in the editor; select Refactor > Extract Method or using (Alt+Shift+M) for the refactoring Extract Method: 4/6/2019

Example of "Extract Method" Refactoring In the Method Name field, type printmarks: 4/6/2019

Example of "Extract Method" Refactoring After refactoring, we get a cleaner and more readable code: 4/6/2019

RESULTS The important part of the test is to make sure that your application performs efficiently and responsibly. This is where code analysis and profiling tools and techniques are evaluated: allows you to evaluate your code for errors, bottlenecks, and efficient use of processing and memory resources. Modern code recognizers can direct you to the exact lines of code that need to be resold. The re-export tools change between IDEs and software programs. Visual Studio contains embedded built-in analysis tools. 4/6/2019

DISCUSSION AND CONCLUTION The use of the hide method by the project analyzer allows the detection of excess method scope. It also suggests how to make the procedure private where it is convenient. This procedure can also be done by making the variable to be local. The cases for substitute nested conditional with guard clauses, the project analyzer is able to identify unwarranted conditional nesting. This is essential to understanding the steps taken in its execution, making it easier to read. 4/6/2019

DISCUSSION AND CONCLUTION The procedure of using the manual as a refactoring tool is long. This is with the inclusion of a similar line of code in various locations. In the case where a logical structure exists in more than two procedures which may be as a result of duplication and pasting of the codes. The multifaceted expressions formed are easily detected in a flow chart. It provides a suitable platform for the logic to be rewritten in a simpler manner. 4/6/2019

Please do not hesitate to contact me if you have any questions. Zhala Sarkawt OTHMAN, Elazig 23119 Turkey, e-mail: zhala.sarkawt@gmail.com). 4/6/2019