Soumettre la recherche
Mettre en ligne
Restrant.js 20130720
•
0 j'aime
•
1,413 vues
Masashi Sato
Suivre
Signaler
Partager
Signaler
Partager
1 sur 20
Télécharger maintenant
Télécharger pour lire hors ligne
Recommandé
テスト
テスト
Masashi Sato
サークルアラウンドの今!そしてこれから!
サークルアラウンドの今!そしてこれから!
Masashi Sato
Launch Engine
Launch Engine
Masashi Sato
GitHubのIssue作成について
GitHubのIssue作成について
Masashi Sato
2024 State of Marketing Report – by Hubspot
2024 State of Marketing Report – by Hubspot
Marius Sescu
Everything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPT
Expeed Software
Product Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage Engineerings
Pixeldarts
How Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental Health
ThinkNow
Recommandé
テスト
テスト
Masashi Sato
サークルアラウンドの今!そしてこれから!
サークルアラウンドの今!そしてこれから!
Masashi Sato
Launch Engine
Launch Engine
Masashi Sato
GitHubのIssue作成について
GitHubのIssue作成について
Masashi Sato
2024 State of Marketing Report – by Hubspot
2024 State of Marketing Report – by Hubspot
Marius Sescu
Everything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPT
Expeed Software
Product Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage Engineerings
Pixeldarts
How Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental Health
ThinkNow
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
marketingartwork
Skeleton Culture Code
Skeleton Culture Code
Skeleton Technologies
PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024
Neil Kimberley
Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)
contently
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024
Albert Qian
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie Insights
Kurio // The Social Media Age(ncy)
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024
Search Engine Journal
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary
SpeakerHub
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd
Clark Boyd
Getting into the tech field. what next
Getting into the tech field. what next
Tessa Mero
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Lily Ray
How to have difficult conversations
How to have difficult conversations
Rajiv Jayarajah, MAppComm, ACC
Introduction to Data Science
Introduction to Data Science
Christy Abraham Joy
Time Management & Productivity - Best Practices
Time Management & Productivity - Best Practices
Vit Horky
The six step guide to practical project management
The six step guide to practical project management
MindGenius
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
RachelPearson36
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Applitools
12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at Work
GetSmarter
ChatGPT webinar slides
ChatGPT webinar slides
Alireza Esmikhani
More than Just Lines on a Map: Best Practices for U.S Bike Routes
More than Just Lines on a Map: Best Practices for U.S Bike Routes
Project for Public Spaces & National Center for Biking and Walking
Contenu connexe
En vedette
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
marketingartwork
Skeleton Culture Code
Skeleton Culture Code
Skeleton Technologies
PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024
Neil Kimberley
Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)
contently
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024
Albert Qian
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie Insights
Kurio // The Social Media Age(ncy)
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024
Search Engine Journal
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary
SpeakerHub
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd
Clark Boyd
Getting into the tech field. what next
Getting into the tech field. what next
Tessa Mero
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Lily Ray
How to have difficult conversations
How to have difficult conversations
Rajiv Jayarajah, MAppComm, ACC
Introduction to Data Science
Introduction to Data Science
Christy Abraham Joy
Time Management & Productivity - Best Practices
Time Management & Productivity - Best Practices
Vit Horky
The six step guide to practical project management
The six step guide to practical project management
MindGenius
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
RachelPearson36
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Applitools
12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at Work
GetSmarter
ChatGPT webinar slides
ChatGPT webinar slides
Alireza Esmikhani
More than Just Lines on a Map: Best Practices for U.S Bike Routes
More than Just Lines on a Map: Best Practices for U.S Bike Routes
Project for Public Spaces & National Center for Biking and Walking
En vedette
(20)
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
Skeleton Culture Code
Skeleton Culture Code
PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024
Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie Insights
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd
Getting into the tech field. what next
Getting into the tech field. what next
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search Intent
How to have difficult conversations
How to have difficult conversations
Introduction to Data Science
Introduction to Data Science
Time Management & Productivity - Best Practices
Time Management & Productivity - Best Practices
The six step guide to practical project management
The six step guide to practical project management
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at Work
ChatGPT webinar slides
ChatGPT webinar slides
More than Just Lines on a Map: Best Practices for U.S Bike Routes
More than Just Lines on a Map: Best Practices for U.S Bike Routes
Restrant.js 20130720
1.
サーバとクライアントの繋ぎを簡単にする(つもりの) Restrant.jsの話 サークルアラウンド株式会社 佐藤正志 13年7月20日土曜日
2.
• PGHouse豪徳寺 最年長 (プログラミングを学び合うシェアハウス) •
「仕事と生活がもっと近づいたら楽しい毎日 が過ごせるか」検証中 • いつか島を買って仲間と楽しく仕事します 自己紹介 •代表取締役CEO兼CTO •契約社員・フリーランス等で技術 者として活動し、2012年5月起業佐藤正志 13年7月20日土曜日
3.
こんなことありません? $.ajaxする時にホントにその通信が動くのか チェックする作業が嫌。POSTとか得に。 分業してシステムを作った時に「疎通」の部 分でよくバグが起きてる ユニットテストでチェックする?そこまで 作り込むのか? 13年7月20日土曜日
4.
こんなのが欲しい Remote Procedure Call(あったらしい) SOAP(あったねーそんなの) WEBサービス作る時にオブジェクトをネッ トワークに公開して呼べる。呼び出すStub は自動生成で作る。 13年7月20日土曜日
5.
こうすればやれるよね ブラウザ サーバー Controller Stub こいつを自動で作ろう Stub.js Controllerに 合致するStubクラス 13年7月20日土曜日
6.
そこまでの道のり 13年7月20日土曜日
7.
URLはどんな? RoRのRoutesってクールだよね! あそこを見るだけでどんなURLがあるか一発 で解る。 将来RESTっぽい実装作りやすいライブラリ になったら良いよね!Restrantとかつけるか 13年7月20日土曜日
8.
もっと厳格なパターン URLだけではなくて、リクエストパラメータ もパターンに加えたい。 /xxx/yyy vs /xxx/yyy?type=:type POSTパラメータもパターンに加えたい /xxx/yyy?username=:name (?以降がPOSTパラメータ) 13年7月20日土曜日
9.
もっと厳格な型チェック Routeのパターンに型も含めてしまえば? (Integer、Floatのみ実装) /xxx/yyy/:ttt:Integer 13年7月20日土曜日
10.
スタブでもチェック 動かない原因の殆どは引数間違えてるとか、 指定忘れているから。 通信する前にチェック 少なくとも引数undefinedくらいはチェック ホントはもっとやりたいけど... 13年7月20日土曜日
11.
JSのソース? ここは頑張って書いた。 他が出来上がっていれば下記をまとめるだけ $.ajaxするソース コントローラと同名のクラス 入力チェック系 13年7月20日土曜日
12.
node.js用 Expressと一緒に使っています 多分middlewareに詳しくなればもっと融合さ せられるはず(詳しい人教えて下さい) 13年7月20日土曜日
13.
デモ デモしまーす。下記を見て欲しいです。 今の動き Routeのソース コントローラーのソース JSのファイル 13年7月20日土曜日
14.
今やってること(1) Backbone.jsに簡単に繋げるようにしてみて いる。 RESTの内容をModel.syncのデフォルトの 仕様に合わせてあげるだけ。 意外に簡単だった(多分できた)。 13年7月20日土曜日
15.
今やってること(2) MongoDB(Mongoose)のモデルからスパーッ とRESTFulできるようなやつ作りたい 現実やろうとするとそんなに綺麗にゆかな い。セッションから値取ってきたり… やはりコントローラまでを相手するのが良 いかも。 13年7月20日土曜日
16.
デモ(2) 今やってるとこのデモ 13年7月20日土曜日
17.
細かいけどやりたいこと /xxx/yyy/aaa[a-Z0-9]+ とか書けたらいいなー(とは思っているの ですが切羽詰まっていないのと費用対効果 がそんなに良くないので後ろのタスクで す)。 13年7月20日土曜日
18.
最初の実装はJava restrant-j (https://code.google.com/p/restrant-j) 最初はJSのスタブは無かった。今はある。 GAEなんかで動かしていた 2010/6/21が初コミットらしい。 13年7月20日土曜日
19.
一応宣伝 こんな仕組み作って自社アプリ作ってます。 ライブラリ・フレームワークでもっと生産性 上げてけると嬉しーなーと思ってます。 お気軽に声かけて下され。技術的には以下の ような。 Node.js HTML5&CSS3 13年7月20日土曜日
20.
以上です ありがとうございました。 13年7月20日土曜日
Télécharger maintenant