GithubHelp home page GithubHelp logo

isabella232 / fluent-refactoring Goto Github PK

View Code? Open in Web Editor NEW

This project forked from barsoom/fluent-refactoring

0.0 0.0 0.0 215 KB

geeksams refactoring example a adapted to our devenv and some refactoring attempts as branches

License: MIT License

Shell 0.24% Ruby 99.71% Perl 0.05%

fluent-refactoring's Introduction

Fluent Refactoring

This repository contains the code used in my "Fluent Refactoring" presentation at Lone Star Ruby Conf 2013. My slides are available via SlideShare. If you saw the talk, I'd appreciate feedback via email or SpeakerRate.

(A note on feedback: while of course I always enjoy hearing "great talk!", I especially want to know if there was any part of the talk that was unclear, confusing or vague—or if any of my jokes just weren't funny!)

Getting Started

Code is in lab/installations_controller.rb. There is a set of mock-driven characterization tests in lab/installations_controller_spec.rb. (These specs are relatively strict; for example, they will complain if you add a catch-all rescue clause to the request.xhr? branch!)

Barsoomians:

  • gem install bundler && bundle
  • use the normal shortcuts to run tests

There are also some convenience scripts:

  • lab/spec will run the specs
  • lab/autocommit will run the specs, and if they pass, will automatically commit any changes to Git, using the arguments to the script as the commit message. For example: lab/autocommit do the thing will create a commit whose message is "do the thing". (Quotes should work as normal if for some reason you want to include weird spacing in your commit message.)

Other Fun Toys

This repository also contains a script I wrote to dump plain-text and syntax-highlighted RTFs of every commit on a particular branch. To use this, make sure you are on master and run go_meta [branch_name]. (You'll probably also want to have Pygments installed to generate the RTFs.) This will create output in ./metadata/[branch_name] with one subdirectory per commit.

Happy hacking! -Sam

fluent-refactoring's People

Contributors

geeksam avatar joakimk 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.