Ryan Tablada
  • Home
  • About Me

Code

A collection of 43 posts

Laravel

I Made a Huge Mistake

Last year I wrote three different articles. And I have to admit something… Repositories After reading Fowler's "Patterns of Enterprise Application Architecture", I found that I royally messed things up. Repositories actually

  • Ryan Tablada
    Ryan Tablada
1 min read
Software Architecture

Everything is a Trade-off

In development, everything that we do is a trade-off. Sometimes, we don't act like it is, and we are lying to ourselves. Languages are a trade-off I spend almost all

  • Ryan Tablada
    Ryan Tablada
2 min read
Laravel

OOP API Responders

The first thing that started getting me interested in a new way of emitting responses was listening to talks on hexagonal architecture. Essentially, having methods on a listener that would call a success

  • Ryan Tablada
    Ryan Tablada
2 min read
AJAX

Clean Transformed APIs

In the past, when working with Javascript libraries that required diffrent JSON formatting, I have base models that extended Eloqent and changed the toArray function. It was super hacky and required a ton

  • Ryan Tablada
    Ryan Tablada
4 min read
AJAX

File Uploads in Ember JS

Probably one of the biggest issues that I've had so far with our latest Ember projects has been working with has been getting a good way to upload files on an Ember

  • Ryan Tablada
    Ryan Tablada
3 min read
Code

Get More Content Into Your Ember Apps

Working is extremely nice once you have a grasp on the basic concepts. But, one of the coolest promises (some pun intended) is the ability to use the render view helper. At its

  • Ryan Tablada
    Ryan Tablada
6 min read
Code

We Are Complicating Things a Bit too Much (TDD & DDD)

The other day, I saw something that really encompasses one of the biggest hurdles for younger developers to get through. That hurdle is terminology. These days, there is all sorts of "___ driven

  • Ryan Tablada
    Ryan Tablada
5 min read
Code

Literate Programming

Today, I finally read Jeremy Ashkenas's blog post on [Literate Coffeescript]() and really have to say, I agree with the point that he is trying to make. In essence, we as programmers

  • Ryan Tablada
    Ryan Tablada
2 min read
Code

We Take Our Work Seriously

As you may know, there has been some serious acusations of copyright and content infringement and plagiarism plaguing the web development community. I do not wish to go point fingers, but I do

  • Ryan Tablada
    Ryan Tablada
1 min read
Code

Your Framework isn't Magical

I love working in Laravel, Symfony makes web apps awesome, Django does amazing things, Rails made frameworks cool. But, we have to keep things straight when working with frameworks. These aren't magical

  • Ryan Tablada
    Ryan Tablada
2 min read
AJAX

Working with jQuery Ajax Uploader and Laravel PHP

Working with jQuery Ajax File Uploader with Laravel can be relatively simple. However, things can be confusing on both sides when working outside of the regular examples from the site. To start things

  • Ryan Tablada
    Ryan Tablada
3 min read
Code

The Mindset Behind App Toolkit

After a while of working with Laravel and various MVC frameworks, I have found that there is a good bit of standard coding that goes into scaffolding applications. I'm not the first

  • Ryan Tablada
    Ryan Tablada
3 min read
Code

Getting Inheritance Straight

In the world of PHP, it seems like there has been a flurry of different inheritance and contract patterns being used. Unfortunately, a lot of developers seem to be running around like headless

  • Ryan Tablada
    Ryan Tablada
4 min read
Code

Juggling Larger Laravel Applications

When working with larger Laravel projects, one question always seems to come up: "How do I organize all of this code?" Many people have begun to suggest new ways to go about this.

  • Ryan Tablada
    Ryan Tablada
3 min read
Code

An Eloquent Notification Strategy

There comes a time in all of our lives where we want to deal with a heap of notifications to present to a user on a dashboard. This seems like it could be

  • Ryan Tablada
    Ryan Tablada
4 min read
Code

I'm a Professional Developer and So Can You

Today in @PHPDrama land there was a divergent schism in the Drupal world. This isn't the first time that a simliar argument has been brought up in the PHP community or the

  • Ryan Tablada
    Ryan Tablada
3 min read
Code

Pivot Tables vs Pivot Models

Lately, I have been working on multiple projects that have to deal with Polymorphic relationships, Many-To-Many, relationships, and the occasional Polymorphic Many-To-Many relationship. In working with these, a few

  • Ryan Tablada
    Ryan Tablada
2 min read
Code

A Response to "Why I Chose Ember.js"

Yesterday, I wrote what became a rather controversial post. I did want to address a few a things that have come up between Twitter and the comment stream. So, here we go. Firstly,

  • Ryan Tablada
    Ryan Tablada
3 min read
Code

Why I Chose Ember.js

Clarification This article has been edited to reflect time spent with each framework and a few other relevant facts I have finally made the plunge to really dig into Ember.js. But, if

  • Ryan Tablada
    Ryan Tablada
6 min read
Code

Ember JS and Laravel

Hey guys, it's been a while since I have written something up and just wanted to give you a heads up on what I have been working on. Recently, I have been

  • Ryan Tablada
    Ryan Tablada
1 min read
Code

Eloquent Connections - Making the World Go Round

In yesterday's article, we looked at how Eloquent models boot up and how the constructor works. However, you may have been scratching your head when you saw that this massively powerful ORM

  • Ryan Tablada
    Ryan Tablada
1 min read
Code

Per Your Request - Starting Eloquent

