Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

For each problem, study the supplied code, and list the code smells you see. For this exercise the code smells should be one of these:

For each problem, study the supplied code, and list the code smells you see. For this exercise the code smells should be one of these:

- long method

- large class

- duplicate code (aka cut and paste code)

- long parameter list

- primitive obsession

- magic numbers.

For each code smell, list the line numbers of the code where the smell is focused, identify the design principle(s) that are violated, and identify some program change that the smell would complicate

image text in transcribed

Smells and locations?

Design principles?

Maintenance Consequences?

Removes Bus Route * @para route public static void sponve Buousta Bus Rante, route) { public class database { public static List fapultables public static List group Table: public static List pajarTable: public static List dapaTable, public static List parkioglarTable: public static List eroploverTable public static Dining Center seasons; public static DiningCeater conversations; public static DiningCenter udes; public static Dining Center windows; public static List busTable: public static List faixTable, public static List

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Neo4j Data Modeling

Authors: Steve Hoberman ,David Fauth

1st Edition

1634621913, 978-1634621915

More Books

Students also viewed these Databases questions

Question

5. Understand how cultural values influence conflict behavior.

Answered: 1 week ago

Question

8. Explain the relationship between communication and context.

Answered: 1 week ago