Posts Tagged "General Discussion"

NULL is Legit When Used Correctly

I was doing some research on a topic about compulsory parameters to constuctors for a project I was doing when I came across a topic about the use of NULL as a return value. Don't ask me how I stumble into these things. As you can imagine, as with everything in software engineering circles, there was a raging debate about whether or not NULL (or its equivalents like None in ...

WordPress in the Enterprise – Establishing Services

To continue our theme of making WordPress your next enterprise deployment (Check out our two previous articles... WordPress In The Enterprise – Building In A Class Library and WordPress In The Enterprise – The Functions File) we will talk about how we can go about organizing your code so that it can have "bolt on services". WordPress has a ton of extensibility capabilities which make it ideal for plugins and ...

Rolling Dice in Java, C# and PHP

Some of the very first programs we are introduced to in programming is the idea of random numbers. This is often introduced using the idea of the die or dice. We have all seen them and have probably even thrown a set of dice at some point in our life. A die is pretty much a representation of a random number generator with a fixed range of values. The traditional ...

Stubbing Out Functions, Do You Do It?

If have ever taken a beginner programming class in school you were probably introduced to the idea of stubbing out functions. If not, let me quickly tell you what stubbing is. It is the process of identifying tasks in your design and setting up functions to handle those tasks. We define just the function signature (name, parameters and body) without writing the code statements in them. Once we identify all ...

Review of “Web Design with HTML, CSS, JavaScript and jQuery” Book Set

As a programmer always thirsty to learn new tech, I also love to get a refresher and learn something new in the process. That is why a couple of times a month I go to the local bookstore (Chapters here in Canada) and browse many of the new books in stock. Over the last few years especially, the computer book section has gotten a bit sparse. It makes sense, many ...

Solving a Null Value When Posting a Simple String to a .NET Web API

The Problem: Many programmers, when creating a .NET Web API project, typically run into a situation where they want to post a simple x-www-form-urlencoded string datatype to an endpoint. They create the POST endpoint and attempt to post a string body to it only to find out that the value passed from the body is null. It can certainly be a frustrating endeavor to find a solution to this. After ...