GithubHelp home page GithubHelp logo

rafna / java-study-group-refactoring Goto Github PK

View Code? Open in Web Editor NEW

This project forked from abbybader/java-study-group-refactoring

0.0 2.0 0.0 200 KB

Code examples, etc, for the Denver WWCode Java study group

Java 100.00%

java-study-group-refactoring's Introduction

java-study-group-refactoring

Refactoring: the art of applying structural changes to code that do not modify its behavior in order to achieve code that is more readable, maintainable, and easier to modify. This repo contains a refactoring case study for the Women Who Code Boulder/Denver Java Study Group.

How to use this repository

This repo contains a code snippet excerpted from a real live production web system. The first three commits (chronologically) set up the repo and the code example. Each following commit performs a step in the refactoring process. The end result is code with smaller classes, better leveraging of Java data structures, and lower "cyclometric complexity" (fancy term for "fewer conditionals"). In other words, the code becomes cleaner, more modular, more testable(!), and easier to change in the future.

It's highly recommended to clone the repo, check out the "starting point" commit, and get familiar with the code example. Run the ProjectDataReloader.main() method.

From there, you can either step through the commit history and examine the difs between states; or give it a try yourself!

Track 1: Easy This track has a simpler codeset that covers a smaller range of refactors; the refactoring steps are also smaller and more incremental. We'll cover this in study group together. It would also make a good at-home exercise for newer coders.

To use, check out the branch simplerExample. The starting commit is tagged as "SimpleExampleStartsHere".

Track 2: A little harder This track contains the full code example, including some complex timing issues. The refactoring steps are a bit broad, assuming some experience with refactoring.

To use, check out the master branch. The initial state of the code can be seen at the third commit and is tagged "StartHere".

java-study-group-refactoring's People

Contributors

abbybader avatar

Watchers

James Cloos avatar Rafna avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.