Skip to content

Commit

Permalink
Rails talk switched to reveal-md
Browse files Browse the repository at this point in the history
  • Loading branch information
Phil Sturgeon committed Aug 8, 2017
1 parent 602abfe commit 1f51020
Show file tree
Hide file tree
Showing 4,649 changed files with 495,421 additions and 71 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
Original file line number Diff line number Diff line change
@@ -1,50 +1,9 @@
<!DOCTYPE html>
<html>
<head>
<title>What Ruby Can Teach PHP About API Development</title>
<meta charset="utf-8">
<style>
@import url(https://fonts.googleapis.com/css?family=Yanone+Kaffeesatz);
@import url(https://fonts.googleapis.com/css?family=Droid+Serif:400,700,400italic);
@import url(https://fonts.googleapis.com/css?family=Ubuntu+Mono:400,700,400italic);

body { font-family: 'Droid Serif'; }
h1, h2, h3 {
font-family: 'Yanone Kaffeesatz';
font-weight: normal;
}
.remark-code, .remark-inline-code { font-family: 'Ubuntu Mono'; }

.remark-slide-content { background-size: contain; }

/* Two-column layout */
.left-column {
color: #777;
width: 20%;
height: 92%;
float: left;
}
.left-column h2:last-of-type, .left-column h3:last-child {
color: #000;
}

.right-column {
width: 75%;
float: right;
padding-top: 1em;
}

.col-gap {
clear: both;
margin-bottom: 20px;
}

</style>
</head>
<body>
<textarea id="source">

class: center, middle
---
title: What Ruby Can Teach PHP About Building APIs
theme: night
---



# What <s>Rails</s> Ruby Can Teach PHP About Building APIs

Expand Down Expand Up @@ -80,15 +39,15 @@

---

# Packages in Ruby
## Packages in Ruby

- Gems released 2004

- People built gems for loads of stuff and worked together

---

# Packages in PHP
## Packages in PHP

- PEAR released 1999

Expand All @@ -112,7 +71,7 @@

---

# Packages in PHP
## Packages in PHP

- Incompatible with each other

Expand All @@ -121,14 +80,16 @@
- PSR-0 released 2010

---
# Ruby's Head Start

## Ruby's Head Start

Ruby community has been building gems since 2004

Composer + PSR-0 packages didn't get popular until ~2012

---
# Ruby's Head Start

## Ruby's Head Start

Ruby has spent 8 more years building packages than PHP

Expand Down Expand Up @@ -183,7 +144,7 @@

---

## No Ruby FIG Required
### No Ruby FIG Required

Rack means no need for PSR HTTP stuff

Expand All @@ -201,14 +162,14 @@

---

# Testing requests doesnt go over "wire"
## Testing requests doesnt go over "wire"

- You don't want to start a dev server
- You don't want to start a dev server

---

# Testing requests doesnt go over "wire"
## Testing requests doesnt go over "wire"

<dl>
<dt>Ruby</dt>
Expand Down Expand Up @@ -271,27 +232,26 @@

---

## STUFF I HATE
```
{
"action" : "foo"
}
```

```
def create
params[:action] # create 😭
end
```

talk about the daft raw post issues

---

omfg PUT === PATCH
Why does PUT === PATCH

---

Pissed me of f# Overrides ActionController::HttpAuthentication::Token method request_http_token_authentication,
# which forces HTTP Token errors to dispay in HTML.
# http://api.rubyonrails.org/classes/ActionController/HttpAuthentication/Token/ControllerMethods.html#method-i-request_http_token_authenticationprotected
def request_http_token_authentication(realm = "Application")
self.headers["WWW-Authenticate"] = %(Token realm="#{realm.gsub(/"/, "")}")
render :json => {:error => "HTTP Token: Access denied."}, :status => :unauthorized
end


</textarea>
<script src="https://remarkjs.com/downloads/remark-latest.min.js">
</script>
<script>
var slideshow = remark.create();
</script>
</body>
</html>
1 change: 1 addition & 0 deletions node_modules/.bin/reveal-md

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

286 changes: 286 additions & 0 deletions node_modules/.yarn-integrity

Large diffs are not rendered by default.

15 changes: 15 additions & 0 deletions node_modules/abbrev/LICENSE

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

23 changes: 23 additions & 0 deletions node_modules/abbrev/README.md

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

61 changes: 61 additions & 0 deletions node_modules/abbrev/abbrev.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

21 changes: 21 additions & 0 deletions node_modules/abbrev/package.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

1 comment on commit 1f51020

@shadowhand
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💛

Please sign in to comment.