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
Razorに触れてみた
Search
masanori_msl
November 10, 2018
Programming
130
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
Razorに触れてみた
わんくま同盟 大阪勉強会#74 + プログラミング生放送 勉強会 第56回@大阪 (2018/11/10開催)のLTで使用した資料です。
masanori_msl
November 10, 2018
More Decks by masanori_msl
See All by masanori_msl
WPFで印刷しよう!
masui_masanori
1
1k
Programming ASP.NETCore を推したい話
masui_masanori
0
300
C#erがTypeScriptでフロントエンドに挑戦している話
masui_masanori
0
290
ASP.NET CoreやTypeScriptの力を借りてレガシー寄りの環境に立ち向かいたかった話
masui_masanori
1
270
やっぱりわからんTaskの話
masui_masanori
0
170
AzurePipelinesでコンティニュアスにインテグレーションしたい
masui_masanori
0
1.6k
ASP.NET Coreに入門した話
masui_masanori
0
320
Compare Java's 'var' with C#'s 'var'.
masui_masanori
0
1.4k
BoxingとUnboxingがどこで使われているか
masui_masanori
0
170
Other Decks in Programming
See All in Programming
変わらないものが、変わるものを決める — 意図駆動開発 × イベントソーシング × イミュータブル | What Doesn't Change Decides What Can — IDD × Event Sourcing × Immutability
tomohisa
0
1.7k
AWS DevOps AgentのAzure接続機能を検証して見えた活用法/Use Cases Verified for the AWS DevOps Agent's Azure Connectivity Feature
masakiokuda
1
230
そこに3びきプロダクトがいるじゃろう——生成AI時代における“価値が届かない理由”の構造
kosuket
0
480
【やさしく解説 設計編・中級 #4】ルールの寿命と、システムの年輪
panda728
PRO
2
190
改善しないと、タスクが回らない。 “てんこ盛りポジション” を引き継いだ情シスの、入社3ヶ月の業務改善録
krm963
0
260
5分で問診!Composer セキュリティ健康診断
codmoninc
0
1k
komatsuna「分散システムにおけるバグ分析手法」
komatsunaqa
0
260
yield再入門 #phpcon
o0h
PRO
0
1.1k
S3 を使うアプリケーションをローカル完結で動かすことに全力を注いでみた / Running S3 Apps Offline
contour_gara
0
480
170k Jobs a Day on GKE: Scaling Mercari's CI Platform - and What's Next for AI-Native Development
junyaokabe
0
110
Building a Meta Ray-Ban display app
akkeylab
0
150
仕様書を書く前にハーネスを作る - Agent Native開発は「探索を速く、判定を固く」
gotalab555
4
1.6k
Featured
See All Featured
GraphQLの誤解/rethinking-graphql
sonatard
75
12k
Digital Projects Gone Horribly Wrong (And the UX Pros Who Still Save the Day) - Dean Schuster
uxyall
1
2.3k
What's in a price? How to price your products and services
michaelherold
247
13k
SEO in 2025: How to Prepare for the Future of Search
ipullrank
3
3.7k
The Limits of Empathy - UXLibs8
cassininazir
1
600
Information Architects: The Missing Link in Design Systems
soysaucechin
0
1.1k
Redefining SEO in the New Era of Traffic Generation
szymonslowik
1
380
I Don’t Have Time: Getting Over the Fear to Launch Your Podcast
jcasabona
34
2.8k
Jamie Indigo - Trashchat’s Guide to Black Boxes: Technical SEO Tactics for LLMs
techseoconnect
PRO
0
620
The World Runs on Bad Software
bkeepers
PRO
72
12k
Evolution of real-time – Irina Nazarova, EuRuKo, 2024
irinanazarova
9
1.5k
Rebuilding a faster, lazier Slack
samanthasiow
85
9.6k
Transcript
None
None
⚫ では特にライブラリなどを追加しなくても を使うことができる での 有効化は必要 。 ⚫ には 種類あり、 が別に分かれているもの
、 でいうコードビハインドを持つもの がある。 それぞれファイルを置くディレクトリが異なる。 基本的な書き方は同じ
⚫
⚫
⚫ ⚫ ディレクトリ
⚫
⚫ ⚫ ディレクトリ
⚫
⚫ 構文として用意されているものは大きく つ それ以上あるかもですが のコードを書く を っぽく書く
大好きマンなので の話しかしてませんが、 などでも書けます になる
⚫ を付けることで の変数やメソッドが使える ⚫ 処理が複数行にわたる場合、 など が必要な場合は でくくる ⚫ や
など、専用に構文が用意されているものもある
•
•
•
⚫ など特定の タグには のような 構文が用意されている。 ⚫ を使うことで、より っぽく書くことができる。
•
⚫ を使うことで、 でフォームを閉じる 必要がなくなる上、スコープもわかりやすい ・ㅂ・ و ̑̑ グッ ⚫ を使うことで、
側にデータを渡すときの 紐づけが楽 ・ㅂ・ و ̑̑ グッ
Q1. こんなコードを書くとどうなるでしょう?
⚫ ⚫ ⚫ ⚫
Q2. こんなコードを書くとどうなるでしょう?
⚫ ⚫
Q3. こんなコードを書くとどうなるでしょう?
⚫
•
正直 が使われる場所、というのはかなり限定されると思う。 と で担当分けが難しそうなので とはいえこれだけ 寄りに書ける、というのは特に両方一人で書く場合 かなり助かる。あとこんな風になるのか!と楽しい。 、 がもう少し広まっていくと の評価も
高くなっていくのかも。
• • • • • •
• • • •