The workload is possibly now getting to me. Must rethink late-night ventures.

The delights

Posted on April 25th, 2008 by Marc

Just upgraded to the new WordPress. I must say, I’m quite impressed. Very glad they changed the backend.. I really didn’t like the previous one. Was too ‘happy’.

Also - potentially you need a hard-refresh - updated the layout a bit. Brighter, cos it’s totally pushing summer now, and an updated header to reflect my current constantly rotating state of near-death.

In other news, my pickups arrived but I haven’t had the time to install the damn things (Tomorrow?), I’m loving Chris Daughtry’s album, and Alan Jackson’s Good Time doesn’t seem so bad either.

I’ve also started on my quest for Ruby knowledge.. that’s gonna be highly interesting.

With regards to Arcadia, we’re waiting on finalising everything and then hopefully within the next month I’ll be announcing a spanking new site for my other company, with some downloads and such. I’m also thinking about putting together another section on this site so I can put up some JavaScript classes and things. I have quite a few PHP things I might be willing to share too.

So yeah, maybe more update this weekend. Who can ever tell with me?

Update: I added a photo of me to the About page. Check that. It’s the newest in a brief range of photos designed to counter how shockingly anti-camera I am. I’m actually a lot happier than I look there too.

Work has been crazy

Posted on April 18th, 2008 by Marc

And for that I blame the lack of updates to the site.

I’m sorry. Basically, I’m running on to finish the beta version of Arcadia. ‘What the hell is that?’ I hear people cry. It’s a professional, simple CMS for internet marketers. It’s a salesmans wet dream. It’s beautiful. It’s targeted directly at people selling ebooks online. I’ll make an announcement here when it’s ready for sale.

What else has happened? I’ve bought an Xbox, watched in delight as Ipswich gained total bragging rights over the Scum (Own goal! Oh my, Norwich.), finally ordered new Swineshead pickups for my guitar, and made up my mind to stop pussy-footing around and learn Ruby!

That’s all. Once the crazy stress of Arcadia is over, I’ll be developing the all-new site, updating Defraction, and releasing our flagship product. Woo woo.

Also, I’ve caved in. My Facebook dependency is growing - add me.

XHTML and asskickery

Posted on February 24th, 2008 by Marc

“Another XHTML lesson?” scream the masses. “Yes, yes indeed” I reply. Why do I think that we need another one going on? Because I would absolutely hate to learn now, with so many conflicting opinions flying around, browsers to contend with, semantics finally playing a larger role. In general, the job of a web developer is getting harder.

This ‘lesson’ is going to warm us into things gently. I’m going to spout more opinion than fact - but opinion which will be beaten into your brains by the end of the whenever-it’s-done long series of lessons - and explain where we’re going with this. I’m also labouring under the impression that you have time on your hands - I doubt you’ll be able to skim this. I’ll try and keep things concise, just be warned that some things invoke such a powerful emotion in me that gesticulating is the only way forward to express my distaste.

But before you even dive into throwing together your first doctype and your paragraph with ‘Hello world’ in it, you need to think about these things, so let’s crack on. (Slight warning - if you’re very new to this, you might not get some of the words used, but they’ll be covered, don’t worry.)

Semantics

Semantics are, as in language, bloody important. They are what dictate the meaning behind a word, or in our instance, tag. It’s vitally important to remember that these days, it’s not just browsers running through the content on the internet. We have spiders, text readers, mobile phones, PDA’s, aggregators and more to contend with. Every bugger and his mate grabs content from the internet now.

So we need to remember that we can’t give something meaning simply by how it looks. What if a visually impaired user comes along? They may not be able to see italics, but if something is in an <em> tag then that’s emphasis, which can be placed on the phrase by their screen reader.

That’s perhaps not the best example, but this section is tied in very heavily with..

Structure

Because structure can give a document excellent semantic meaning.

Imagine a book. You read the title, and the chapter title, a section title, a shitload of paragraphs, and then get to another section title. Pretty important structure huh? It’s exactly the same for websites. Given that most (All? Catch my several-year-old take on that) websites are there to give information, they’re pretty similar to books. And we’ve had these semantic, structural tags since the internet was dragged kicking and screaming into the world. <h1>, <h2> etc.

Headings are vital. Break up your document with them. Wrap your content in paragraphs rather than just divs. If you have your site logo, is it an <img />? No, it’s not - it’s a styled <h1> if you think about it, because the image itself has no meaning towards the actual content of the page.

The best way to check this out is to turn off CSS on your website. You should very easily be able to follow the flow of your document, and there shouldn’t be anything getting in the way like unrelated (i.e. layout-specific) images.

The Evil Stuff

Ok, so you’ve got the picture that we’re all cuddly with semantics and document structure in 2008 right? Well, let’s take a look at the kind of crap we don’t like to see any more, because it hurls us back 5 years into a world of iframes and tables. What will we absolutely never, ever, under any circumstances be using in these lessons? (Feel free to skip to the next area if you’re clued up about this kinda crap.)

Tables for layout

Remember that section on semantics? The lovely <table> is, as you would expect, in no way at all semantically correct for wrapping an entire site. They’re slow to load… honestly, I don’t think I can reiterate this any better than it’s already been done.

Internet Explorer

