Areas for Code Improvement
Identify and Improve Code Areas. Review examples of poorly written code and learn how to enhance readability and efficiency. Address issues with Javadoc comments and method structure.
Download Presentation

Please find below an Image/Link to download the presentation.
The content on the website is provided AS IS for your information and personal use only. It may not be sold, licensed, or shared on other websites without obtaining consent from the author.If you encounter any issues during the download, it is possible that the publisher has removed the file from their server.
You are allowed to download the files provided on this website for personal or commercial use, subject to the condition that they are used lawfully. All files are the property of their respective owners.
The content on the website is provided AS IS for your information and personal use only. It may not be sold, licensed, or shared on other websites without obtaining consent from the author.
E N D
Presentation Transcript
WARNING These slides are not optimized for printing or exam preparation. These are for lecture delivery only. These slides are made for PowerPoint 2010. They may not show up well on other PowerPoint versions. You can download PowerPoint 2010 viewer from here. These slides contain a lot of animations. For optimal results, watch in slideshow mode.
Higher level Same level
/** * Executes the given command. * @return the Result of the execution. */ Result execute(Command command) { Method makes sense on its own /** * Used for formatting text in UI. */ Refers to usage Parameter doesn t make sense void execute(String delimiter) { /** * @return list of persons. */ List<String[]> execute(Command command) { Return value doesn t make sense
/** * This method runs ... */
Good code looks neat.
Is this the best I can When to stop? do/be?
Code gorilla Code monkey
Master craftsman Code gorilla Code monkey
Master craftsman
Learn smarter! (learn like a cat, not like a mouse)
Learn smarter! (learn like a cat, not like a mouse)
High diversity! CS2103
High diversity! text books HEAVY
How? How
How? What? Why? How
How? What? Why? How
How? What? Why? How
Where we are Can refactor code to improve quality. Can abstract methods well. Can use basic revision control. Can create pull requests. Lecture 3 Theme: Towards higher level abstractions.