Commanding Chaos for Coworking, Open Source and Creative Communities

oop

Drupal 8: Happy, but not satisfied | GarfieldTech

Mon, 12/07/2015 - 13:42 -- rprice

I am not satisfied with our REST support. Ironic given my role, but there you go. Core's REST support is orders of magnitude better than Drupal 7's, but we didn't go far enough. Despite our best efforts Drupal 8 not truly a REST-first system. Some of that is simple hindsight being 20/20; there's a number of things I would have recommended we do differently had I known 2 years ago what I know now, mostly around decoupling storage and serialization.

drupaleasypodcast
drupal8
larrygarfield
oop

Drupal 8: Happy, but not satisfied | GarfieldTech

Mon, 12/07/2015 - 13:42 -- rprice

I am not satisfied with our REST support. Ironic given my role, but there you go. Core's REST support is orders of magnitude better than Drupal 7's, but we didn't go far enough. Despite our best efforts Drupal 8 not truly a REST-first system. Some of that is simple hindsight being 20/20; there's a number of things I would have recommended we do differently had I known 2 years ago what I know now, mostly around decoupling storage and serialization.

drupaleasypodcast
drupal8
larrygarfield
oop

Drupal 8: Happy, but not satisfied | GarfieldTech

Mon, 12/07/2015 - 13:42 -- rprice

I am not satisfied with our REST support. Ironic given my role, but there you go. Core's REST support is orders of magnitude better than Drupal 7's, but we didn't go far enough. Despite our best efforts Drupal 8 not truly a REST-first system. Some of that is simple hindsight being 20/20; there's a number of things I would have recommended we do differently had I known 2 years ago what I know now, mostly around decoupling storage and serialization.

drupaleasypodcast
drupal8
larrygarfield
oop

Backdrop Does a Disservice to Developers | Mark Ahrens

Fri, 03/13/2015 - 09:25 -- rprice

Mark said, “I have a personal aversion to being too tied to one tool, so I want to make sure developers are thinking about their career right now but also 5, 10, 20 years from now.” Who can argue against this? At face value, these words are plain and simple and true. I can’t speak for every supporter of Backdrop CMS, but I personally will be learning both. I choose to do this because I can and I believe it opens many doors to what Drupal can do and how it innovates. I was working in Procedural PHP before I found Drupal in 2007.

drupal8
drupaleasypodcast
oop

PHP: The Right Way

Wed, 12/24/2014 - 11:14 -- rprice

There’s a lot of outdated information on the Web that leads new PHP users astray, propagating bad practices and insecure code. PHP: The Right Way is an easy-to-read, quick reference for PHP popular coding standards, links to authoritative tutorials around the Web and what the contributors consider to be best practices at the present time. There is no canonical way to use PHP.

php
Programming
Books
drupaleasypodcast
best_practices
tutorial
oop

Beyond Abstract classes | GarfieldTech

Thu, 09/25/2014 - 15:05 -- rprice

Traits: Just gimme the codez Enter traits. Traits don't imply a relationship. They're purely code reuse. At runtime, traits no longer exist. They say nothing about an object that uses them, how they behave, what you can do with them, or anything else. They are purely code reuse. In that sense, they are completely orthogonal to interfaces; whereas an interface is purely interface reuse, a trait is purely code reuse.

php
oop
classes
drupaleasypodcast

The Drupal 8 version of EntityFieldQuery

Tue, 07/08/2014 - 12:08 -- rprice

In this query, we retrieve the node ids of all the published nodes that have been last updated before the current time, that have the word cat inside their title and that have a taxonomy term called cats as a reference in the field_tags. As you can see, there is no more distinction between propertyCondition and fieldCondition (as there is in D7 with EntityFieldQuery). Additionally, we can include conditions based on referenced entities tacking on the entity.(column) to the entity reference field name.

drupaleasypodcast
code
oop
drupal8

Object Oriented Programming 101 | Drupal Watchdog

Thu, 06/19/2014 - 09:26 -- rprice

after a decade as a procedural application with procedurally-minded developers, the transition from an all-procedural to a mixed object-oriented/procedural system is likely to be bumpy, especially for developers who are still new to object-oriented code. While a complete treatment of the entirety of object-oriented programming (OOP) would more than fill this entire magazine, a firm grounding in the concepts and syntax of OOP should fit in just a few pages.

drupaleasypodcast
oop
drupal8

Bean: Flickr Integration | drupal.org

Thu, 05/03/2012 - 10:56 -- rprice

This module uses the amazing Flickr API module to provide Bean integration. With this module, users can easily create blocks that fetch Flickr images. Currently it provides two ways to search (per block):

Search on a given string
This can be used to show a blocks photos mentioning the client name, for instance.

Search on terms used in the given entity
This can be used to fetch related photos. Suppose you have vocabulary Section (eg: Football). When a node is tagged with Football, you can have a block in the sidebar showing Football photos.

site_building
blocks
photos
Flickr
oop
drupaleasypodcast
bean

Proposal for fixing PHP namespacing in Drupal 8 | Blog post | Blue Droplet Media

Wed, 02/29/2012 - 09:32 -- rprice

Modules and themes (and engines) would have a namespace such as
namespace drupal\taxonomy;
or
namespace drupal\bartik;
Function prefixes, such as 'taxonomy_' would be dropped.
However, this makes Drupal code really ugly.
Calling functions not in a module from a module would look like this:
\drupal\set_message();
Calling a db function would look like this:
\drupaldb\select('node');
Calling an API function in another module would look like:
\drupal\taxonomy\select_nodes();
The solution? Namespace importing.

function
oop
drupaleasypodcast
drupal8
php
namespaces

Pages

Subscribe to RSS - oop