Rethink

Well, yes, I started off thinking about using Smarty templates on the new site.

Then I thought again. First of all, I want to start getting this stuff off the ground and working. So why should I blow time and effort on starting from scratch with a new templating system? Surely it’s going to be better to start off with what I know, primarily as a proof-of-concept, and keeping in mind that yes, I will want to sort it all into templates later. And ideally with a minimum of code-cruft and work.

But for now, well hell, I might as well just do it in my normal way, which is fairly modular (i.e. templated) anyway, just without bundles of extra stuff. Then when it’s up and running I can run a development copy that uses the templates. When they’re all up, running, and tested, I can move them into the main site. Hey, that almost sounds like something sensible.

I must be doing something wrong…


Templating

Over the weekend, I’m going to be doing some more work on the new site. I’ve got most of it in my head now, so it’s “just” a matter of now getting it into code, and working.

As part of that process, I’ve decided to be “brave” and use a templating system for the first time on a home-grown site. I can see that it’ll have a lot of strengths in the long run, but my experiences with the templating “system” *cough* we use for work’s main site is such a sack of shit I’m still not certain about them. So it’s all part of my own learning curve, really, seeing if another method for doing them is going to be better.

I’m going to be going with one I got asked about for a job interview a while back, Smarty. The name doesn’t fill me with optimism, but hell, I’m willing to give it all a bash.

I’ll write more about them on Monday, I’m sure…


Development

Over the weekend I finally started off some of the stuff on Business Plan #1. The basic database structure’s been completed now, and is ready for me to start work on the pages themselves. Oh, and yes, the basic logo’s been done too – it’s not perfect, but it’ll do for now.

Next on the list will be a proper holding page, as that hasn’t been done yet, and is still one of 34sp default pages. Not for long though.

I am a bit befuddled by one thing on the new domain. I’m using 34sp’s Business hosting initially – a princely £10 per month for 500Mb of space and 10Gb of bandwidth per month (which should do me for the moment with room to spare) but it also has support for five databases. Why?

Anyway, at last the things are starting to get off the ground. More news about the development process will be posted up here as and when it happens. And you’ll be pleased to know I don’t intend to stay cagey about this for too much longer. I just want it sorted first, as you can imagine!


Rationalising

Yes, a bit more about that rationalisation thing from yesterday.

It’s going to be an ongoing process, absolutely for sure. I’ve spent 2005 furkling about. Well, not quite furkling, but definitely not being perhaps as decisive and – is driven the right word? I know I’ve got a lot of stuff to be getting on with, and to be sorting out. And as part of that, I also need to reduce the distractions and diversions a bit, get myself back to being a bit more focussed.

Again, focussed isn’t quite the right word. I’m not getting all single-minded (in either context) as such, it’s just that I know where I need or want to be, and now it’s “just” a matter of getting there. And part of that route is to remove certain distractions and ways of diverting myself. Procrastinating, that’s the word. I’ll procrastinate when I get round to it.

So yes, I need to get some stuff going. The website bits will be started on this weekend. The house stuff is all coming together, and now it’s more about sorting out the relevant people and timescales. Still kind of scary though. The photography side of things needs to be worked on, the portfolio built up, that kind of thing.

There’s a lot to do in 2006 – lots of it work-based either for Groovy Group or for myself, but also the domestic side of things, and also making sure I don’t burn myself out. Which is going to be an interesting balancing act, to say the least…


Hand Coding

There are times where I can just end up feeling like a complete numpty. This has been one of those days.

Because I’m also an epically sad git, when it comes to writing webpages and PHP (PHP in particular, in this case) I tend to write them by hand, rather than using programs like DreamWeaver or whatever to do the work for me. There’s a lot of reasons for this, primarily that if I write it I know what I’ve done, it’s fixed in my head, and I can go back later, look at it, and know what I’m doing. Dreamweaver in particular is not good for that kind of thing.

The down-side of hand-coding, though, is that on occasion you can make a right arse of things, and then it can take a while to figure it out. And that’s what’s happened today. I’ve been trying to figure out why something was displaying when it shouldn’t be. And could I? Could I eckerslike.

I’ve finally figured it out though, and it’s a simple mistake because of writing stuff by hand.

In PHP, setting a variable is done by using $variable=1;

If you then want to check the value of it, you need to use if ($variable==1) .

Yes, I was checking it with if ($variable=1), which in PHP is something that’s always true – because you’ve assigned it to be 1 in that self-same line. One character wrong, and now it’s all fixed and working perfectly. And it only took three hours to figure out…


Design

Gah. There’s one thing that I hate when it comes to sorting out new websites – the logo design. I’ve got the ideas, I’m just utterly inept at translating them into anything that actually looks good.

The one for the new business idea – about which more in 2006, definitely – is in theory simple, but can I make it look good? Can I balls.

Ah well, I’m sure I’ll get it figured at some point.


Starting Up

First of all, a quick “good luck” to Gordon, who’s starting up his own part-time web-design business.

In addition, over here I’m looking at starting up two new website ideas, and also potentially seeing if I can resurrect one from the wallow of “not quite got round to it”. I’m going to stay a bit quiet about them for now, because it’s all very “pie-in-the-sky” and “I wonder if something like that will work?” at the moment.

However, I’ve got the relevant domain names – and there’s one I’m deeply chuffed to have obtained, along with a still-present sense of disbelief that it hadn’t gone. Which makes me wonder whether it’s been tried before and failed, or just something that’s never occurred to anyone else. Being more than a bit cynical, I tend towards the former option – but we’ll see.

Anyway, I’ve got the ideas, and the basic stuff all mapped out in my head, so now it’s “just” a matter of transforming that into working websites. “Just” he says, optimistically.

Quite honestly, I’ve no real idea whether the basic concepts will work or not. They should but that’s no guarantee when it comes to the fickle worlds of users and businesses. I’ll be giving it a damn good go though, and may just ask some of the regulars from here to do a bit of beta-testing when all’s said and done. I’m going to give it all a fair crack of the whip – if they haven’t started taking off by the end of 2006, then they’ll be removed, and all I’ll have spent on them is the £150 for domain name and business hosting. If I’ve made that back – and hopefully more besides – then I’ll keep on with them.