GithubHelp home page GithubHelp logo

00mjk / motion-live Goto Github PK

View Code? Open in Web Editor NEW

This project forked from fabiopelosin/motion-live

0.0 0.0 0.0 96 KB

Live is a gem for RubyMotion that aims to implement some of the ideas presented in Bret Victor's Inventing on Principle keynote.

Home Page: http://irrationalfab.github.com/blog/2012/05/22/introducing-live-for-rubymotion/

License: MIT License

Ruby 100.00%

motion-live's Introduction

Live for RubyMotion

Live is a gem for RubyMotion that aims to implement some of the ideas presented in Bret Victor's inventing on principle keynote. It interfaces with the REPL and allows to control it from the comfort of your preferred text editor. The resulting code can then be copied to the source files with minimal adjustments required.

Collaborate

Contributors are welcome and get push access once their first commit is accepted.

Installation

$ [sudo] gem install motion-live

Usage

Add the following line near the top of your Rakefile:

require 'motion-live'

Run motion-live:

$ rake live

At this point you can just edit LiveScratchpad.rb, hit save, and see the changes being propagated to the application.

By the default only the lines that weren't present in the previous scratchpad are sent to the REPL. This behaviour is more efficient and well suited for changing the state of the application. However, it is less convenient for redefining logic. In this case is possible to include the #nodiff magic comment, which forces to send the whole file.

Known Caveats

  • The code is interacting with REPL through a leaky abstraction. For example, using the nodiff mode in the demo shown in the video would result in new views being created every time the file is saved.
  • Methods and classes which are not actually used by the compiled code might be striped and thus will not be available at runtime.
  • Long declarations might choke the REPL and crash the simulator.
  • This is a 0.1 release.

License

The project is available under the MIT license.

motion-live's People

Contributors

fabiopelosin 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.