Git Product home page Git Product logo

2018-03-22-06-25-56-1521699956's Introduction

重构基础:Java版

练习描述

练习1

使用防卫语句取代条件表达式(Replaced the Nexted Conditional with Guard Clauses)重构遗留代码

练习2

使用提炼函数(Extract Method)手法重构遗留代码

练习3

使用抽象方法对象(Extract Method Object)重构遗留代码

环境要求

  • java 8
  • git

如何开始

首先初次下载完需要安装依赖和建立项目相关配置:

  Mac/Linux: ./gradlew idea
  Whindows:  gradlew.bat idea
  Mac/Linux: ./gradlew clean build
  Whindows:  gradlew.bat clean build

然后才能执行测试:

  Mac/Linux: ./gradlew clean test
  Whindows:  gradlew.bat clean test.

输出规范

  • 不得修改测试(除非必要情况)
  • 在/src/main下源代码上重构,重构后的代码必须通过测试

2018-03-22-06-25-56-1521699956's People

Contributors

recruiting-system avatar

Watchers

James Cloos 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.