Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
Wizards: From WTF to Wicked
Search
Sponsored
·
Ship Features Fearlessly
Turn features on and off without deploys. Used by thousands of Ruby developers.
→
Richard Schneeman
April 25, 2012
Programming
240
3
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
Wizards: From WTF to Wicked
A lightning talk I gave at RailsConf about Wicked
http://github.com/schneems/wicked
Richard Schneeman
April 25, 2012
More Decks by Richard Schneeman
See All by Richard Schneeman
[RubyConf] Beware the Dreaded Dead End
schneems
1
420
[Kaigi] Beware the Dead End
schneems
0
230
Threads Aren't Evil
schneems
0
650
Bayes is BAE
schneems
0
4.1k
Testing the Untestable
schneems
1
960
SLOMO
schneems
2
1.3k
Saving Sprockets
schneems
8
17k
Memory Leaks, Tweaks, and Techniques
schneems
1
270
Speed Science
schneems
20
37k
Other Decks in Programming
See All in Programming
運用ダッシュボードの設計を誰も教えてくれないのだけどみなさんどうしてるんですか? - チームに監視するという文化を根付かせるための第一歩を踏みたい -
satoshi256kbyte
1
130
自動化したのに回らないテスト運用の壁ーAI時代の品質責任と生産性
mfunaki
1
140
React本体のコードリーディング
high_g_engineer
1
150
Terraform標準の組織で AWS CDKをどう使うか
mu7889yoon
1
530
「寝てても仕事が進む」Claude Codeで組む第二の脳
tomoyafujita2016
0
340
SlackアプリとLambdaの 連携を構築した話
pawn_4_s
1
120
生成AIで帳票OCRが「簡単に」作れる時代になった?
kon_shou
0
1.1k
Cloudflare is Agents
chimame
0
170
言葉の格闘技のススメ~紙とペンと言葉から始める、キャリアの描き方~
progresscicada
2
160
関東Kaggler会_NVIDIA_Nemotron_コンペ_振り返り
rick_ds
0
650
AI Readyの正体はデータマネジメントだ メダリオン2.0の最前線
freee
PRO
0
300
AIを紡ぐPMのお話
swdtkuy
0
110
Featured
See All Featured
Groundhog Day: Seeking Process in Gaming for Health
codingconduct
0
280
Max Prin - Stacking Signals: How International SEO Comes Together (And Falls Apart)
techseoconnect
PRO
0
420
We Analyzed 250 Million AI Search Results: Here's What I Found
joshbly
1
1.8k
Between Models and Reality
mayunak
4
390
The Mindset for Success: Future Career Progression
greggifford
PRO
0
450
Leveraging Curiosity to Care for An Aging Population
cassininazir
1
470
Designing for Performance
lara
611
70k
Scaling GitHub
holman
464
140k
Principles of Awesome APIs and How to Build Them.
keavy
128
18k
How to Grow Your eCommerce with AI & Automation
katarinadahlin
PRO
1
240
Gemini Prompt Engineering: Practical Techniques for Tangible AI Outcomes
mfonobong
2
490
The Psychology of Web Performance [Beyond Tellerrand 2023]
tammyeverts
49
3.5k
Transcript
Wizards: From WTF to Wicked Richard Schneeman @schneems works for
@heroku ‘ ‘
Step By Step Wizards
verywhere
Step 1
Step 2
Step 3
The WTF
class Web::Users::SignupFlowController < Web:: before_filter :ensure_authenticated ## FLOW # ############################################
# signed up with facebook => :confirm # signed up with form => :find_friends ############################################
None
W
T
F
None
What if Everything
None
You ever wanted
None
(about step-by-step w izards)
Came
In
a
RUBY GEM
Introducing
Wicked ‘ ‘
Wicked ‘ ‘ rocket edition
include Wicked::Wizard
zOMG So Cool
steps :add_zip, :add_twitter
/views /after_register /add_zip.html.erb /add_twiter.html.erb
render_wizard
steps :add_zip, :add_twitter def show @user = current_user render_wizard end
def update @user = current_user @user.update_attributes(params[:user]) render_wizard @user end
class AfterRegisterController < ApplicationCon include Wicked::Wizard steps :add_zip, :add_twitter def
show @user = current_user render_wizard end def update @user = current_user @user.update_attributes(params[:user]) render_wizard @user end end
It’s a state machine!!
Wicked ‘ ‘ by @schneems Use