6 May 2008

Issue trackers : Shifting shit to the side

The other day I whined about our various developers tools, and I have an urge to follow this up with something that irks me to no avail; Why the hell do we use them?!

Don't get me wrong, I know why we use them. We track our issues and bugs so that we can control and manage them. Right, got it, but in this fine, fine universe of issue tracking we've created we've perhaps forgotten why we track them in the first place. It's because we've got issues.

We don't have issue trackers because we want to track issues in a database. We've got them because we get issues and don't know any other way of dealing with them. There's a gap between understanding that issues is something we get from doing things wrong and trying to work out ways to deal with them. Issue trackers are not there to help us fix problems, they're there to help us organize our problems. But we still got problems even if they are shifted into another system, in fact duplicating their existance.

Now, having said that, this state of affairs comes from the way issue trackers are designed, and, to some extent, how we've always viewed them; they are a separate bucket to carry shit in. So we got some shit in our system, and we dump some of it into this other bucket to offload our systems, and we think somehow that the weight of our systems get lighter through using this bucket. But the truth is that we've still got the same amount of shit lying around, albeit in a more organized way. No, it's even worse; we now got more shit lying around. Well, to a point.

What happens when it's time to shift the shit from one place to another? Those who come from a colder climate farm-life know all about the cow shed, how there's a trench down the middle of the hall that you scoop all the shit into, and then from there down to the manure cellar underneath. So now you've got a nicer looking hall, but you've still got a cellar full of shit. At some point you need to get that shit out of there, because it doesn't go away by itself. (Incidentally, a good friend of mine, Jens Maage and his company BioWaz, use manure cellars for producing electricity; you should check it out!)

Most, if not all, issue trackers are pretty much the same thing; a database of issues, and then you can shuffle things about with multi-person interaction. There's nothing magic about it, and there's a particular model of "issue trackers" that we've all come to accept, not only as a way to deal with issues, but that every project in the universe must have one of or else they will fail. JIRA, BugZilla, Trac, whatever; they're database applications that offer some interaction to shift shit around.

But is this really a good model? Is this the best we can come up with?

Every application, every system, every class, or every little piece of code will, at some point, be addressable, but not always in a meaningful way. The problem is quite often one of identifying a bridge between "the issue" and the systems we create. Some times this is very hard, like with workflows. Some times it's dead easy, like with a GUI. At the end of the day, the success of any issue tracker - and hence, the success-rate of the issues you're trying to resolve! - depends on how the human interaction against it is done. Poor user interfaces is, in fact, a make or break for this, a sad, sad fact that's been neglected for far too long. I guess most of the reason for this is because issue trackers were created by geeks for geeks, and as geeks we worry about functionality first and aesthetics later, if at all. It's not until you talk with HCI professional you learn that the two are not even separated, but two facets of the same thing.

I've whined long and hard about issue tracker user interfaces in the past, and I'm not going to revisit them here, but suffice to say they mostly suck. Give JIRA to normal people, and they can't understand what on earth they are supposed to do with it. BugZilla and Trac are no better. (I haven't tried the latest version of FogBugz which I hear good things about, but it's still based on the separate divide idea, and I've tried some older versions which, indeed, sucked)

