May 2013 — WordPress.com VIP Intensive WorkshopCode reuse and sharing acrossmultiple sitesGabriel Koen, PMC
What this talk is about✤ PMC operates✤ 5 public web sites on WordPress.com VIP✤ 9 or so public web sites hosted elsewhere✤...
What about sites or apps thataren’t onVIP?✤ Forget about it.✤ Each one is a unique snowflake.✤ Single-purpose that other AP...
Logic treeMore than ~2 functions?themepluginfunctions.phpUsed more than once?globalpluginrefactorWait — when I builtthis I...
Site vs Global✤ It’s an ideal, it doesn’t always work✤ Previously, we copy and pasted a lot✤ We’re not perfect✤ Code dupli...
Upcoming SlideShare
Loading in …5
×

Code reuse and sharing across multiple sites (Flash talk)

220 views

Published on

Published in: Technology, Business
0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total views
220
On SlideShare
0
From Embeds
0
Number of Embeds
7
Actions
Shares
0
Downloads
2
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

Code reuse and sharing across multiple sites (Flash talk)

  1. 1. May 2013 — WordPress.com VIP Intensive WorkshopCode reuse and sharing acrossmultiple sitesGabriel Koen, PMC
  2. 2. What this talk is about✤ PMC operates✤ 5 public web sites on WordPress.com VIP✤ 9 or so public web sites hosted elsewhere✤ 4 private APIs, 2 using WordPress, 2 not✤ So how does all our code work together?
  3. 3. What about sites or apps thataren’t onVIP?✤ Forget about it.✤ Each one is a unique snowflake.✤ Single-purpose that other APIs don’t fulfill, or is a mostly static site.✤ They don’t use shared code.✤ Done.
  4. 4. Logic treeMore than ~2 functions?themepluginfunctions.phpUsed more than once?globalpluginrefactorWait — when I builtthis I wasn’t thinking itwould be usedanywhere else.Always think one step ahead.Not two.I don’tknow what Iwant to be...
  5. 5. Site vs Global✤ It’s an ideal, it doesn’t always work✤ Previously, we copy and pasted a lot✤ We’re not perfect✤ Code duplication is not always bad✤ Sometimes sites do similar things, but differently

×