-
What criteria did you use to decompose the first design? In the first design I looked at how the program flowed from one method to another to see where I might be able to make changes.
-
What criteria did you use to decompose the second design? In the 2nd design I saw that their were multiple classes being used so I determined how their were being used together and decided to add a helper class with the outputting of the file.
-
Which design is more resilient to change? And why? Them more resislent design would be the second one because there is less coupling then the first one.
-
What would have to change in the first design/implementation if the file were changed out for a database? I'd create a helper method to connect to the database.
-
What would have to change in the second design/implementation if the file were changed out for a database? I'd create a class to connect to the database.
-
What would have to change in the first vs second design/implementation if we wanted to use a graphical user interface instead of the traditional console UI (System.out)? We'd have to figure out how we'd want to read the file in and output the file with GUI componments.
-
Identify another change that may happen in the future, and how does design 1 compare to design 2 when it comes to impact of the change?One change could be to extract each method into its own class and have mutiple classes interacting together.
-
Which design/implementation is easier to understand? The 2nd desing is easier to understand.
-
Which design/implementation is better performing? The 2nd one seems to be performoing better.
-
How does the principle of information hiding relate to all of this? With the 2nd design a lot of business logic concenring seperations is extracted into their own classes so that if you dont have access to view those classes then you'll essientially not know how those the progrma works.
kwic-program's Introduction
kwic-program's People
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. ๐๐๐
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.