Category: Programming

0

Primus2\Falcraft: New Data Type (lists)

There are many different kinds of lists in computer programming.  Some of them act like heaps of data, some like grocery lines, some like unending rings.  Some lists you can only go forward in, some you can go backward as well.  Here are some lists that Primus/Falcraft implements.

0

Primus2\Falcraft: Registry Design Pattern

When you want to find an object you usually start with another object that has an association to it, and use the association to navigate to it. Thus, if you want to find all the orders for a customer, you start with the customer object and use a method on it to get the orders. However, in some cases you won’t have an appropriate object to start with.

0

Primus2\Falcraft: New Data Type (set)

In computer science, a set is an abstract data type that can store certain values, without any particular order, and no repeated values. It is a computer implementation of the mathematical concept of a finite set. Unlike most other collection types, rather than retrieving a specific element from a set, one typically tests a value for membership in a set.

0

Primus2\Falcraft: Identity Feature

The feature defines a static property for the using class.  This static counter remains unique on each poll for a new identity (in this case it’s an integer).  The $identityCounter must be ‘increasable’, that is, every time its accessed or ‘advanced’ it must be unique from all the identity values before it.  Counting up is a very easy way to accomplish this.

0

Primus2\Falcraft: Type Enumeration

IMPORTANT This code is no obsolete and does not reflect the new version, which has also moved to asherwunk/phabstractic.  You can see the current blog post. Primus2/Falcraft now has type detection and comparison using...

0

Primus2: New Data Type (enum)

I am proud to announce the addition of an enumeration data type to the Primus Artificial Intelligence Framework: Falcraft Module An enumeration is a set of values a variable can be specified as an array of constants.

0

Primus2: Features (Configuration)

For example, say you want some of your classes to be able to be configured and store configurations.  You could have a base class that includes that feature and then, in a single inheritance system like PHP, have all classes inherit from that class so that they can contain default behaviors.  The problem with this is that you end up implementing all the class ‘features’ on the base class creating bloat and unneeded complexity in the inheriting classes, particularly if only a subset of the classes inheriting need the feature.

0

Primus2: Singleton Design Pattern

Many individuals see the Singleton Pattern as an anti-pattern.  That is, a tool used to make code less optimal.  The biggest drawback I can see is in testing in particular. Singletons are not entirely without merit however.  There are domains in which a singleton provides a convenient and modular answer.  As OODesign.com points out, there may only be need for one window manager, one file system (like the OS X Finder), one print spool, one logging mechanism, one configuration resource, one database access point, etc.

0

Primus Artificial Intelligence Framework

Primus is a collection of libraries/components that are expected to work together to form a general artificial intelligence server/runtime environment. Deployment and application propositions include mobile robotics, information processing, pattern recognition, and social interaction simulations.

0

PEAR Install Hang Fix

This is actually reprinted from the old blog, but it seemed potentially useful still.  At least, the search engines think so. Are you having trouble installing PEAR (particularly on your OS X machine)? Here is your probable answer.

0

GoDaddy VPS and SpamAssassin Blocking

This post is re-printed from an old blog, but I found it handy and apparently so did search engines so here it is again. If your SpamAssassin on your GoDaddy VPS is blocking all your e-mail, then this is probably your answer!