"Stop whining and show me alternatives, schmuck!" I hear me say. On one of my last projects I embedded issue tracking and reporting straight into the applications GUI itself. A small button in the top-right corner on any page (and sometimes on whatever part of the GUI you would like) would pop out a pre-filled form with things that's important to the bug hunter later; URLs, login credentials, roles, names, runtime environment, version, states, and so forth. This gives us some very important things;
  • Nearest possible identificator to where the problem was discovered. (And yes, this works even when the point of error can't be determined; the front page is a good start for any weird issue)
  • Boring information already filled out, taking less time and would be more accurate. People will report more issues if it's easy to do.
  • Possible automatic "screenshots" (state, page, role, etc.) of issue state, making it much easier to back-track and find the bugs again.
  • Visual cues for visual humans, tacit cues for stupid computers.
  • Integrated point of contact, so even if reports come out through some other application, the point of interaction is where the application is, lowering the threshold of entry.
  • Possible loop-back to developers who can browse the application and simple reports to move to points of issues. Every page can have a counter of issues in the vicinity of it (and clicking it display all of those issues). How freakin' cool is that?!
This was integrated using JIRAs webservice interface, a tool that's great for geeks but terrible for mere mortals. I could now sort, shift, delegate, report, fix and deal with issues without alienating and making the testing of applications more complex and tedious. Of course I had to deal with the issue tracker itself, and me as admin still had to struggle shifting shit around, but at least 95% of its potential users now didn't have to touch the issue tracker at all. That's a big win.

Now, if the admin interface and the shifting of shit around could be integrated into the interface itself as well, I could do away with the whole GUI of the issue tracker, and just use the database and underlying issue model part of it. Now that would be cool, and would be an important step forward in making tools work for developers instead of just shifting the shit to the side in the hopes of making it go away.

Of course a lot of applications don't have a GUI. Let's invent better ways of doing this, from mock test classes to functions that can somehow integrate against issue trackers (or embed them). There are better way of dealing with these issues; we just got to think smarter about it. I'm sick of having one tool for every little domain of trouble we can think of. We need less tools to do a better job, not more. Less is more; we've know this for many years.

Shit never goes away; they're a natural part of life. But instead of just chucking the shit down into our manure cellars and hope it goes away or resolve itself we should design systems where the shit is immediately turned into something more useful. Like electricity. Or, in our case, into better pointers and interaction with the actual problems, directly at the point where the shit was found in the first place.

Issue trackers as they exist today must die, and become one with the problem.

5 May 2008

Getting hard and dirty

Did you know I once thought a career in geology? Did you know the lithosphere is like sex, drugs and rock'n'roll to me, without the drugs and rock'n'roll? That I get off getting hard and dirty with a hammer and chisel, brushing those smooth curves aside and fondle those cuties all over?

Ever since I was a kid I loved rocks (technically, "rocks" are minerals, blended together, with a few Mineraloids and organic matter mixed in), collecting them, polishing them, sorting them, and loving them. What is there not to love? The visual patterns, the geological history, the versatility of them, and - the best part! - you find them everywhere! What better hobby than to collect something you can find absolutely everywhere. Yeah, my mum thought so, too.

Yesterday my family was invited to go for a trip to my beloved woods by another family, and all along the way my daughters and me collected rocks, looking at fault-lines, discovering and discussing the crystalline features of minerals, where you would likely find what type of rock, and - of course - finding some pretty cool stuff, including rombeporfyr found only around Oslo, Kilimanjaro in Africa, and in the Antarctic. The Oslo valley is a treasure trove for geologists as it is the remnant of lots of spectacular volcanic and tectonic activity, and I'm teaching my kids all about it, how it relates to erosion, glaciers, shaping the landscape, the history of geology itself ("why are these rocks shaped like this, and why are there sea-animal fossils in this rock thousands of meters above sea level?"), and the importance of understanding how it relates to how the universe itself spins!

I've noticed that one of the most difficult things to explain to kids ain't the big issues, such as long stretches of time making small small changes, like erosion through rain or plate tectonic moving. No, it's that "crystal" in itself doesn't mean what most people think a crystal is. No, it's not just quartz crystals. It's the same issue of teaching people that "classical music" ain't what you think it is, as there's a classical type of music vs. a classical time period of music. We cling to phrases as if they're accurate but scientifically is very broad. This is of course due to prototypical category theory which I've talked a lot about before, so I won't bore you with the details. But they are everywhere, damn them!

Anyway, spring is here, beauty is everywhere, and my little family are enjoying ourselves more and more as time goes by. We're always off somewhere, and I can tell my kids have got the rock bug as bad as I did when I was young. I try to teach them everything I know about it, and we'll hopefully get a nice collection together. I might even post about the progress here, taking pictures and explaining them as we go along.

And on that note, I'm off to enjoy the wonderful weather and the family. Happy rock hunting!

(P.S. Did I mention that Grace already speaks a tolerable Norwegian? It's amazing what she's learned over the last three months.)

2 May 2008

Developer tools blues

Bloody developer tools. Bugtrackers, Wiki's, blogs, build farms, testing frameworks, monitors, compilers, frameworks, environments, debuggers ... Some times I feel like they're controlling me rather than the other way around. I started my computer-career because I was good at writing code. First this bit, then that bit. Link together as such. Here's your path. Now do.

And now look at me. I've gone from "getting the job done" to "getting done by the job", where processes, instructions, frameworks and complex machinery (and I include the coffee-machine in this, one of the more important parts of the system these days) have throttled and taken over my old days of neat small programs or scripts semantically bound together by my cleverness.

Working on big and small projects always demand some kind of rigor, and these tools help us have some degree of control. So we're being told. We try them out, we use them, integrate them, extend them, all to somehow get some control over our overgrowing systems. We believe that this is the right way, the true way to being enterprisey. Maybe this even is correct, that the true definition of "enterprise" is huge and unwieldy. But that's not the result we were after. "Enterprise" is not a result, but a symptom.

Another crazy thing is that no matter how we simplify and makes things easier through project management, we still need to duplicate our cleverness into system so that they can be documented and dumbed down. A typical example is how we write little post-it notes with work-tasks, and move them along a board so everyone can see who's doing what. And then we duplicate our notes in the bug-tracker. And then we duplicate the hours spent in our Excel sheets, and our other internal timekeeping system. It's like taking a step forward, and then two back, but because the first step is more visual we think we're doing progress.

Why doesn't these tools work the way my brain works? Why don't these tools integrate better? I must search the bug-tracking database to find the module in which the bug I just struggled with could be found, only to find 10 slightly different but similar-sounding bugs, and choose one, and perhaps later create links between them to create a sentiment of what the bugs all are? How many clicks and web pages did I just go through to report my one bug?! And if bugs are this hard to define, you've got bigger problems than that bug, I can tell you! I don't know about you, but I see more places of error and maintenance nightmares from that scenario than solutions.

Where I before used common sense I now use the Factory Pattern. Where I used to document the interesting bits in my code with clever puns and humor, I now use JavaDoc at every intersection, method and class with prose that my English teacher would be ashamed of and I myself fall asleep over. How did I get to here?

Another example of "tools" gone bad is "meetings because there must be a meeting" (daily or weekly meetings, for example) bringing the distribution of people to a central point for communication and possibly solutions. If these people we're distributed in the first place ... *sigh* And because these are circular event, people adapt to their circular nature, and soon find they can fake any meeting. It becomes a meeting to simply get over with. What was the point again?

Then there's cross-departmental systems design and implementation, where the service bus is an integrated part of domain integration. Bah, I can't believe I just said that, because what I really mean is "stuff your WSDL here, your classes there, UML over there and config files here, and try to verify that your serialized objects come out right and do the right thing, and then serialize them onto somewhere else, rinse, repeat." I feel I'm becoming detached from enterprise speak as I'm believing less and less in the problem space.

I guess at this point you've guessed I'm no fan of enterprise architecture and the way that SOA is promised these days. Often we're made to believe that we need synchronized, mediated, transaction-baked and bus-delivered systems full of dependency injected objects over a FOP, sprinkled with mock objects, where it passes integration and unit tests, and are linked to the cruise control, all in the name of a friggin' form in a webapp somewhere. The problem is over-engineering.

The tools we use suffer the same inane over-engineered and under-humanized thinking. I mean, have you given BugZilla or JIRA to your normal users, without telling them exactly what to do (basically writing a separate document with lots of specific instructions) and how your setup of that system is meant to work? Where do things go in, and where do they come out? What am I working on? No, I'm not working on that! And what about source-control? How many different systems are there? How do we fork, and more importantly, how do we merge them? What do you mean my file isn't in synch with the repository? I AM the repository!

Bloody tools written for and by geeks to give the illusion of progress, that's what they mostly are. I'm so sick of these tools not helping me be effective. Is that so much to ask? We're so focused on our bloody tools that we're forgetting how to do the one thing we thought we were good at to begin with; writing good code. And good things come in small packages. Small packages usually denotes small domains. Doesn't everyone know this?

Friday developer tools blues, I call this. Now go and have a great weekend.

29 April 2008

What's wrong with Topic Maps people and their tools?

Hoo boy, I'm feeling a bit testy today, but seriously; how many who read this blog know the difference between an association type, an association role type, and a reified topic type? When we humans try to put to "words" - in a Topic Map, as we're dealing with here - our various models, do you know when to create a new topic type, how to use the role type in multi-member association of given types, what a "type" really is, and what an "occurrence" of anything really is all about? And - more importantly! - do you really need to know?

The Topic Maps paradigm takes a good while to sink into your brain. It takes a few goes and lots of patience to get what it is really all about, and when you get there you discover - surprise, surprise! - that "topic maps" are irrelevant to the real nugget of wisdom within; shareable models.

Here's a model of me. (If you can see it properly, ) Does it seem right to you?

No, not the glossy models on the covers of magazines, but the kind of models the way the brain tries to shape an immensely complex reality for a brain than can only hold bits of small distorted representations at a time. Here's a piece of this, a representation of that, held together with some contextual duct tape, and Voila! you've got some "kinda" understanding of how the world works. Kinda.

The world does not want to be modeled, and anyone who has ever attempted ontology work (another phrase that means everything and nothing at the same time, and - of course - I use all the time!) soon discover how impossibly crazy it is to model anything to any degree of correctness. We, as human beings see this infinite tool of modeling our world, and falls promptly into the trap of actually trying it out. In some ways the amazing things you can do with Topic Maps is its own death! Don't try to model anything to any degree of detail; there's crazy in there.

We model all the time, but until I learned all the ins and outs of Topic Maps I didn't have the words for what I was doing, nor did I have the knowledge that I was even doing it. But I was, and I still am. You are, right now even by just reading these words. Just by writing this blog posting I'm modeling my opinion, phrasing it through prose, interacting with my computer, and posting it contextually, all in the hope of you understanding this model. I have a purpose, a model in my head if you will, of what this message is and how it should come across. The fun is, of course, that no matter how accurately and carefully I try to communicate the model in my head to you, every single person who ever comes across these words will have their own unique special - and, dare I say, still correct - version of it. Every single sound, vision, thought and feeling ever expressed is uniquely interpreted.

So, maybe I describe my model to the best of my ability in an attempt to remove tacit knowledge surrounding my message. Maybe I say things like "I use my blog to post this message, choosing a title that might catch your attention, and I'm talking about more important issues than a selected technology; human perception, communication between us in a way that is as close to truth as we can hope to achieve, that what we all do is communicate models from our brain to the hopefully next one. And of course, Topic Maps is one really good way of doing this." That's my mental model for writing this stuff, but you can be quite sure I've forgotten to say bucket loads of stuff, neatly hidden away in prose, innuendo, lost context and the mere fact that my brain is impossible to model, little less understand. These are tremendously complicated things that are, by their very nature, bloody impossible to get to! It just can't be done!

But, because it looks like it has some element of truth to it, we pursue it as if it is the truth. It looks like we can model things well, so we try to model things well. Ouch. Bummer. No, don't do that; you need to have less precision in your models for them to actually be taken seriously, at least by people. But let's talk about computer to computer communication. Surely there we can have precision?

This is the area which for me really brings Topic Maps to its right, where we - as digital communicators - create artificial models which we can attach our data to, and share around. Forget all this human knowledge stuff; if anyone who is to model their idea need to know what an association type is, forget it. Sure, we allude to what it might be, hold a course in it, or explain it on end, and then we throw ourselves heavy into the Topic Maps Data Model and explain that it is just another model that's mapped to the Topic Maps Reference Model, which is a model which is framed in frames theory (or thereabouts), which is a model of key/value pairs in a table setting, which is a model of simplistic systems, which is in a computer model setting, which is a digital model of ... and so on. Models, models, models. And you know what? There's translation and interpretation at every single step of the way.

Steve Pepper claims that Topic Maps are great because Topic Maps are closer to how the brain works than other means of mapping information, and I agree with him, but only in the "sure thing" kind of way, not the "correct" kinda way. The human brain doesn't think about how it models things. In it, there are no kinds, or types, or roles, or occurrences, or reification, or identifiers of any kind. So let's agree that Topic Maps, at the moment, is perhaps the closest we've got standardized right now that somewhat is closer to the way the brain works in computer terms.

Translations. That's what it's all about. I say "hei", you say "hi", she says "hola", he says "yo." Some use Java, some use C#, some PHP or Perl. Business people use business speak, designers talk the talk, programmers code. There's translations up and down and back and forth between them all, and then some. And wherever there is translation, there's a margin of error that gets higher the further the translated models are from each other. No wonder there's problems in the world.

As technologists we care a lot about these things, and from a technical standpoint, Topic Maps kicks ass! Seriously! But I've worked extensively with Topic Maps over the years, and if there's one thing I've learned it is that people don't give a toss about what the underlying technology is, and they certainly don't care what type or association concept any relationship might be. When people perk up about Topic Maps, it's not because of the data model but it's because of some underlying modeling ideas, that promise of sharing models and bring tacit knowledge up from traditional taxonomic and document-centric ways of dealing with "knowledge" in computer systems. They do not care about how to "map" their concepts, and seriously, don't care whether the modeling tools are standardized, shareable or not. They care about the models, for sure, but only as a conceptual thing they wish to share. So let's forget the technology and the data model and Topic Maps, because it really doesn't matter.

What matter is that communication happens, and it doesn't happen on the Topic Maps Data Model level. There is a higher, sloppier, fuzzier level that we humans live on, and that's the model we should try to get closer to. Sure, we can create cool systems using the Topic Maps standard to do all this, but it sucks as a platform of expression! It really, really sucks! Try right now to model the simple concept which is "freedom"; what are your topics, associations, role types, occurrences? One can appreciate that we can try, but there's no one answer to do this. The TMDM does no support human thinking, don't let yourself be fooled, it can only represent some misguided attempt at jotting it down in some machine-exchangeable way.

Topincs, Omnigator and other tools we Topic Mappers give to people who are to model things are a thing that only a technologist can love, and, in addition, a technologist who understand all the ins and outs of the Topic Maps Data Model. This is a huge limitation! People, the real group we have been trying to sell this concept to for years, just can't wrap their head around the Data Model to such a degree as to conceptualize their models! It's lunacy to think so, but of course, the Topic Maps community is chock full of technologists, so that's kinda expected. But I really wished that we had outside help. The Data Model is there for technologists and tool-makers, not people.

Can we rethink this part of the problem? I'm often embarrassed to give these tools to people, as it is extremely counter to claims we lay down to the greatness of Topic Maps. Don't get me wrong; TM is fantastic stuff, but the tools sucks for normal people, and by "normal people" I mean almost anybody but us.

We need to be even more human in our approach to knowledge representation. Topic Maps is a good foundations to build our systems on, but it sucks as a knowledge representation system for humans. What can we do?

The full Monteverdi

UPDATE: John La Bouchardiere, the director of "The Full Monteverdi" (who's in a relationship with someone who sounds very Norwegian sounding ... :), wrote me a short message saying that there's also a FaceBook group set up for the project. I should also point out that I am actually one of the biggest Monteverdi fans around, so for me his project is the most fantastic thing that has happened in the "Monteverdi trenches" in a long time. I cannot praise it enough. It's on my Christmas wish list, and the wife has been informed.


By pure chance I happened to find out that "The Full Monteverdi" was shown on Swedish TV channel 1 (which we here in Norway also get) last night at 9.15pm. I hurried cleaning up the house, putting the children to bed and making a cup of tea (and Milo for the wife), and turned the dreaded box on at the right moment.

I normally don't like watching TV. Our culture has become too dependent on being fed spoonfulls of whatever some committee has decided that you should see, especially those in charge of the no. 1 entertainment medium. TV seems to have embrace the idea that the lack of understanding a complex context can be solved through a simple mix of image and music, with some additional editing and commentary thrown on top, with the news, I guess, being the prime example.

On the radio the other day (a place quite a bit way down the list of entertainment outlets these days, on a channel that don't meddle much in the realm of fast and funny tidbits) I heard it mention that the sale of the great classic books was decreasing every year, and there was some concern to the lack of reading going on these days. I'd go further and express concern for any real thinking going on. Even 100 years ago poetry was an integral part of modern society; where did it go? As a society we are less about smart opinions as we are about strong opinions. Why is it that strong is better than smart? And what do I mean by smart? Not always the smart we think.

Personal freedom is great, but not always so smart. The individual detached from a social network is locked into rigid systems we as human beings really don't maintain well over time. So what is smart? Smart is to do things that urge the survivability of cooperating systems. Maybe this is a tonic of misconceived misanthropies, but even the human individual is a system of organic matter. We are all cooperating systems of sorts, and there's strong reasons for why we stick together even when we probably shouldn't. We need cooperating systems because we often don't understand the repercussions of missing pieces. What happens when our humanity turn diabetic? Will we find a remedy for the asthma of our little blue planet? And do we know what happens to the definition of humanity when all things not human is shaken up or taken away?

Context is everything, and humanity with everything which is not human is - in fact - nothing at all. Our conscience and our ability to even think human thoughts are dependent on every other system we've got on this planet and outside it. Thinking we're above such things are the very thing that keeps me up at night; we need every context we can get our hands on, and we need to nurture them and take care of them, because they are what we are.

I used to work for a national library. I think that was very smart move by me, and I met a lot of really smart people there, too. The library world is an example of a world that in many ways is a cooperating system of people who hold some ideals about education, reading, knowledge and accessibility, often for the sake of advancing humanity. And, by humanity, they're often thinking of education about everything out there as a means to understand that what is human is dependent on everything non-human. Libraries give context to what it means to be human.

It is important to understand this context; it gives light to the more complex models of life on our little blue planet. Like music, for example.

I listened to "The full Monteverdi" and the songs from Monteverdi's fourth book of madrigals, songs and music written over 300 years ago put to modern settings. Music is sounds in cooperating systems, where one sequence of tones provides a context to other sequences, where a single note could ruin a whole! If the singer, or the lyrics, or a note, or the visual representation, or the physical singing, or even the thoughts and feelings inside my head, if any single one of these didn't cooperate in some form of a system and create an environment that didn't work, it would render the whole experience very bad indeed.

But that didn't happen. Instead I cried in the best possible way, by understanding something that I cannot easily express. The Full Monteverdi was indeed in and out of context at the same time, and this - my dear friends - is art, an art that is rooted in reality and show us where we could be going, expressed through a complexity of systems we as humans don't understand very well but fully embrace. And it was beautiful. And I urge you to see it, too.

22 April 2008

SOA; ROA; WOA; REST; SOAP : A point about what we're addressing

Hang on to your buzzword-safe underwear! There's a lot of buzz these days in the IT architecture world about whether to pursue SOA, ROA, WOA, do it RESTfully or SOAPy, what bus to drive, and what governance you can throw on top to make it all work.

I am a RESTafarian myself, and everything I do I do in a Resource Oriented way, so you can say I prefer the Resource Oriented Architecture (ROA) which really is a synonym to Web Oriented Architecture (WOA). The SOA way is far less technically defined, as SOA can be created with almost any technology, but there are some traditions and current marketplace geist with the term that associate it with larger stacks that use the SOAP and the various WebServices standards as a mean to "put it all together."

Right, what's the fuzz all about? Why are some throwing themselves at the resource oriented way while others stay with the API oriented way?

Did I say API oriented? My golly, I think I did, and this needs some explanation, and I'm going to quote from an upcoming article I'm writing which include a section on what I call the reversal of the address-function space ;
Let's talk about design of your systems for a minute, as the answer is that all you know about governance, from IT governance to SOA governance, needs to have the same type of reversal of how you think about the services themselves and their individual evolution throughout your SOA space. You're not governing API design, identity pollination, semantics across APIs and functional silos that addresses "access to things": you're governing how to express the "things" themselves. Thinking that services starts and ends at given points in your ROA is severly limiting your options, especially in terms of expressiveness.

This reversal is well known to functional (not to be confused with imperative) and declarative developers, where the focus is on the operational expression of results as opposed to executing a series of commands to get there. Within the RESTful community we often talk about how we use nouns instead of verbs, where we address "things" and relationships instead of "actions" and functions, and we need to be aware of both these angles into how we work with our systems.

If you thought these notions were small and somewhat insignificant, I'd beg to differ. Once you travel down the path of functional operations it's hard to look back. Indeed, the combination of the reversal of the addressable function space and resource orientation is the very thing that makes the unified interface work so well, and that very interface is extremely important in terms of performance and scaling of systems, but there's one more thing that needs to be addressed, pointed out and shouted, which is the semantic goodness of pointing to something and say "I want it."

This is the way we humans foremost operate; first we point, then we interact. We don't say "You know, cars? Well, you know all blue cars? Of those, there's some that goes quite fast, and have really cool spoilers? Some of these are of the brand BMW. And of them, you know those that have the letters X, Y and Z on them, and really looks a lot like the car in front of us right now? You see that one? I'd like one of them." No, we point at the car in front of us, and say "I'd like that one, please." We don't start with the generics of our conversations and traverse down until we find the specific thing we're after, so why should we do this when dealing with computer systems as well?
APIs - or, I should say, the culture that emerge from it - focus on processes, but quite often we're not interested in processes but results. Why are we defining processes instead?

SOA and SOAP / WS-* are highly process-oriented ways of thinking ("first do this, then that, then this, and finally that"), grown from the RPC (remote procedural call) philosophy of distributed computer systems. It was the natural way to start, but it doesn't have to be the thing we should keep on doing. When we move into a resource-oriented way of thinking, we're not defining a process as such, but a result. In fact, we leave the process-part to the backend systems, perhaps as a constraint of loose coupling, and this is an extremely subtle but important point.

I'm not even sure it can be explained as much as experienced; when you shift your thinking from processes to results (and, this is why XSLT programming is so hard for many people; it's a paradigm shift in thinking) there's a lot of boilerplate code that magically disappears. Declaring where you want to be instead of defining how to get there is subtle, oh so subtle. I can't say anything more than just try it yourself. Try something new. I dare you.

Dear reader : Quick opinions, please!

I've had this blog for many years, and know that my audience is rather scattered in why they read it, from family and friends to Topic Maps crazies and library lunatics. Because I'm the boss, I've written whatever I felt like but I'm getting to a point where I feel that to properly express myself I may need to split up a bit;

I've noticed that I've been reluctant to write about a certain topics, either because they're too small, too divergent from the normal path, too insignificant, too intrepid, too silly or too personal. Most of the time I am my worst show-stopper, and I need to write about more stuff. My head is about to pop, but how should I shape this pop in a way that most people here would find interesting?

Thoughts?

11 April 2008

Violent Acres is ignorant : A lesson in truth

Update: Ok, so Violent Acres was having us on. What a great way to instill my lecture on truth, science and theories, which you should read anyway. Toot.

Why is it that some people cling to stereotypes and stupidly assumed fantasy when a few asserted searches would reveal the truth in a matter of seconds? (neither Richard Dawkins, Christopher Hitchins nor Dr. Meyers do what VC claims) Why do otherwise upwalking people such as Violent Acres (whom most posts I enjoy very much) then stumble into the world of the ignorant and stupid?

To justify their own belief, of course. The truth has got nothing to do with it. So I'd like to talk about truth a little.

I am one of those people who seeks the truth. Now, we have to be careful about what that means because a lot of people think that "the truth" has a specific meaning, or a specific goal. The religious are the biggest proponents of "the truth is what I believe" although you'll find it pretty much everywhere.

No, I'm after that truth which we all can agree on; Throw a rock into the air, we can all agree it falls to the ground. If we measure the speed of the falling rock, we can all agree to how fast that is by throwing lots of rocks into the air, perhaps at various places around the world to get a wider view of it, document our rock throwing with pictures, recordings and documents, and perhaps - some time in the future - collate our various findings, and we just might call this thing "gravity" and agree to some properties it has.

There's nothing magical about this kind of truth. It's just there, sitting there as knowledge, which we can use and apply to solving whatever whimsical wish we have.

Later, when John went to the moon and threw a rock, the properties of that rock-throwing even was compared to the generic rock-throwing info back at earth, and we folded the new information into our "gravity" thing, saying that gravity has different pull under different circumstances. To understand this pull, we need to know geology and cosmology and astrophysics as mass and chemical markup plays an important role. And so on and so on.

If we then learn, in other areas that's got other theories, about some properties that also applies to throwing rocks - for example, we discover a planet of size X made up of Y and circles its sun like Z - and then the true magic happens; we can make predictions about what will happen if we threw a rock standing on that planet. The more data we've got, and the more other theories are verified, the more accurate the prediction. This is how we land things on the moon, on mars, and on asteroids flying through space at high velocities. This is how we backtrack life and discover new things through evolution. This is how we further experiment with stuff, because we've got theories that can predict a lot of stuff when we apply X, Y and Z to it. This is, basically, how we come up with all the cool stuff we do these days.

This is science. Lots of different people all over the world all the time find out stuff. We collect data, and have explanations for why the data do what they do, also known as theories. These theories are not guesswork; over hundreds of years scientists adjusts the theory as we know more. The theory of gravity have changed a lot from Newton to today. This is how science works; data forms a theory, and new data further shape the theory, and all theories need to make sense together. No theory stands out and goes against what all the others are saying.

In science there are thousands and thousands of theories, all interconnected. If someone comes up with a theory (note: singular) that seems to go against what the other theories say (note: plural theories; no scientific theory stands alone! Never!), then you've got two options; your one theory is wrong, or you've stumbled upon something that's either revolutionary or crazy.

We never really get one theory that goes against the majority of scientific theories. They are all interconnected, a web of theories that fit into one another, backing each other up, making sense of the world we live in. Thousands of theories that gets tweaked as we find new data, creating a larger theory of how it all fits together. It's a long process (thousands of years of asking the most powerful question in the universe; "How does that work?"), lots of hard work, lots of hours of repeating what others have done (to verify or falsify some small part of some theory).

In the real world, as seen in the movies, a "theory" is someones' crazy guess. Please don't make the grave mistake of mixing up the folksie "my theory to why JFR got shot was hidden advice coming out of Area51"; that's not a theory as science use it, but conjecture, an opinion, or just plain speculation. It's important to know the difference, because at each end of the truth-o-meter there is science and religion.

One claims to be in pursuit of truth, the other claims to already hold it. One is not afraid to modify the truth if new evidence comes along, while the other is the same for eternity. One is about investigation, curiosity and being open, the other is about accepting, don't question and close yourself to others. Science holds no other goals than truth, while religion dips its toe into any human physical and psychological endevour.

Let's get back to what triggered this post; "Atheists are snobs." First, a conjecture such as that is just plain silly. Which atheists? What do you mean by atheist? How broad must your brush be before you're painting your way into the loony-bin? Second, some religious people play roleplaying games. They enjoy a fantasy play as much as the next guy. Of course the next guy will them them they are already living in a fantasy game, but a fantasy game within another fantasy game is still just a fantasy game, so I guess that's ok. As long as they are away of the real world. Third, some religious people are heavy into porn. They perhaps shouldn't be, but they are people, too. All too often, they are people, too.

I suspect VC wants to bring this atheist vs. religious people down to a question of ethics and morals, that somehow religious people hold better ethics and morals. Hogwash, and I'll repeat Steven Weinberg : “With or without [religion] you’d have good people doing good things and evil people doing evil things. But for good people to do evil things, it takes religion.”

The importance - in the end - comes down to how truth is defined; as something we all agree to through an open process, or truth as handed down to you by a guru. And Violent Acres is no guru. And that's the truth.