Microsoft Flight Sim is awesome

microsoft flight sim.png

Very exciting day yesterday. Installed Microsoft Flight Sim. It only cost me one pound to get it. I’ve signed up for Xbox Game Pass for PC which will end up costing me four quid a month. Total bargain. Although I guess I should also factor in the cost of a larger SSD drive to hold all the games I’m now going to download….

The game itself took a while to download, what with it taking up over 120 Gbytes. Apparently you can buy it on 20 disks if you want a physical copy. It. Is. Awesome. The install process took ages and the game itself takes a while to get going. But once it is running it is fabulous. The views inside and outside the cockpit are very impressive. You can fly anywhere in the world, although it might not look quite as you remember. The Humber Bridge you can see above looks like it needs a bit of work. You can just see the shadows of the towers that should be there at the bottom of the screenshot above.

I’m not very good at flying the plane (the wings came off shortly after I took the picture) but I’m having great fun. I’m using a wired XBOX controller which gives me all the control I can handle just at the moment. We’re planning our first group flight soon, which should be fun.

If you are interested in flying, or just seeing the world, you should have a go.

Learning from your kids and their kids

fixed.png

Many years ago I took my kids to the university to “show them what daddy does for a living”. This turned out to be sit in front of screen pressing keys with the odd bit of shouting at people, which is pretty much all I did at home, so I’m not sure they learnt much. But I learnt a few things from them. Number one daughter picked up a mouse and pressed a button on it. The screen in front of her immediately sprang into action. Brian, who was watching, was very impressed. It seemed that nobody had ever thought to press that button before.

I was reminded of this when showing number one granddaughter my venerable Twilight Zone pinball machine. She leaned one of the buttons and promptly dropped the machine into “In the Zone” mode which triggers all the options and releases all six balls onto the playfield at once. This is something I’ve not been able to do in the many years I’ve owned the machine.

I’m not sure what to show her next time she visits.

The end of the polite cough

This nasty little virus has a lot to answer for. Including the death of a British tradition, the “polite cough”. In times gone by if a British person wanted to attract someone’s attention - perhaps it might be a waiter, or a a person who has cut in front of you in a queue, or someone who has parked their car on your foot - you would issue a polite cough to open up the sequence of apologies that would inevitably follow: “I’m so sorry that I left my foot lying around on the ground where you could drive over it” - etc etc.

Nowadays a polite cough has every chance of having you wrestled to the ground by a couple of burly folks in hazmat suits. Oh well. At least we’ve still got the “disapproving look” left.

Hull University Rocks

UniNext.png

Hull University was very good to me. It paid off my mortgage and helped me get my kids through college. Admittedly I was there a bit longer than I planned. Went for a three year degree course and ended up staying for another 35 years, finishing up as a lecturer in their wonderful Computer Science department.

I left a few years ago but I’m proud to be a fellow of the university and I’ve been able to watch them try to respond to this awful pandemic thingy. One thing I’m sure of is that all the staff will be moving mountains to make things work going forward and they’ll do it with the best interests of the students. Because they always did.

This is a Hull Computer Science speciality. Three Thing Game. If you fancy having fun writing games you form a team and you get given three things to base it on and a weekend to write it. I took this picture in 2013. Quite a few of the people in the shot are now out there making games of their own. You can find out more about it here. It’s hilarious whether or not you want to end up a game developer.

If are looking for place to study, don’t for get Hull. Lovely place. Lovely people. Find out more here.

Killing your favourite children

boats.png

Ages ago I went to a creative writing seminar. It was really interesting. One of the points that they made was that sometimes when writing you have to “kill your favourite child”. What they meant was that you might have a lovely chunk of prose that you are very proud of, but it just don’t quite fit into the context of the piece you are writing. There are two things you can do. Spend ages trying to make your wonderful words fit and fail. Or just get rid of them and move on.

I was reminded of this today when I was writing Chapter 9 of Begin to Code with JavaScript. I’m talking about software objects and I’d written a lovely piece of code that used a schema to create objects and properties on the fly. You can do this kind of thing in JavaScript and its awesome. However, I couldn’t make the example fit into the rest of the chapter. I spent far too long trying to create a solid context, wrote a few pages and then stood back from the piece, took a long hard look at it and then threw the whole thing away. What is left is much better, and of course I’ve not completely discarded the stuff. I never throw anything away.

Sometimes you have to ditch something that you really like because of your loyalty to the final result.

Hull Rocks

Walkway.jpg

They were having a discussion on Radio Humberside this morning about the future of Hull. They asked me to contribute some thoughts. I made some notes (most of which I never used). So I thought I’d pop them on the blog. The question posed was something like: “As a person who has lived in Hull for a while, what do you think of the state of the city and potential for the future?”. These are my answers in bullet point form:

  • There are amazing things going on at the Fruit Market . I’ve been involved with c4di for ages and their building is now fully occupied with people making stuff and doing things. With more coming.

  • We’ve got super fast fibre networking, something which other places have just started to realise might be a good thing.

  • We also have a city wide LoRa network which is free for anyone to use for connected product development and a couple of local companies, KCOM and Connexin, who can provide you with a paid network service you can use to commercialise your solution.

  • Humber Street is awesome. The new pedestrian bridge will make a huge difference to access to the area.

  • We must give give local students a trajectory that encourages them to say in Hull when they graduate. As I said this morning, “It’s cheap and nice”, a killer combo. Students tend to be quite conservative about where they go in their local area. We need to encourage them to take a look at the lovely places we have where you could build a good life..

  • Hull Makerspace is a great development which lets anyone from the community explore technology.

It’s a crying shame that this nasty virus has come along just as we were getting up speed with all this, I really hope that progress is not knocked too far off beam by it.

Indoor thunder with Norns

norns shower.png

I’m slowly getting my head around the Norns device that I built on my birthday. It works by running Lua scripts that talk to SuperCollider engines to make sounds. There’s also a sound sampler and sllcer and you interact with it via your browser. It’s great fun, but at the moment I’m using it to make the sound of rainfall thanks to the lovely Shower app. I’m trying to get my head around how such a short piece of code can produce something that sounds quite realistic. And very relaxing.

Adventures in function names: saveItem or storeItem?

lego functions.png

I’m writing Begin to Code with JavaScript at the moment and I was struck with how the choice of function names can be confusing. I’ve made the point that a good way to come up with a function name is to make them out of a verb and a noun. So storeItem sounds like a good name for a function. Store the item. What could be simpler?

Unfortunately this has the potential to be confusing. It’s because the word store can be a verb (do the storing) or a noun (a store that contains things). So storeItem might mean an item from the store. My strong advice is to try and pick unambiguous verbs, which is why I much prefer saveItem.

Perhaps I’m overthinking this (it has been known) but I’ve been surprised how many times I’ve picked confusing names for things based on distinctions like these. One of the great things about modern development is the ease with which you can rename identifiers, so if you do decide that the name you first came up with is confusing you can change it.

New Begin to Code with JavaScript Podcasts Available

Do you want to learn JavaScript the fun and painless way? Then go forward 200 years into the future when they can plug something straight into your head. For now though, you could do worse than investigate the Begin to Code with JavaScript podcasts for my new book I’ve just uploaded. They are packed with jokes, music, song, dance and misleading product descriptions.

You can get a draft of the book for free and watch screencasts where I code things live that nearly always work. Search Apple Podcasts for “begin to code with JavaScript” or listen fresh from the web at https://www.robmiles.com/jspodcast