Giter Site home page Giter Site logo

refactor-task-list's Introduction

改動

HW2

  • 將各項 command 抽成一個 class 並獨立放在一個檔案
  • 把只有某個 command 會用到的 function 放在他自己的 class 裡
  • 新增一個 CommandInterface 讓所有 command class 繼承它,並把它和各項 command 及放到同一個資料夾
  • 執行 command 改為 strategy 的方式來執行
  • console 和 task 用參數的方式傳給需要用到的 command
  • 把 command.py 裡的 command_rest 變數改成 command 跟 args
  • 為 add command 增加更完整的參數檢查

HW3

  • 將整個程式分成四層 (entities, use cases, adapters, io)
  • 新增 tasklist 類別
  • command 會將欲輸出字串回傳,而非直接印出

refactor-task-list's People

Contributors

samirtalwar avatar mbirtwell avatar xstrengthofonex avatar chofinn avatar antoinecezar avatar benoitmasson avatar hilton avatar dependabot[bot] avatar arnaudruffin avatar carlklagba avatar esandre avatar martinsson avatar sandromancuso avatar gemcfadyen avatar neomatrix369 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.