Category: Programming

0

Announcing PYGJS (PyGame in your Browser/NodeWebkit)

That’s right, run PyGame (in all it’s Pythonic glory) IN THE BROWSER! All in all, it’s a rough draft.  The code isn’t fully documented because really, it’s ported from other places where there IS documentation (pygame, gamejs, etc.)  Anywhere where the functions/classes don’t QUITE act like their pygame equivalent I make a note of though, so that you aren’t tripped up.

0

Anatomy of a URI (What is a URL, URN, etc.?)

With URIs we can reference and locate just about everything we need to on the internet, from books, videos, sites, and games. Without URIs we’d still be stuck in specific clunky ways to access specific things using specific clients and methods, instructions which I followed in many a book before URIs became a big thing. Now, it’s simple: http://wunk.me/

0

Book Review: Writing Compilers And Interpreters

I came across this book in the Colorado State University library, one of my favorite places, and was intrigued.  I was intrigued because it seemed that instead of relying on esoteric computational equations and such, talking about optimization, O notations, and such, this book instead took the approach of diving directly into straight implementation of a compiler and interpreter.

0

Phabstractic: Generic Event (Universal Event System)

asherwunk/phabstractic now implements a common event object, useful in the “Universal Event System”. The Universal Event System What I call the universal event system is basically several constructs built on top of the Publisher/Observer design...

0

Objconfig (Python): Config Class

I decided that, for future projects, I needed to port asherwunk/phabstractic to the Python programming language (pyabstractic). Well, phabstractic relies on a couple packages itself that are in the PHP domain. One of these packages is zend-config, which is part of the Zend Framework programming library.

0

Phabstractic: Observer/Publisher Design Pattern

Observers and Publisher design patterns are very important in that they enable a certain amount of reactive programming. When you only want something to execute or occur when a particular event occurs it makes more sense to just test for state change then to hard code in an if clause for every step.

0

Phabstractic: Linked List Data Type

Doubly linked lists are important data structures for they enable a range of data to be stored in sequential order in memory without necessarily having to be spaced next to each other, or worry about a particular size. There are many advantages to storing data outside of an array like this, including the dynamic nature of its allocation and flexibility of editing the order of elements (including the addition and subtraction of elements).

0

Phabstractic: Map Data Type

Object stores, associative arrays, and Maps are important data structures. They are useful in statistical analysis, as well as for in memory database storage, such as a Redis implementation. The advantage of a map is that you don’t have to remember cryptic index values, as well it allows you to establish an abstract association between two data objects.

0

Doing Stuff With Computers

The primary processor is the user, who is directing the computer and its activities, but the primary computational device is called the CPU (central processing unit) and is a chip on the motherboard of the computer.

0

Setting Up A Local GitHub Hosted PHP Project on OS X

It’s not too hard to set up a basic command line PHP coding environment using github, composer, and phpunit.  This tutorial covered how to set up the development environment if you’re using php purely from the command line.  This tutorial did not cover *AMP installations.

0

Phabstractic: Priority Queue Data Type

Priority Queues are very useful and usually, are implemented using heaps. This Priority Queue is implemented using an array that sorts itself rather than an overly complicated binary tree or heap. A priority queue is very useful for event-oriented programming, multitasking processes, and online message queues.

0

Remembering Things With Computers

So we’ve learned about binary and boolean operations along with logic gates. None of these, particularly logic gates, can do the second most important thing necessary for computation.

That is the ability to remember.

0

Phabstractic: Self-Sorting List Data Type

Self-sorting lists can be very handy. For instance, we could easily implement a priority queue by utilizing a sorted list, and that’s something we’re going to do, simply using the comparison method on competing priorities. Self-sorting arrays make putting everything in order in a messaging queue fairly simple.

0

The Code of Gray

Have you ever heard of anything called a gray code? If you aren’t a programmer or a computer enthusiast (or for that matter an electrical engineer), then probably not. It kind of sounds like a movie doesn’t it?

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.