There is a lot going on with Laravel's Eloquent ORM, but to start things off in this series, we will actually start things off and look at how Eloquent Models boot up

  • Ryan Tablada
    Ryan Tablada
2 min read
Code

Eloquent Expertise Preview

Eloquent ORM is probably one of features that draws the most users to Laravel. However, I find that after a bit of working with Laravel, many users don't quite get what is

  • Ryan Tablada
    Ryan Tablada
1 min read
Code

Flexible Views For Laravel Packages

Today we'll go over an easy topic, we will look at how to give your users the ability to swap out views in your Laravel Packages. Traditionally, you may develop a Package

  • Ryan Tablada
    Ryan Tablada
1 min read
Code

The Repository Pattern in Action

Two weeks ago, I discussed Two Design Patterns That Will Make Your Applications Better. Since then, there has been high demand for a demonstration of the Repository Pattern in action. Today, we'll

  • Ryan Tablada
    Ryan Tablada
3 min read
Code

Creating an Installer Script For Your Package

In Laravel, one of the big questions is how best install packages. Traditionally, we would create a nasty bit of readme that included a script that looks like this: php artisan config:publish

  • Ryan Tablada
    Ryan Tablada
2 min read
Code

Laravel Package Database Flexibility - Eloquent Models

As I begin to create more full featured Laravel packages, I find that I want to offer the ability for users to specify different database credentials for my package than the ones used

  • Ryan Tablada
    Ryan Tablada
1 min read
Code

A Look at the FAQ Package

The FAQ package came as a direct need for a dynamic FAQ section for the marketing site for iOffertory. Over the next few posts, I will dive into production code and give you

  • Ryan Tablada
    Ryan Tablada
1 min read
Code

Next Week's Posts

The last two weeks, I have tried to look at Routing a bit more indepth and have tried to suggest conventions that can help your code perform better and be easier to modify

  • Ryan Tablada
    Ryan Tablada
1 min read
Code

Creating Customizable Packages With Routing

Today we will look at starting to create Laravel 4 Packages with routing options. In conventional Package development in the past, you would have to create Bundle routes or ask your users to

  • Ryan Tablada
    Ryan Tablada
2 min read
Code

Reusable Routes

Finishing off the week of advanced routing in Laravel, I am going to mix the techniques while also covering a few more things and giving practical examples. In the last posts on routing:

  • Ryan Tablada
    Ryan Tablada
2 min read
Code

Java You've Done CS 101 a Disservice

In a continuation of my thoughts from last week's post on method overloading, I thought that I would keep bashing Java with a large hammer. Plus, who doesn't like bashing on

  • Ryan Tablada
    Ryan Tablada
1 min read
Code

The Wonder of The Config Folder

Laravel is incredible for beginners, yet I find that a ton of developers posting comments on how "Laravel doesn't do XXX by default" so it can't be done and there is

  • Ryan Tablada
    Ryan Tablada
2 min read
Code

Two Design Patterns That Will Make Your Applications Better

Getting into design patterns can be a bit of a tricky subject. An analogy would be like having a kid interested in engineering go from playing with box cars to telling them to

  • Ryan Tablada
    Ryan Tablada
3 min read
Code

Why Method Overloading Can Signal Bad Design

Coming from Java and C++ and moving into PHP and Javascript, one of the problems that I ran into was the fact that PHP and Javascript don't have traditional ways to overload

  • Ryan Tablada
    Ryan Tablada
1 min read
Code

A Wardrobe Overhaul

Make your choice, adventurous Stranger, Strike the bell and bide the danger, Or wonder, till it drives you mad, What would have followed if you had C.S. Lewis Things today have been

  • Ryan Tablada
    Ryan Tablada
1 min read
Code

Organizing Routes in Laravel 4

One of the big learning curves for creating Laravel projects is working with routes and how to organize everything in your project. Today's post is going to look at just this problem.

  • Ryan Tablada
    Ryan Tablada
1 min read
Code

Multi-TLD Routing in Laravel

While working with more advanced Laravel applications, you come to question how to work with more advanced routing circumstances. Laravel 4 gave a ton of features with the more advanced features in route

  • Ryan Tablada
    Ryan Tablada
1 min read
Code

An Easy Way To Test Eloquent Model Attributes

When testing Models, it can be a bit confusing where to start. But a great way to start is to test the attributes available in your Model. For this, I suggest the following.

  • Ryan Tablada
    Ryan Tablada
1 min read
Code

Shut Up, You Are Already Testing Your Code

As a foray into the second week of bidaily posts, I aim to make even more people mad about TDD. See, the first time you made a program you were doing some form

  • Ryan Tablada
    Ryan Tablada
2 min read
Code

Red-Shirt, Red, Green, Refactor - A TDD Fairytale

This week saw my first major TDD project. It started off without a hitch. A slow grind for sure, but my mocking was superb (at least for a beginner). That is, until I

  • Ryan Tablada
    Ryan Tablada
2 min read
Browser

Embracing Safari as a Developer's Best Friend

Ok, this article isn't really meant to start a war. What's worse, I'm not exactly backing one of the big dogs in the fight (Chrome and Firefox). But, there is

  • Ryan Tablada
    Ryan Tablada
4 min read
Code

Creating Apps in Packages

The idea of creating more sustainable code seems to be a topic of war in development communities these days. To one side, hackathon regulars throw together spagetified code that takes days to debug

  • Ryan Tablada
    Ryan Tablada
3 min read
Ryan Tablada © 2025
Latest Posts empress-blog Casper Template