Subscribe to andrewsw's Blog

## Factorial Walkthrough (Recursion)

Doing what it says on the tin! Walking through recursive function calls.

The programming language is not important, as long as you understand functions (function arguments and return statements).

Factorial :wikipedia

`long factorial(int n) {    if (n == 0)        return 1;     else        return n * factorial(n-1);}`
...

## Santa's Database

We need a very large database, to store billions of records. However, it only really needs a single table, at first estimate.

Essentially, just names and addresses. However, we also need a check...

## Debugging with Custard

Well, it's not really. It is more like trying to discover fundamental particles. You throw all kinds of custard at it in the hope that something sticks. Well, not custard, but other high-energy particles/radiation. And you are not hoping that something will 'stick', but for evidence of new particles. Not a particle itself: it is not...

## Client and Server, briefly

The following is an attempt to explain in simple terms the difference between client and server-side processing. Specifically, the difference between Javascript, which runs on the client, and PHP (and other server-side) languages which, of course, run on the server.

The client...

DIC encourages contributions of many kinds to this site - it is a community after all. You do not have to be an expert in order to make a contribution. However, if you are new to answering, or responding to, questions raised in the forums then I have some general guidance for you.

...

## It's All In The Title

The title for your question is very important:

• It is used in searches, both within DIC and by other search engines. People need to be able to find your topic in case it answers their question or, at least, contains useful information for them. You may even need to search for it yourself in the future, if you lose track of the original.
• ...

## OOP Concepts

Before Object-Oriented Programming, structured programming...

## The Written Word

Writing about programming is not an excuse for poor grammar and punctuation. In fact, it is quite the reverse. You need to make extra efforts to explain yourself in a clear, legible, fashion when talking about a technical subject - which programming is.

...

## Post Peeves

I was trying to create my top-ten peeves for posted questions. Keeping it to 10 is tricky, and I keep debating the order; that is, taking into account the groan-factor.

I'll show what I have so far.

WARNING: Not for the faint-hearted, or overly-sensitive

• Gibberish
• Not providing enough information
• Not posting the error message
• ...

## Sherlock Holmes is Missing

I caught sight of myself in the mirror. I was turning Detective...

• (6 Pages)
• « First
• 3
• 4
• 5
• 6

S M T W T F S
123
45678910
11121314151617
18192021 22 2324
25262728293031