* Posts by Alastair McFarlane

63 publicly visible posts • joined 3 Dec 2008

Page:

Microsoft releases JavaScript alternative

Alastair McFarlane

Re: What...

Yes, admittedly I can see a scenario where you just *cannot* make the scompiler produce the code you want, but I guess that depends on what parts of what is generated is non-browser compatible. ost of what you write (in theory!) is going to be plain ol' Javascript, and that should (in theory!) make it no *harder* to write for compatibility.

Of course it won't be any *easier* either...

Alastair McFarlane

Re: Actually...

Agreed. However what it doesn't do is actually guarantee that you're using types correctly. You still use var to declare variables, but you can then specify a type using additional syntax. I don't know whether the compiler can be made to reject code which misuses variables (for example placing an integer in alert() causes an error - the function is meant to accept a string), or whether it's more intended to display warnings, but I do know that the playground online just compiles the code anyway, regardless of misused variables.

Hopefully at some point they'll set up the ability to save your own examples on the playground, a la jsfiddle, which would make it easier to explain these things!

Alastair McFarlane

Re: Prevent these features being added to javascript

Obviously the cynic in me doesn't automatically trust someone from MS tell me that they're supporting standards, but I *did* get the impression that they wanted to help rather than hinder. The direction they're taking has reportedly been chosen to try and keep them in alignment with ES5 and the upcoming ES6, vis their participation in the standards group. Additionally, none of the feature they're adding actually form part of the language. Because it compiles out to produce pure JS at the end, it means they can develop along whatever lines the language takes. If, somewhere down the line, ES introduce "proper" OO, or some sort of static typing (not that it's likely, or desirable), the TS compiler can just output those from the proprietary syntax they already have. There's nothing there that prevents the feature form being used in JS. In theory at least!

Alastair McFarlane
Thumb Up

I actually think it looks useful

We saw this unveiled by Shanku Niyogi at MS office in Edinburgh last night, and I was quite impressed.

Admittedly I've never attempted to use CoffeeScript yet, but as someone who deals with a fairly large JS infrastructure every day, I can see the advantage of developing in an environment with pseudo-strong-typing and class/module support. I will of course be looking into the competition, but from an initial glance it looks like CoffeeScript is just syntactic sugar, rather than IDE-style type checking and warnings?

Obviously object orientation isn't suitable for every project, but using TypeScript I would be able to use it or not use it, and the compiler just wouldn't say a thing. There's an online compiler using Microsoft's new code-editor-for-the-web at http://typescriptlang.org.

DARPA issues call for notions on Starship-for-2111 plan

Alastair McFarlane

Important things to bring, to a symposium or to space...

Don't forget the telephone sanitisers, hairdressers, marketing executives, etc.

Apple sues Amazon over 'App Store' name

Alastair McFarlane
Heart

@Chris Hatfield

They just want to have fun (fun, fun, fun).

But which seat? Which?!

Videogame TRAINS TERRORISTS, yells pundit

Alastair McFarlane
Coat

@g e The guys at Cern/LHC don't play half-life...

http://www.popgive.com/2008/09/gordon-freeman-spotted-at-cern.html

Mine's the one with the crowbar in the pocket

Tory MP accidentally endorses... German pr0n site

Alastair McFarlane
Paris Hilton

Really? No-one's said it?

"Working hard for Horsham"

T-Mobile imposes swingeing cuts on fair use data limits

Alastair McFarlane
Unhappy

No one told me...

As a T-mobile customer, no one has told me of this impending change which would certainly signal the end of my association with them.

Where did this story break from? I'd like to see if I'm affected...

Hasbro unleashes 'Spastic' Transformer

Alastair McFarlane
Alert

Mario Party

Mario Party did the same thing a couple years back, they called you "spastic" if you did badly in a particular game (or something like that), and there was outrage when the game was released here.

Firefox 4 preview knocks back Jäger shot

Alastair McFarlane
Thumb Down

Peacekeepr benchmark

Crashes part-way through the peacekeeper benchmark for me...

Beeb reinstates teaboy in Pestogate scandal

Alastair McFarlane
Paris Hilton

The BBC

Somehow, despite not having watched any TV for the last few days, the BBC have entertained me almost every day this week. Thanks, BBC, and El Reg, for this tremendously funny saga. I have no doubt that "Pestongate: The Costume Drama" will be coming to BBC2 before the end of the year.

(I'll bet Paris has let a few teaboys take pictures...)

Beeb sacks teaboy, hires Press Association

Alastair McFarlane
Joke

Now *this* is a good use of my license fee

It's better than their repeats and more entertaining than much of their original programming. I fully endorse this move by the BBC, clearly designed to entertain their viewers.

John Lewis JL22LCD HD

Alastair McFarlane
Thumb Up

Linsar - correct

Yup, I worked in Audio & TV while I was at university (graduated last year), and I can confirm as above that the Washing Machines (and white goods in general) are Electrolux, the digital radios either Pure or Magicbox, depending on the range, and the TVs Linsar (the same company, funnily enough, as Avtex).

Airport plods seize man with electric vibro-pleasure shoes

Alastair McFarlane
WTF?

"...stop anyone carrying anything containing a battery."

Of course, you wouldn't *expect* someone to have a battery in their shoes, now would you? Seems a reasonable thing to look closer into.

Parliament to turn itself into computer game for young ones

Alastair McFarlane
Coat

How about...

A game in the style of "The Sims", but with moats and bird houses?

The Whips?

Ten Essential... Netbook Accessories

Alastair McFarlane
WTF?

Well actually...

That was my own and one of my fellow (equally technical) employees view after much testing on both customer returns (they were not happy that the two did not work together) and the brand-new units (to confirm). As a disclaimer I feel I should point out I am no longer working in retail and am in my own field (software engineering), and therefore no longer (not that I ever was personally - come to me and you got honest advice) biased towards selling better products.

If you noticed, there were a range of problems I mentioned, and of course we had firstly replaced the playback software and codecs.

Sounds like someone has a *major* beef with retailers...

Alastair McFarlane
Boffin

DVD on netbook

Working in a major retailer during what shall henceforth be known as "the rise of the netbook", I thought I should point out something we noticed. Connecting an external DVD drive, while fine for data use, was not so useful for DVD viewing. In practice, the reduced spec of the unit itself resulted in either no playback at all, just the audio to play back, or just the video.

That was on the Windows XP netbooks. Mine (one of the old AOA-150 Linux machines) can run youtube video and the like perfectly, something the XP ones could not, but I have never tried to watch a DVD on it (that's what the mammoth desktop is for!), so the Linux unit may perform better.

Sony's PS3 firmware update shows how retailers can be exposed

Alastair McFarlane
WTF?

Sale of Goods Act

INAL, but don't the goods have to be FFP (fit for purpose) at time of sale? (which presumably they still were)

After 6 months doesn't the consumer have to prove that they weren't FFP at that time?

UK competition authority probes Amazon

Alastair McFarlane
Stop

John Lewis

Speaking as a former employee, I would like to point out that John Lewis do *not* match prices in non-physical stores.

Asustek opens curtain on desktop 'supercomputer'

Alastair McFarlane
Boffin

1.1 teraflops

"the ESC1000 delivers 2.8 teraflops at single precision and 234 gigaflops at double precision"

You *could* get 1.1 teraflops by adding those two together and dividing by two...

I mean an average for that sort of thing would need to be skewed towards whichever it did more often, but a straightforward mean would give you the figure required.

Historian slams 'absolutely crazy' UK time zone

Alastair McFarlane
WTF?

But, but...

Aren't timezones defined with an offset from GMT? (or UTC, same thing)

So if GMT changes to be an hour later (ie. most of the country stay in BST - presumably no longer so-called), all the timezones will have to rename?

Also, timezones look like longitudinal bands, surely splitting Britain in half *latitudinally* (as you'd be doing by leaving Scotland in a different zone) would just make things even *more* confusing?

Am I the only actually looking *forward* to an extra hour's sleep this weekend?

Magpies hold funerals for fallen feathered friends

Alastair McFarlane
Coat

@Dan 10

Wouldn't that be "Nest in Peace"?

I'll get my coat...

BBC Trust boots 'Open iPlayer' plans into touch

Alastair McFarlane
WTF?

Don't know if anyone noticed, but...

when they first launched iPlayer they were told they couldn't fund it using the license fee as it was available to non-license fee payers as well.

So where does the license fee and value for the sap^H^H^Hpeople that pay it even enter into it?

Palm Pré arrives in Blighty

Alastair McFarlane
Heart

@Jimmy Floyd

I too am looking to replace my phone.

I'd far prefer an android phone, but since I'd also really like a capacitive screen I have rather fallen in gadget-love with the HTC HD2 (Windows Mobile).

Proles told to get online to save economy

Alastair McFarlane
WTF?

"Beta"

Love the "Beta" stamp on the navbar of that website. Really brings it in to line with other modern websites.

Sony claims 'lightest notebook' crown

Alastair McFarlane
FAIL

@Stoneshop

I agree, from a common sense point of view.

However, Sony did the same with the 'P' series - those stupidly small things with a small keyboard and only a nipple-mouse. They outright refused to call them netbooks, presumably to allow them to be priced at £800, but as a result shot themselves in the foot as MS wouldn't give them XP unless it was a netbook. As a result, the 'P' series laptops were tiny, underpowered things running Vista.

They did *not* perform well.

I see the same thing coming with these. Windows 7 may carry less bloat than Vista did, but on an Atom processor I expect them to be pretty slow, and at that price, they'll struggle to sell them.

Google maximizes minimalist homepage madness

Alastair McFarlane
Unhappy

Can't get it to work

Loaded google.com (which quickly transforms into google.co.uk - that'd probably break it), pasted the script into the address bar and hit enter, then reloaded the page. No change. I also tried changing the end of the script to read .co.uk instead of .com - still nothing.

Tried in IE and in Firefox.

Toshiba reveals Cell TV specs

Alastair McFarlane
Go

@Owen Sweeney

Actually Canon are still researching SED:

http://www.canon.com/technology/canon_tech/category/future.html

First prison sentence for extreme porn

Alastair McFarlane
Stop

@King Jack

Surely if one was prosecuted for that, it would be under longstanding Child Porn laws, not the new(ish) Extreme Porn law?

I agree with your point though.

Alastair McFarlane
Thumb Up

@AC 12.29

It's amazing how often that solution presents itself

Alastair McFarlane
Paris Hilton

@h4tm0ny

In theory, yes. Looking at an event in the future, one would indeed prefer not to die. However, after the fact, you're not likely to care after you're dead...

Alastair McFarlane
Paris Hilton

@Chris Collins

The horse is dead when eaten though...

I don't know how they're killed, but I assume it's not particularly violent, much like killing a cow for food in this country.

I'm steering clear of an opinion on horse porn (not my cup of tea though), but that doesn't seem a great comparison...

Paris? Well...

Facebook kills 'Kill Obama' poll

Alastair McFarlane
FAIL

@Steve 26

Surely that's a bit like asking "Is The Register a website?"

I mean, asking if he's an idiot is fair enough, would get a good split in results I think (unless you offered "yes" and "yes" as answers, obviously), but asking if he's one-eyed and Scottish just seems a little unnecessary...

Bletchley Park earns first ever lottery grant

Alastair McFarlane
Headmaster

@Absent

I had to read that several times...without a "-" in "grant-making" I felt like you were implying something else about them...

Inmate hacker locks down jail computers

Alastair McFarlane
WTF?

Bought on ebay?

Did he just make eBay purchases with phished details?

My dad buys and sells on eBay all the time, but I wouldn't expect *him* to be able to set up a network TV stream...

iPhone App Store tops 2,000,000,000 downloads

Alastair McFarlane
Jobs Horns

Re: BS

I know plenty people with about the same.

However, I also know a couple people with *way* more than that. Enough to up the average that much? I wouldn't care to guess, but there are certainly people who go to town on the app store...

Facebook turns out light on Beacon

Alastair McFarlane
Headmaster

@Solomon Grundy

I like your style. I've exaggerated but never *that* much. Good idea!

There's no apostrophe in "ads" though (sorry!)

Obviously pedantic grammar nazi alert

Vodafone joins the iPhone throng

Alastair McFarlane
Thumb Up

Still won't buy one...

As I'm not much interested in owning an iPhone. However, it's great that O2 have finally lost the exclusivity that made them so smug in the past.

'grats to Orange and Vodaphone

iPhone voted UK's 'coolest brand'

Alastair McFarlane
Heart

Aston Martin beats iPhone

As far as I'm concerned, Aston Martin beats iPhone hands down. Admittedly there's more chance of me affording an iPhone than an Aston, but I can always pretend.

Also, kudos for that Bootnote. Made me laugh a lot.

Post Office will snap and dab for ID card scheme

Alastair McFarlane
WTF?

@shaunm

Because *she* spent a day at the local post office with a pack of rolos?

Labour to push for broadband tax before election

Alastair McFarlane
Heart

@Anonymous Hero

I agree with you, and wasn't entirely happy about defiant's tone either (I live in Edinburgh).

However, I suspect the "large Scottish leadership" he referred to is, in fact, Gordon Brown.

There's water on the Moon, scientists confirm

Alastair McFarlane
Coat

H2O, or H20?

I was entertained to read the Beeb's article on the same topic, which stated that there were "thin films of H20"

Yep, that's H-two-zero. Typo I'm sure, but it still provided me with a chuckle.

Sony and BBC clash over PS3 problems

Alastair McFarlane
Paris Hilton

Sony

I'm not defending Sony, my personal belief is that the PS3 should last longer than this. Of course the *vast* majority of purchased units *are* lasting longer than that...

Paris' electrical goods *never* last long enough

Alastair McFarlane
Megaphone

Sale of Goods Act

I'm fed up of people misinterpreting the Sale of Goods Act and its EU regulation counterpart, and thinking they have more rights than they do.

The EU provides a two eyar period of "protection", the SOGA extends this to 6.

This period is the period under which you can claim that your goods did not conform to contract at time of purchase. Contract here means that the goods are "of a reasonable quality" and (that old phrase which is also mis-used) "fit for purpose".

However the burden of proof still lies with the consumer outwith the first 6 months. If you take a product back within the first 6 months of ownership and claim that it did not conform to this contract, then it is up to the retailer/manufacturer to prove otherwise if they wish to dispute it. Outside of this period, however, and up until the end of the 6 years provided by the SOGA, the consumer must prove that the goods *were not* fit for purpose or of a resonable quality, or to go through a claims court if you choose to.

Now of course "reasonable quality" is not well defined in legislation, but electrical goods from *most* of the main brands (steering clear of any blanket statements here) these days are indeed of a reasonable quality and fit for purpose. maybe if you bought Technika from Tesco, you might be in with a chance, but not usually otherwise.

This period is *not* a guarantee period, and neither the retailer nor the manufacturer is under *any* obligation to repair/replace outside of the guarantee which they do offer.

Students get deep Windows 7 price break

Alastair McFarlane
Pint

@Mark65

Ahh Lexmark. How you've been the bane of anywhere I've been that used you, Linux or no-Linux!

Shall we drink to Canon, HP and (perhaps to a lesser extent) Epson?

Alastair McFarlane
Paris Hilton

@Sarah Bee

CAPS is the way to go!

I may not have thought that, but you have to admit that would have been *really* funny if they had (oh, and terrible of course)

Paris does things loudly...

Alastair McFarlane
Joke

@AC 9.59

Students spend 4 years getting pissed and having sex? Why did no one tell me this before I graduated this year??? Dammit!

Street View stalks Swiss data protection bureau

Alastair McFarlane
Thumb Up

@AC 15.33

Veyr interesting, I didn't know that. Thanks!

New gizmo means working electropulse rayguns at last

Alastair McFarlane
Joke

@Alex Rose

Yeah that's what I was going for. Please don't point out my lack of question mark though...it was a mistake, honest!

Page: