Failing to grok React

Failing to grok React

on 1 March 2015

I want to use React all the time. I have a complex multi-step order form that it would be perfect for. I have a client-side image processing script that would decompose wonderfully into React components.

But I just can’t get my head around the requirements. I end up reverting to jQuery soup. I’d love a book on React that can take me from the basics (which I’ve mastered) and beyond building a comments list.

It’s frustrating because every time I watch a video from React Conf it makes me fire up VIM and start coding, but the end result looks a complete mess. And I’ve not idea where to even start with testing. I probably need to improve my overall javascript skills.

Bitcoin steps forward

Bitcoin steps forward

on 20 February 2015

We’re now able to accept Bitcoin at How a Car Works. Thanks to Stripe’s simple integration it just took one line of code. I just tested it and the process works beautifully for both customers and vendors. It’s quicker, neater and cheaper than card payment. Making a Bitcoin payment doesn’t feel so natural just yet, but that’s because of habit rather than any fundamentals. There’s nothing natural about typing a non-changing 16 digit number and a date into a form.

There’s also a fundamental difference. If I give my credit card details to someone I am allowing them to take whatever sum of money they choose. I’m not actually making a payment, I’m allowing them to take a payment. They can tell me they’ll take $10, and actually charge me $1,000 - I won’t know until I check a statement. With Bitcoin I choose the amount that I ‘send’.

The price of Bitcoin has been falling steadily for eight months, but in that time there have been some big steps forward for adoption. I’m excited.

The World of Electronics

The World of Electronics

on 17 February 2015

I’ve been continuing my arcade-in-a-coffee-table project over the past week or so. I’ve also been thinking about a simple motion tracker that can transmit movement information to a phone over Bluetooth. Essentially the idea being that it can be attached to anything, and the phone can then interpret the raw motion data into usable information. It might be attached to a tennis racket, for instance, and used to track swings, impacts and forces. Or it could be fixed to a barbell to track the motion of a lift. Or to a punchbag to count and measure impacts. The underlying principle is the same for all these items.

I’m astonished at how accessible electronics has become. On every level. The components are financially affordable. There are tutorials, write-ups and source code that can be combined into the bases of almost any project. Suppliers are open not only to the public, but to beginners.

There’s so much choice and opportunity that it’s hard to even know where to get started. I spoke with some robot builders last week and one of them talked about it being a golden dawn for robotics. I agree entirely and I can’t wait to see what comes after drones.

React

React

on 15 February 2015

I’ve been exploring React over the past few days. It’s always hard to determine which projects are just fads and which are here for the long term. That said, I’m going to predict that React will be in the league of jQuery and Twitter Bootstrap within another year or so.

It has a good balance of simplicity, power and flexibility. I have Rails projects that don’t need a heavy JS framework like Angular or Ember, but which definitely need some client-side jazziness. I’ve a feeling that React will fill that need neatly.

Piracy & Me: 1996 The Playstation

on 14 February 2015

We’d never had consoles in my family. They didn’t make much sense when we had a computer - which could do applications (and I suppose also run pirated games, which was almost unheard of for consoles).

Then the playstation came along. Not only was it vastly more powerful than any computer I could hope to own, within a relatively short space of time it could be chipped. I remember early on there was some complex process involving the inner ink-filled part of a plastic Biro, which had to be braced to trick the box into thinking the CD drive was closed. The PS would be booted off a genuine disc and then hot-swapped for a pirate. I can’t remember the exact process because reliable chips came along that just bypassed the entire process perfectly and reliably.

I feel like this is the point where piracy became mainstream, and modding became commercially viable. Chipping Playstations wasn’t illegal (and still isn’t), so people were advertising completely openly. You’d drop your PS off to a guy, he’d chip it and you’d collect it. To this day I don’t know what was involved but I’d guess it was soldering a few wires onto the appropriate points on the motherboard. There was always a fear that a PS could be destroyed in the process but it was a gamble that all my poorer friends were willing to make. An investment of £50 in chipping brought the cost of games down from £40 to £5, or even lower in bulk.

At the same time, pirates were seeing the cost of blank CDs drop to 10p each, CD burners plummeted in price (but not enough for consumer use, and even then copying a PS game wasn’t completely simple), and finally there was a mass-market product that could be reliably copied and which had serious value. Before this the most profitable things to be pirated were VHS videos, which were about £14 and the copies were renowned for being shit. Or music CDs, which were about £12 for an album - but no-one wanted to pay £5 for a CD when you could tape someone else’s or off the radio. But Playstation games were about £30-45 in the shops if I recall correctly. I think towards about 1999 we were buying 4 games for £10.

The creation of a market in Playstation games also made it easier to find PC CDs. More people had computers, and it wasn’t any more effort to stuff a few Blobbies into a holdall full of games.

We had about 30 or 40 Playstation games, including Tomb Raider and GTA which I’ve bought (and hardly played) on almost every platform I’ve owned since I’ve had money. Games may have been heavily pirated at the time. but a fan is a fan, and people like me now have sufficient income to buy sequels and remakes that pay off that original gold GTA disk many times over.

This was when piracy became a criminal enterprise, rather than something enthusiasts were doing for a bit of cash. Initially CDs were openly sold and displayed at all markets and car boot sales around Manchester. Eventually the police and trading standards rounded up a few people and the council-run markets banned any sort of pirated (or ‘backup’) CDs. The odd rogue would have a bag full of CDs for regulars in the back of his car, but the bulk of the trade moved to privately-owned markets, and the streets around bigger markets and car boot sales.

On the streets, teams would set up pasting-tables and display their wares, restocking from a hold-all bag. The more organised employed a look-out with a walky-talky at the top of the road. One car boot sale had a perfect location on an industrial estate with only one point of entry that was easily observed. Occasionally there would be a scramble and everyone would be legging it in every direction - I only saw this twice. Some weekends it’d be a ghost-town because everyone had been rounded up (or thought a rounding up was imminent).

Meanwhile, one market in Manchester deserves special mention for just not giving a fuck. Grey Mare Lane Market which was still running until a couple of years ago, was a shanty town of hand-built stalls, made from rotten plywood and various tarpaulins, seemingly held upright by rusty barbed wire and the occasional nail. The ground was largely mud, interspersed with some concrete slabs. I loved it then, and I love it now. Every Saturday, and on two or three days in the week, it’d be open for second-hand electricals, fresh fruit and veg, knock-off clothing, fake perfume and aftershave, various bits of furniture, and Manchester’s widest range of pirate CDs. The closest building to the market was Grey Mare Lane Police Station, one of the biggest police stations in the city. I think the reason pirate CDs seemed to survive was that there was so much other illegal stuff going on to buffer them.

By the time the police had arrested all the guys selling smuggled cigarettes out of bags, the vans were full and everyone else had disappeared over the back wall.

Newer posts Older posts