Category: Programming

0

Phabstractic: Restricted Lists Data Types

Lists are very important pieces of software engineering and implementation. With a restrictions predicate we are able to ensure variables in PHP are specific types. If we combine these two things we get a restricted list.

0

Octal Arithmetic

For now, this should have you calculating octal ’til the cows come home. This is an important skill when calculating addresses in memory.

0

Hexadecimal Arithmetic

For now, this should have you calculating hexadecimal ’til the cows come home. This is an important skill when calculating addresses in memory. Memory locations are often referred to in hexadecimal in order to shorten their length.

0

Phabstractic: Stack Data Type

“In computer science, a stack is an abstract data type that serves as a collection of elements, with two principal operations: push, which adds an element to the collection, and pop, which removes the most recently added element that was not yet removed.”

0

Phabstractic: Queue Data Type

Queues are very important pieces of code.  They are used in numerous many places including web services, transactions, and multi-process operating systems.

0

Binary Math

As you can see binary arithmetic calculations are easy-peesy. I mean you only have to digits to worry about: 1 and 0. I remember learning my multiplication tables and 7 was the hardest for me to remember. I was never good at 7 until I was an adult. But, as a kid, I thought I had to know it all now… I couldn’t imagine myself as an adult.

0

Phabstractic: List Data Types

Lists are very important abstract data types, and are used in many many different applications. Stacks are often used with programming languages, and in fact some programming languages depend entirely on a stack, such as Postscript.

0

Binary Negative Space

The four most popular methods for encoding (representing) negative binary numbers are known as “sign and magnitude”, “ones’ complement”, “two’s complement”, and “Excess-K”. There are alternative methods as well that aren’t as popular such as negative binary where the number base itself is actually negative (being negative 2).

1

Magic Hexadecimal and High Octane Octal

That’s all there is to hexadecimal and octal. As you can see, hopefully, it’s not too complicated and is quite a bit like binary. Hexadecimal and octal were introduced to me when I was editing data files in a text editor that displayed the hexadecimal values of each byte as well. It was a pretty useful program.

0

Phabstractic: Restricted Set Data Type

By combining the restrictions predicate and the set we are able to configure a Set that only holds certain objects and types. This means I can make a set of integers, or a set of nodes, or a set of whatever without fear that the set will hold anything else.

1

Algebraic Tron

We’ve discussed how binary representations are fed into a processor which takes that input and goes through a series of steps depending on that input to create an output, but how do we actually make that happen? To do so you would choose a programming language, or create your own, dependent on the desired level of control over the machine.

0

Phabstractic: Structure Data Type

Structures are a data structure supported by many different languages. The usefulness I think of this particular abstract data type is the ability to be accessed as an array, enabling TaggedUnions to act like normal variables.

1

The Computer Tongue

We’ve discussed how binary representations are fed into a processor which takes that input and goes through a series of steps depending on that input to create an output, but how do we actually make that happen? To do so you would choose a programming language, or create your own, dependent on the desired level of control over the machine.

0

Phabstractic: Abstract Factory Pattern

The abstract factory pattern provides a way to encapsulate a group of individual factories that have a common theme without specifying their concrete classes.

0

The Wonderful World Of Binary

I remember learning about binary when I was just an elementary student from a How Stuff Works book. I must have checked out that book five times, re-reading the same material. I was fascinated with it, but pretty soon I wanted to know more. Unfortunately, my reading material was limited for several years before I could advance to higher topics.

0

Phabstractic: Tagged Union Data Type

Many programming techniques and data structures – including rope (data structure), lazy evaluation, class hierarchy (see below), arbitrary-precision arithmetic, CDR coding, the indirection bit and other kinds of tagged pointers, etc. – are usually implemented using some sort of tagged union.

0

What Is A Computer?

This question is technically very broad. Computers have existed ever since the first abacus was invented. A computer is anything that helps you compute, or perform mathematics. This definition has been vastly expanded in recent decades due to technological advances. At the core of it all though, the definition is the same.

0

Phabstractic: Restrictions Predicate (Data Type)

Filters are important and very useful objects, allowing values or other logic to be filtered in and out of a particular set of data. Restrictions.php offers a way to use type checking in PHP, but in a very flexible and dynamic way. This can be useful for defining lists or sets that only accept certain values, which is useful for code cohesiveness and can reduce error checking.

0

Computer, This Is User

The computer itself (the object you plug everything else into) is the core of the whole construction. Without this part, you wouldn’t have a computer set-up at all. It is the piece you plug everything into because it processes and manages everything else.

1

Phabstractic: Set Data Type

Sets are very important mathematical constructions, and enable the computation of many other abstract data types. A set can have singularly exclusive values, or can have multiples of the same value in them. Sets can be compared using algebraic operators, and can exist as subsets of other sets. Set abstract data types can hold references as the data of an element, enabling some interesting behavior.