Tuesday, 22 March 2016

Terrorism As A Theological Statement

What's important to remember about any religiously-motivated act of terrorism is that the act itself is a theological statement. Any such act must be countered swiftly and vehemently with the denial of the truth of their interpretation of the doctrine, such that the argument is put in its place once and for all. And the fact that it hasn't seemed to get through is all the more reason to repeat it loudly and often - such is the role of the layman in theological disputes.

And if that fails, there's always politics to fall back on, as true theology is never political in nature...

Sunday, 6 March 2016

The Parable of the Atom Seeker

A young student grows up in a society that holds the belief where she, like everything else, is made up of tiny unseen particles called atoms. So after learning something about the methodologies of science, she decides to understand what the science is behind the atom.

What strikes her at first is how the explanations for the atom didn't fit at all into the scientific method, but relied heavily on everyday experience. Furthermore, no modern physicists have witnessed such experiences, but rely solely on the accounts of early physicists. Some physicists claimed to have experiences that tangentially supported the experiences of the original physicists, but none of them could produce any evidence remotely like that which holds for other theories.

Upon further investigation, she realises that physicists disagree among themselves as to which experiences count as evidence of the atom. Some physicists argue that the experiences are interpreted too literally, while others hold to as literal a reading as possible. Some argue that the experiences can only be understood in light of arcane mystic writings and ancient mythic tales, and there is disagreement among those physicists as to the process this takes.

The quality of evidence is further called into question when other physical theories adequately account for the evidence for atoms without needing to posit atomic theory. She finds physicists will admit this in parts, but again there is disagreement between physicists over which scientific phenomena explain away the need for atoms in any given case. Some physicists spoke of the atom in metaphor, some shrouded knowledge of atoms in mystery, and some asserted that certain experiences of atoms were brute facts.

But not all physicists even agreed that evidence was important. Some physicists argued from first principles alone, invoking philosophical arguments that spoke of the atom's necessity in some respect. There were multiple of these arguments, though physicists disagreed among themselves as to the validity and significance of various arguments. Entire classes of arguments were championed by some physicists, while others favoured a different kind of arguments. She found the arguments for the most part lacking in any detail, and where there was detail it contradicted other established science. There was just no way to reconcile the arguments with the claims made about atoms.

She found some physicists who disagreed with both the arguments and the evidential approach. Some argued for the beauty of the idea as proof of the reality of atoms. Other physicists argued that atoms fit with our emotional needs. Some argued that the atoms were needed to keep social order. Some argued that their emotional response to the theory is its proof. Finally, some physicists admitted that a belief in atoms is a matter of faith, which a few embracing the idea of atoms precisely because they are an absurd concept.

The only constant she found in the exercise was the belief itself. Physicists couldn't decide among themselves what the implications were, let alone any detail that could be subject to the same scrutiny that other physical theories have. What follows is that the consensus among physicists is an artificial one, with no two physicist sharing quite the same view of what an atom is or how we know about it. And, finally, the reasons and evidence given in favour of atomic theory were unlike the various successful epistemologies that she had learnt about. At that point, there was nothing to do for the idea of atoms than to just walk away until such time the concept became more scientific... though she doubts that would ever be the case.

The question "does God exist?" has been the focus of more than enough academic inquiry that the inquiry itself deserves to be taken seriously. In any given field, outsiders looking in are looking at the promise of a discipline to be able to provide satisfactory answers on the questions it purports to cover. This isn't always easy, as academic discourse tends to become self-sustaining making it harder for outsiders to be able to make sense of it. So some latitude must be given for outsiders simply not to "get it" when it comes to the validity of the questions and the approach to answers the discipline offers.

Two things to recognise are that a) no human endeavour is truly in isolation, and b) there are a lot of ways to spend a lot of time asking wrong questions. Astrology and alchemy good examples of both. The methods of astrologers and alchemists throughout the ages have overlap with the methods used in science and philosophy. And both astrology and alchemy are nonsense notions that had a lot of ink spilled over a long time by some very smart and learned people. Very few of us are astrologers today, and none are alchemists, yet as outsiders we feel sufficiently qualified to write off both intellectual disciplines as failed truth-telling endeavours about the universe. It could have turned out both were true. It turned out neither were.

