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
#bcbk4 Please use a Web Framework
Search
Manatsawin Hanmongkolchai
September 22, 2013
0
920
#bcbk4 Please use a Web Framework
Barcamp Bangkhen 4
Manatsawin Hanmongkolchai
September 22, 2013
Tweet
Share
More Decks by Manatsawin Hanmongkolchai
See All by Manatsawin Hanmongkolchai
Nix: Declarative OS
whs
0
75
gRPC load balancing with xDS
whs
0
940
ArgoCD
whs
0
410
Writing Babel Plugin
whs
0
180
What's new in Cloud Next 2019
whs
0
290
A Date with gRPC
whs
1
1.4k
ตีแผ่ Microservice ด้วย Tracing
whs
0
360
Next Generation Smart Home
whs
0
960
Istio and the Service Mesh Architecture
whs
3
1k
Featured
See All Featured
Navigating Team Friction
lara
187
15k
Raft: Consensus for Rubyists
vanstee
140
7k
Save Time (by Creating Custom Rails Generators)
garrettdimon
PRO
31
1.3k
Making the Leap to Tech Lead
cromwellryan
134
9.4k
Templates, Plugins, & Blocks: Oh My! Creating the theme that thinks of everything
marktimemedia
31
2.4k
Practical Tips for Bootstrapping Information Extraction Pipelines
honnibal
PRO
20
1.3k
Distributed Sagas: A Protocol for Coordinating Microservices
caitiem20
331
22k
Build The Right Thing And Hit Your Dates
maggiecrowley
36
2.8k
Refactoring Trust on Your Teams (GOTO; Chicago 2020)
rmw
34
3.1k
RailsConf & Balkan Ruby 2019: The Past, Present, and Future of Rails at GitHub
eileencodes
138
34k
How GitHub (no longer) Works
holman
314
140k
Measuring & Analyzing Core Web Vitals
bluesmoon
7
500
Transcript
Please, use a web framework Barcamp Bangkhen 4
# whoami • Manatsawin Hanmon kolchai • @awkwin (formerly @manatsawin)
• #bcbk3 session: “CoreAnime & Kyou: What we learned”
Long, long ago
Long, long ago Oops, SQL Injection
Long, long ago Oops, SQL Injection And XSS
Second project Much better!
Third project • And all of those just get copied
on, and on, and on... • Yay! Our own framework! We can shape it whatever we want!
WHERE IS MY REVIEW (›°□°)›ớ ᵲᴸᵲ
Shit. I must forgot to escaping HTML again.
I dare you: build this. • Don’t use a library!
• A form that: • Validate input on server-side • Load initial data from database • Restore data if validation failed
Pa ination
Templatin (actually you can use a template engine without framework)
Then htaccess happened • We now don’t want /login.php. We
want /login
Then REST happened • Now GET and POST points to
separate endpoints
Then stuff happened. “I’m sorry Mario, this feature is in
another castle”
Please, use a framework. Laravel PHP Or anythin of your
choice Djan o Python
Form validation Restore data on validation failure AWESOME Database API
Flash messages!
Pagination
Debug toolbar (not built-in)
Templating Inheritance Auto escaping Cool functions
Security
Discussion? I ran out of idea :P