Acing a technical talk: The actual learning

In the previous post How do we learn anything?, I discussed the first two stages of learning

  1. Selection (selecting new information to learn)
    1. Attention (grabbing attention to the information)
    2. Motivation (What’s in it for me or WIIFM)
    3. Confidence (You can do it or YCDI)
  2. Linking (linking new information to existing)
    1. Recall (recall existing information)
    2. Relate (relate new information to existing information)

In this one, we’ll discuss the next two stages, Organisation and Assimilation. We keep Reinforcement for another post. These are stages that all of us give enough importance to. That’s why many of the steps or strategies are common knowledge and/or are pretty well understood.

Continue reading

Acing a technical talk: How do we learn anything?

Learning is a complex processes, but research in cognitive psychology has found at least a commonly agreed upon process. The purpose of a talk, presentation or training session is to present new information and ultimately, learning this information to affect a change in behaviour in some way.

These aren’t my theories but scientific research that I read up and my notes. I use them while preparing my training sessions or talks that I give.

There are five stages involved in learning something:

  1. Selection
  2. Linking
  3. Organisation
  4. Assimilation
  5. Reinforcement

Continue reading

Hooks API from scratch – Part 4: Action hooks in action

If you haven’t, please go through the previous post, Hooks API from scratch – Part 3: An experiential guide to action hooks. This part 4 won’t make complete sense without that.

Your function is to read

Let’s say you are a WordPress installation.

Yes, imagine you are a WordPress site!

Your job is to read the paragraph from Part 3. Since you are a WordPress website, you are created of code instead of flesh and blood. Every action of yours will be via functions. So, stand_up(), close_your_eyes(), dance(), etc are your functions.
Continue reading


Hooks API from scratch – Part 3: An experiential guide to action hooks

Let’s perform an exercise

Read the following paragraph:

Some people wonder why WordPress wants the ‘p’ in WordPress to be capitalised. It is a little inconvenient to capitalise the ‘p’ in the middle of the word. Many agree that WordPress could easily be written as WordPress or wordpress or wordPress without any difference. Still, the WordPress team uses it this way. In fact, there is a function called, capital_P_dangit that takes any other casing and converts it into WordPress. This way, you don’t have to worry about writing WordPress the right way!

Continue reading


Hooks API from scratch – Part 2: About hooks; it’s not about the hook

It’s not the hook

There, I’ve said it. The whole Hooks API is not about the hooks. In this whole story of hooks, bags and boxes, none of them are the hero. Who could it be then?

(Here’s our standard contemplation pause.) What could it really be about?)

To answer this question, we must answer another question:

Why do we need the hooks?

Continue reading

meta_id, post_id, meta_key, meta_value

Meta for Custom Objects in WordPress

Custom Objects

WordPress has some default objects like posts, taxonomy, comments and users. Actually there are many more objects, but these principal ones deal with content directly.

A custom object is different from a custom post type. A custom post type is just a subtype of the post object. The difference is in just a property/attribute, i.e. post_type. Most of the times, we build custom functionality using custom post types.

At other times, we need custom objects. These are not posts, comments or users. That’s why you have to create separate tables and CRUD methods for them. This is, in fact, one of the primary reasons why a lot of developers prefer using custom post types over custom objects.
Continue reading