I know this has been done to death, but I want to talk to learning developers. If you’re using IE to develop, you’re gonna have a really shitty time. Get Firefox, (Nothing against Opera and such, but thinking about Firebug here..) and then go get Firebug and the Web Developer Toolbar. When you get into JavaScript especially, it’s an absolute must to have these tools. Remember people, we’re here to create our sites to standards first and then hack it into IE compatibility. Not the other way round.

Frames

Quite literally, it’s 2008. They’re ugly, bad for SEO, inconsistent and a bitch to maintain. Nothing more to be said.

So what do I need?

Having established what you absolutely don’t need, what do you need? Well, I get laughed at in IRC because of my die-hard defence of Adobe’s Dreamweaver. I love it. It’s quite pretty, runs fast, has built-in FTP, etc etc. I’d love to use Aptana and others, but they’re just not aesthetically pleasing enough. I do not ever use the ‘Design’ view, it just has a very nice ‘Code’ view, and loads of handy features (Which I’m sure the others have, but like I said, on aesthetics, Dreamweaver is made of win.)

So if you’re a noob or an Adobe-fanboy like myself, you can’t go far wrong with Dreamweaver. Free alternatives of course include Aptana (Which I may myself try and use. Again.) and the ever-awesome Notepad++.

If you’re going to go into PHP and MySQL, which I fully intend to write about as well, you’ll need to grab hold of a local server for development - I personally use WampServer because it includes everything in a 30-second install process.

If you want to put your finished stuff on the intrawebz, you’ll also need an FTP client. FireFTP? SmartFTP? There are thousands.

And of course, you’ll need a layout. I’m not going into design, because that’s totally not my field. I can do it but my skills aren’t exactly ‘leet’.

The next steps

That’s it! Get all your stuff installed and sorted out. Then hang the hell on and wait for part 2, where we’ll actually get into some damn code. I’m going to provide the full process of coding up a sample layout, and maybe sprinkling some MooTools goodness in there as well.

Linux!

Posted on February 24th, 2008 by Marc

Hi guys,

Well, thanks to jinzo in the wondrous MooTools IRC room, I was cajoled into dual-booting Ubuntu Linux. So now I can I can blog about that too.

I’m currently running Ubuntu 7.10 (Gutsy) on my gorgeous quad-core pc. I ripped a hard drive out of my 3rd pc so I guess I’ll have to buy another one. Another £30 gone, haha. I still have Vista for work purposes (Photoshop doesn’t run under WINE!) so I’ll still be on that too.

I have everything set up - surround sound, my dual screens - so maybe this could turn into my full work environment. It depends on the IDE’s available really, and if I can hack together a way of making Photoshop run (I’m sorry, but GIMP is just out of the scope of what I can cope with).

Very exciting times!

I’ve started writing the first part of a series of lessons/lectures/rants I’ll be doing, called ‘XHTML and asskickery’. 10 points and an e-cookie to anyone who guesses what it’s about. I’ll release that as soon as humanly possible. It’s up now!

I must also apologise for the lack of updates and such here - it’s difficult to find things to write about, and I don’t wanna talk about my oh-so-exciting life too often. Haha.

Good night world :)

Oh, and I apologise to anyone using IE6 that my site breaks so heavily, but honestly, you shouldn’t be using IE6. There’s not much excuse. I don’t support it for personal projects. Naturally I do for work, but I’m not gonna waste a few hours of my time wondering why my header isn’t black. Get Firefox.

Ohh Ipswich

Posted on February 9th, 2008 by Marc

Just got back from the Ipswich game. Bloody Watford. What the hell?

Our first home loss this season. In a way, it’s good that it wasn’t to someone horrendous (Colchester?) or - god forbid - Norwich. Either way, it was an utterly ridiculous game. There’s no way the score was right - it should have been so much higher.

I’m concerned about the people we’ve signed though - I’m not so impressed with Norris, and honestly Bywater scares the hell out of me.  What’s all this hanging around halfway up the pitch, and giving away corners from a touch? Benefit of the doubt cos it’s the first game he’s played at home but wow. Interesting.

Alexander used to terrify me, but I loved him - he made some epic saves.

Anyway, I’m going to weep now. Oh, and the actual post was to say that I’m planning the first series of tutorials - I’ve got to find a layout I can code up as an example and give away. I wanna cover the full layout-coding process, from slicing up the layout right down to progressive enhancement with a little smattering of Moo goodness.

Watch out for it, and cheer for Ipswich on Tuesday!!

Hello world!

Posted on February 6th, 2008 by Marc

Good evening world. I’ll get on with this site soon. I have an on-the-fly JS/CSS compressor to write first.

Hello! Wow. Ok. Erm.. welcome. Welcome to CodeSleepRepeat. I’m Marc, and I’m pretty new to this whole blogging thing. Honestly, it’s not really occurred to me that anyone would be interested in what I have to write. You can read a bit more about me before we go on our journey through code and design if you fancy it.

In brief, I’m a web developer who’s just last year gotten out of high school and now runs me business.

So why the blog eh? I think my position is pretty unique, basically. I don’t know many people of my age trying to make it in this industry (I mean full-time, I know there are thousands of talented devs in this kind of age bracket). I also figured it’d be good to get a presence on the internet - I spent all my learning years in near silence, and I guess now I’ll be able to share some knowledge.

So give me a little bit to get started. I’ve got a few things planned here, such as some video rants posts and a much-requested series of tutorials on coding xhtml and css in a coherent and valid way.

Thanks for stopping by!