The enchanted electrical website of Dr. Sinclair
-
A Gentle Introduction to Functional JavaScript: Part 2
Written by James SinclairIn the previous article, we saw how functions can be used to make certain code abstractions easier. In this article we apply these techniques to arrays and lists.
-
A Gentle Introduction to Functional JavaScript: Part 1
Written by James SinclairWhat is all the hype about Functional JavaScript? And why is it called functional? It’s not as though anyone sets out to write dysfunctional Javascript.What is it good for? Why would you bother?
-
Righteousness
Written by James SinclairOver Easter, our pastor challenged us to live like Jesus is actually risen. Someone I know (quite rightly) asked the question “but what does that look like?” My response is that part of the answer is righteousness, but that might need some explaining.
-
Public perceptions of Christianity—a call to art
Written by James SinclairFirst of all, I write this to myself as much as anybody. Now, with that said… I am concerned about how Christianity is perceived by those who don’t call themselves ‘Christian.’ It’s not that Christians are ridiculed in the media (we’ve always been ridiculed), but rather, what people assume I mean when I call myself a Christian is so very different from what I actually mean that I’m almost hesitant to use the word.
-
Simple Parallel Processing in PHP with pcntl_fork()
Written by James SinclairFor a recent project I needed to process some code in parallel. A colleague pointed me to the
pcntl_fork()
function, and it turns out it’s not quite as scary and complicated as I thought. So I turned the simple use case into a generic function. -
Notes to self on working as a Christian web developer
Written by James SinclairThese are some notes to myself on how I would like to approach my work, at least, an ideal for who I would like to be as a Christian web developer. I write this mostly to organise my own thoughts, but I am publishing it just in case there are others who might find it helpful.
-
Simple Parallel Processing with PHP and proc_open()
Written by James SinclairYou can find a reasonably sensible example of how to perform parallel processing with PHP using the
popen()
function at wellho.net. Sometimes though, the requirement to pass all the parameters to your function via command line arguments can be limiting. -
Why Christians should watch movies
Written by James SinclairWhy would Christians watch movies at all? They are full of violence and bad language and plenty of other things we try to avoid. They are made by people who have completely different world views than our own, and disagree with most of the beliefs we hold most dear. Why would we fill our heads with all this simply for the sake of entertainment?
-
An introduction to Drush: The Drupal power tool
Written by James SinclairDrush is a tool that allows you to perform common Drupal tasks from the command line.
-
Communication, Knowledge, Bodies and God
Written by James SinclairWhy is communication so difficult? Sometimes I will talk to somebody, and think that I’m expressing myself really clearly when I’m not. I seem to make perfect sense. Yet when I hear what the other person says in response, it is obvious that they heard something quite different from what I thought I said.