What I tried to do in the parable above was highlight my own experiences trying to understand the question of God as believers see it, including what philosophers and theologians have said about the question. I grant the possibility that there could be a theologian out there who has a legitimate case for God's existence, but I don't see the worth of exploring the subject in any great detail. Despite the towering intellects and sheer amount of manpower thrown at the problem, there doesn't seem to be the same conversation among learned believers about what God is and does - let alone a case made with the successful epistemologies we have developed. This stands out in contrast to the actual atomic theory - or any other scientific theory - where the scientists have general agreement as to what theories are and the state of the evidence, even if they sometimes disagree on detail.

Wednesday, 15 April 2015

The Cult of Health

A few days ago, someone in my Facebook feed shared an article about how psychiatrists want to classify an obsession with health as a mental illness. The impropriety! How could it possibly be that wanting to be healthy be a disorder?!

I don't know if the article was correct, and I certainly don't know the details of psychiatric diagnoses, or what should be a disorder or not. I'm not a psychiatrist. But the article did get me thinking about a more general concern I have - that the fixation on health isn't so much about actually being healthy.

Before I go into this, I need to take a few steps back.

A number of years back, I was browsing the health section in a book store. There were plenty of books to choose from, but almost all of them were complete crap. I left the the book store with two thoughts: people want to be healthy, and there's plenty of misinformation out there for anyone wanting to make that choice. For a society that demonises being fat, glorifies being fit and thin, what we've got is an industry dedicated to making money from it.

Fast forward a little. A couple of years ago, I joined a gym in a somewhat futile effort to get in shape. One day, as I was trying to work my triceps, I looked up at the TV. There was an ad for some equipment that promised all the results without any of the effort. Here I am in agony making barely any inroads, yet there was a machine promising me everything I wanted without needing to engage in this masochistic endeavour. Naturally I'm dubious, so I kept my gym membership and did not get suckered in by the infomercial, but again there was that parasitism on the desire for being fit. (Ignoring, for a moment, the false promise that is a gym membership.)

About 18 months into the gym membership, and it was going reasonably well. I was losing weight, though not as much as I liked, and I was getting fitter. Then two things happened: I injured myself, meaning I had to cut back, and I took on some extra responsibility at work, which meant I was working longer hours and eating a lot of pizza (provided by the company). In a month, I had regained over half of the 11kg I had lost over the previous 18 months. There had to be a better way.

First, I read The Healthy Programmer - a book I had bought during a sale, but it sat on my virtual shelf for months. I read it in 4 days, and was eager to take my new-found knowledge and put it into action. Second, my mother told me about a website called MyFitnessPal, which I could use for tracking my food and exercise - something I took to quite obsessively. And between the diet and exercise, I've had really good results. I'm now normal weight for the first time in my adult life, and I recently beat the 10km mark in a run.

