ThoughtWorks アンソロジーの 10章 Ant ビルドファイルのリファクタリング p154 の項目抜き出し
- macrodef の抽出
- ターゲットの抽出
- 宣言の導入
- 依存による call の置き換え
- filtersfile の導入
- プロパティファイルの導入
| module.exports = (grunt) -> | |
| grunt.loadNpmTasks 'grunt-exec' | |
| grunt.initConfig | |
| exec: | |
| rustrun: | |
| command: 'rust run main.rs' | |
| grunt.registerTask 'default', ['exec:rustrun'] |
| % elixir main.exs | |
| > unused_x_variableain.exs:4: variable x is unused | |
| > foo |
| var object:* = new Object; | |
| var foo:int = object; | |
| trace(foo); //=> 0 |
| package | |
| { | |
| import flash.display.Sprite; | |
| public class Main extends Sprite | |
| { | |
| public function Main() | |
| { | |
| trace(int(new Foo).valueOf()); //=> 123 | |
| } |
| _module_ 'App.Main', -> | |
| class @MainContext extends Base.Context | |
| startup: -> | |
| @commandMap.when(@startupDone).then(App.Main.SayHelloCommand) | |
| shutdown: -> |
ThoughtWorks アンソロジーの 10章 Ant ビルドファイルのリファクタリング p154 の項目抜き出し
| # coding: utf-8 | |
| require 'cinch' | |
| def unko | |
| "💩" | |
| end | |
| def shit | |
| unko | |
| end |
| // AirLowMemoryWarningSuppressor.h | |
| #import <UIKit/UIKit.h> | |
| #import "FlashRuntimeExtensions.h" | |
| @interface AirLowMemoryWarningSuppressor : NSObject <UIApplicationDelegate> | |
| @end | |
| // AirLowMemoryWarningSuppressor.m |
| var button:Button = new Button(); | |
| button.clicked.add(function():void { | |
| trace("The button clicked."); | |
| }); |
| nm -u libThirdParty.a | grep ASIdentifierManager |