@article{Holdener_2023, title={Beautiful Code: CS2 / Java}, volume={3}, url={https://pac.pogil.org/index.php/pac/article/view/346}, abstractNote={<p style="font-weight: 400;">Inspired by Robert C Martin’s Clean Code book, this activity covers the basics of what makes code readable and understandable. As the students are preparing to spend a semester building a medium-sized Java application, it is important to build good habits for naming variables and methods in an intention revealing way, be methodical and consistent about indenting code blocks, be intentional about ordering methods of a class, and avoiding code duplication by creating generalized methods. The students work through these topics by exploring a model from a computerized card game. After completing this activity, the students will be able to describe the rules for writing readable code, identify opportunities for improving code readability, and explain the dangers of code duplication.</p> <p>This activity was developed with NSF support through IUSE-1626765. You may request access to this activity via the following link: <a href="https://nam02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fdrive.google.com%2Fdrive%2Ffolders%2F1yqQI95OIRb2tEJRPm8PGIaTaDAVutUZw%3Fusp%3Dshare_link&data=05%7C01%7Ceileen.kowalski%40westpoint.edu%7C7d71bbd1b0004e5364d808dad96319e8%7C99ff8811351740a9bf1045ea0a321f0b%7C0%7C0%7C638061316929175070%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=bw0xJO1uZ1R87NvfAsueG9QDonAeroYs%2FpPrq9Aqxj8%3D&reserved=0">IntroCS-POGIL Activity Writing Program</a>. </p> <ul> <li style="font-weight: 400;">Level: undergraduate</li> <li style="font-weight: 400;">Setting: computer classroom</li> <li style="font-weight: 400;">Activity type: Learning Cycle</li> <li style="font-weight: 400;">Discipline: Computer Science</li> <li style="font-weight: 400;">Course: CS2 / Java</li> <li style="font-weight: 400;">Keywords: naming variables & methods, code indentation, class organization, duplicate code</li> </ul>}, number={4}, journal={POGIL Activity Clearinghouse}, author={Holdener, Kate}, year={2023}, month={Jan.} }