So hopefully I've established that I do have an interest in health, in being healthy, and in leading a healthy lifestyle. I'm not at all opposed to the idea of people wanting to be healthy, and I don't care in the slightest if that interest in health for others is something related to wanting to look sexually desirable or simply wanting to avoid the prejudices our society has against the overweight. People spend far too much effort impugning and maligning the motives of others. (Again, the impropriety!)
  1. Health foods - There's an aisle in my local supermarket dedicated to what it calls "health" foods. It's good that there's an aisle for foods that don't contain foods with allergens, it's hard to grasp how the foods in that section are any healthier than the equivalents in different aisles. Are the organic almonds really better for me nutritionally than the regular almonds sitting with the other nuts? Are bars made of sesame seeds, condensed milk and honey? They taste good, don't get me wrong, but it's hard to know where the "health" comes into it. And of course, the "health" food is opposite the wall of vitamin pills and meal replacement powders. So we have an entire section of the supermarket dedicated to foods pretending to be better for us next to pills and powder that try to mimic food. Whatever happened to a balanced diet?
  2. Health food claims - Two aisles over from the wall of pills is the wall of sugar, which incidentally is my favourite wall because it has dark chocolate. But it's also the aisle that shows how health claims permeate all our subconscious desires. Because labels like "all natural" and "99% fat free" sit proudly on packets harbouring highly process sugar melded into fun shapes. No marketer is really trying to convince us that Starburst is actually healthy, but highlights the absurdity of the practice taken to an extreme. It's comical on that packet of Starburst, but pernicious on TV dinners with the brand "Healthy Choice".
  3. Superfoods - There's no such thing. There are basic micro and macronutrients we need to survive, and the best way to do that seems to be to eat a balanced diet. But beyond that, the idea that there are particular foods that are nutritionally-overcharged and really ought to be on our plates is nothing more than marketing hype. Our species survived and thrived long before the vitamin pill aisle, and we similarly did without kale salad dusted with quinoa and chia seeds and a side of acai berries.
  4. Calories - On the flip-side to superfoods is the dreaded notion of energy. So while most of us need ~2000 of these a day to survive, foods that are high calories are demonised despite having a good nutritional profile. One article talking about the nutritional content of almonds, for example, talked about all the nutrients it had in it, then warned people off them because they are very high in calories. Again, it seems to be the superfood thinking - that there's this one magic ingredient that we should consume copious quantities of, and it would be almonds if not for its caloric content.
  5. Ethical eaters - I can appreciate vegans being so for ethical reasons, or people not wanting to eat certain foods because of industrial practices. But it amazes me how these ethical considerations just happen to line up with what they think is healthy. Just a vegan's luck that not only is eating animals cruel to the animal, it's unhealthy for us. Just as organic has extra nutritional benefits, genetically modified food is a health crisis in waiting, and those "unnatural" artificial sweeteners are already a health crisis. It's great that there's a direct correlation between ethical eating and healthy eating...
  6. Diets - Inevitably I'm asked what kind of diet I'm on. I answer "none". After being looked at sceptically, I elaborate "I'm on the not overeating diet". After growing up in a world where fat was the enemy, now it's carbohydrates that are the enemy. We now should quit sugar, live like our paleo ancestors (with our modern foods), take two days a week for radical reduction in calories, or even kick-start our metabolism with coffee filled with butter and coconut oil! And when those techniques don't do anything to help with the obesity crisis, you can be sure there's going to be some new techniques complete with success testimonials just around the corner. Again, whatever happened to a balanced diet?
  7. Willpower and choice - Everywhere in the West seems to be in an obesity crisis right now. So while more adults all around the world are becoming overweight, the issue keeps coming down to choice. That is, if you are fat, then you chose to be fat. If you try to lose weight and fail, it's because you didn't have the willpower for it. In other words, you are the disgusting blob you are because you make bad choices and don't apply willpower properly. It strikes me as a post hoc justification for victim-blaming, and that's highlighted by how much this argument is used by junk food companies to oppose regulation, but it's prevalent nonetheless.
  8. Motivation-in-a-box - The internalisation of the willpower argument is the idea that a particular product is going to be the thing that finally motivates you into becoming healthy. Right now, it's activity trackers. A few years ago, it was Wii Fit and Dance Dance Revolution. For as long as I can remember, there's always been some product that plays to our recognition of our inactivity. Even at the gym, I see infomercials on the TV for products that will tone our body without the slightest strain.
  9. The shortcut - Since the dawn of our species, we've taken the effort to make us look better than we actually are. We want to give the impression of health, youth, and vitality. The beauty industry is the logical, albeit absurd, consequence of this fundamental drive. And, thankfully, for those who recognise that there's no such thing as a product that will get them the look they desire, there's a product that will give the illusion. Body-shaping clothes sitting atop of skin full of fake tan and anti-wrinkle cream, you can appear healthy to the ouside world.
  10. Purity - Perhaps the worst aspect of health as a commodity is the expectation that health should be the aspect of our being our actions revolve around. Why should it be that drinking a glass of red wine for its supposed health benefits is acceptable, while drinking a glass of red wine for the sheer pleasure not? This idea that we have to be obsessed with our health (and by extension, everyone else's) is something that's just assumed by the "my body is my temple" crowd. The flip-side of this language is the impurity of failing to live up to the same aspirations, thereby condemning the failure as having morally failed.
What's questionable to me is whether any of this is doing us any good. Do any of the products in the store that have health claims make for part of being healthy? Does the consumption of superfoods and avoidance of calories? Do any diets, ethical or otherwise, work? Does making it a matter of willpower? Or is the focus on the appearance of health creating the market for products that mimic the look? And are we just becoming self-righteous in the condemnation of others for the crime of not living to our ideals?

We can frame obesity in economic terms, as everything is these days, and deduce that it's a moral imperative from the sheer weight exerted on our medical systems - similar to how we've deduced the moral imperative to rid tobacco from the world. But while smoking has declined, decades of focus on the "obesity epidemic" has seen obesity soar, as if somehow obese people haven't gotten the message that it's really really really really bad to be obese.

It seems to me that the focus on health as this sole marker of societal (and therefore, human) worth needs to be vastly toned down, or at the very least addressed in the way other health crises have been addressed - by trying to root out the underlying factors. Because what we have right now is a self-aware society getting more obese doomed to failure by the memetic equivalent of snake oil. The focus on health, at least in the current environment should be considered a complete failure, because it has not led to healthy outcomes. It hasn't even led to a blueprint for health that people can at least try to follow, beyond eat less skittles and exercise more - with the purchasing of skittles thereby being a moral failing. Clearly something has gone horribly wrong!

Saturday, 28 March 2015

Game Review: Frozen Cortex

The rogue-like FTL: Faster Than Light was an uncompromisingly difficult game, where playing up to two hours at a time could be undone by one moment of chaos. So many times I ploughed through that game only to declare the universe as being intrinsically unfair as a simple mistake cost me a good hour of careful planning, only to have to start over again. The illusion is that next time I'd get it right. I'd shield the doors earlier, or make sure to stock up on extra missiles, or avoid saving the crew of a ship on fire.

The futility of the game combined with the (somewhat illusory) sense that I was in control kept me coming back. It was only when I could get through to the end of the game regularly that I finally lost interest.

Which brings me to Frozen Cortex.

Frozen Cortex is what you get when you cross American Football with Frozen Synapse - which is in turn what you get when you cross chess with guns. I really enjoyed the idea of Frozen Synapse, but I never could fully immerse myself in it (Hell is Internet multiplayer...) I haven't had that trouble with Frozen Cortex, already rocking up close to 30 hours of game time.

The funny thing is that there's really not a lot to Frozen Cortex. The entire game consists of short matches, with each player controlling 5 robots on rectangular arenas populated with various obstacles. It's simple enough to grasp, simple enough to control, and a tiny mistake can undo hours of meticulous planning. Any given match can be thrown away from incorrectly guessing what an opponent would do, and that makes knock-out mode all the more difficult.

Because the games are so short, minor mistakes have those major consequences. Screw up on your own offense, and it's virtually guaranteed to be game over. Misread your opponents and it can be similarly difficult to come back during your own. The game's annoying habit to "pause" the turn halfway through a touchdown pass can often be just rubbing it in that you didn't realise the opponent had that option open, and there's nothing to do but slam the PRIME button and hope there's still enough time to recover.

And there are many ways it can cost you. A slightly mistimed run means a key player is knocked out. Throwing to a player too close to an opponent gives them no time to act before they are tackled. Passes that get intercepted. Having your player slightly mistime an interception. Moving to the wrong side of an obstacle. And of course, all these are compounded with scoring pads littered throughout the arena. They are only worth 2 points (compared to a 7 point "touchdown"), but a good run can cross several pads at a time. One particularly bad example was a robot that could just sneak around an obstacle for an unguarded heavily-padded run to the end-zone.

It's that futility that like in FTL: Faster Than Light keeps me coming back. I didn't see that play. I'll be mindful of that next time. It's with that attitude I've been able to beat the game on season mode (and opened up interesting variations), but haven't quite gotten through a knockout comp yet. The game is cruel, uncompromising, punishing, and that's what makes it such a rewarding experience.

Monday, 15 December 2014

Slipping Back into Old Habits

I have a lot more time to think about coding issues than I have time to code. In some ways, this is quite handy as it allows me to plan through certain problems and foresee potential pitfalls of a particular solution. I think there are two key problems with this, however. First, even if I come up with a solution it's still only half the job done. Second, it gets be bogged down in coding problems that often are beyond my coding abilities. This all became apparent in the last month when I became bogged down in a particular design problem. A month later, I'm still no closer to a solution, and worse still I'm not making any progress in any other area. And instead of just coding a workaround for the time being, I became fixated on solving the problem.

(I needed compile-time polymorphism where I previously had run-time polymorphism. I read through books and websites on templating, tried rudimentary attempts at adjusting my code, but always I was trying to code up a perfect solution in my head, weighing up potential considerations and pitfalls. And at the end of it, all I have is the lament I just didn't code around it.)

What I find so disappointing is I know all this. There's nothing particularly revelatory in that I dwell on problems instead of working around them, but it is disappointing that I still haven't moved on from the problems I had when I was at university learning to code. I get too hung up on solutions that I haven't learnt how to code around it.

This game coding happens in the limited spare time I have. It's a hobby, and comes after other aspects of work and life. So maintaining motivation is always a struggle, especially in the face of seeming blockers. And from what I've come to know about the role pressure plays in inhibiting the creative process, the limited time often translates into fixating on particular solutions instead of just getting on with something else.

Given that I'm still adjusting back into C++, it's easy for me to think of failures as a lack of knowledge of the language itself. Sometimes that's apparent, and I know as I'm reading through various C++ material that I'm skimming for a particular solution context rather than internalising the language feature as a potential design tool in the future. But I think it would be a cop-out to blame my current understanding of C++ when the language is so flexible in the kinds of solutions that are permitted.

It's always, I think, going to be a question of motivation. That is, am I able to code something that's good enough for the task at hand? One thing that's problematic is that my initial scope is far too ambitious – that is, I'm trying to create a framework that could be used to make any number of 2D games. So in that respect I'm stuck trying to figure out generic solutions.

And therein lies the problem. How do I know I'm going to get to use any of the design work I've put in so far? For example, all the time I spent writing wrapper objects for SDL code, as far as I can tell, has had very little benefit so far. Indeed, the main reason I did that was to have a sort of platform agnosticism – the theory was that I could refactor out the core features of the engine to a different library without having to permeate those decisions down through game code. Yet if I'm never going to do that, then as happy as I am with some of the wrapper code I wrote, then a lot of that effort was wasted.

(Funnily enough, as I was trying to learn SDL, one thing I got frustrated with was that the tutorials were so direct in their use of the libraries. I took it as an act of clarity on account of the tutorial writers that they didn't try to muddle things up by enclosing their code in some simple patterns. But as I was coding up my input system, I wondered just what benefit I was getting out of mapping SDL structures with my own.)

This too, I think, highlights the perils of solo development. As I'm working on this project, I'm accountable to one person: myself. What I design, what I build, what my desired end-product is – all that is my decision. And since I'm starting from scratch and working completely unguided, it’s inevitable that I'm going to not only make bad decisions, but those bad decisions will lead t o a lot of wasted time. You live, you (hopefully) learn.

What I think I've learnt is something about the limitations of myself. If I have a certain disposition to coding a certain way, then it would be madness to think I can just overcome it by saying "don't". What I hoped with prototype-driven design was that I could better focus on what needs to be done, rather than what I would think might need to be done. That, now, seems like only addressing half of the equation, and what's missing are techniques for build-and-refactor so I don’t get bogged down where an elegant solution is not immediately apparent.

I know at times I need to get out of my head – I have notebooks that are filling up with ideas faster than I'm adding lines of code to the codebase. What will remain to be seen is if I can work with my own personal practices and habits. Like losing weight, if you try to do it on willpower, then you’re going to fail miserably.