Rust, week 3

This week I are mainly been liking... The Rust books are written using rustdoc - I like the 'eating your own dogfood' philosophy, and the Rustlang folks are certainly eating it. Attributes... a clean way of doing meta stuff in your code.  New Rustacean podcast - fabulous podcast about learning Rust. Started listening to these during my daily commute - grab every minute you can to learn new stuff. Really good talk about driving a GUI system with Rust by Raph Levien

Rust, week 2...

The continued, albeit slow, adventures of someone who's been coding for 37 years and is now learning Rust... Things I like about Rust, pt2... std::option::Option - no more Null... force error check at point of creation Inbuilt testing framework RustFmt - code formatting ! Everything is on Github... and I mean everything... fantastic ! Safety is not sacrificed for simplicity. Yes, Rust is a complex language, but that's because decisions have been made which puts safety and control first rather than convenience. The team provide editor integration plugins... including the mighty VIM ! Things I don't like about Rust Opening curly brackets on the right... argh ! I know it's just convention, but argh !  There's something quite exciting about the Rust community... the deeper I delve into the language and how the project is organised the more excited I get. One major problem with older languages like C and C++ is that the ecosystem around how you develop sof

Rust, week 1.

I've started looking at Rust again. I had a quick try of rust about 18 months ago when I was looking at modern alternatives to C++. At that time I learned a bit of Rust and also some Go. Both languages impressed me but to be honest I liked the feel of Go more... mainly because it was simpler to learn. Time has passed and my mind has wondered back to Rust. This page is a scrap book of thoughts about Rust during my first week back. Things I like about Rust... Built-in a build system (cargo) Immutable by default Explicit data ownership semantics Built-in documentation about the language and compiler errors Sensible type inference External module dependency versioning makes sense No implicit bool conversion Descriptive error reporting Tuples ! Things I'm not sure about... note I'm not saying these things are bad... just that I'm unconvinced at this point Allowing variable type changes via shadowing Progress reading 'The Rust Book' - 6.1 Definin

Windows UI Fail... Setting a New Password

I turned on my work PC this morning to be greeted with the 'Your password has expired, please enter a new one...' screen. OK, hit enter to be taken to a new screen with three text entry boxes. The top one labeled 'old password' was already filled out for me - good. The next two were labeled 'new password' and 'confirm new password' or something very similar... I can't remember verbatim. The text entry cursor was already set to the 'new password' box so I typed in my new password and hit enter... 'ERROR: Passwords Don't Match' Of course they don't match - I've only entered one you stupid machine. OK, press enter to try again. This time my old password was not filled out for me for some reason, so I entered my old password but this time, using my experience of how stupid computer UI's can be, rather than hit enter to complete my old password I pressed tab... this took me to the next text entry box... new password..

Jult 2018 Update

Aah, here I am again... trying to kick-start this blog into shape. The plan of course is to write in here more often and actually include some stuff that I'm doing or mooching about with. So here goes... again... My latest hobby stuff is writing a stochastic path tracer, which is a kind of ray tracer. It 's all the fault of Peter Shirley and his ' Ray Tracing in A Weekend ' books on Kindle, which are a decent little kick-start into the topic. My weapon of choice for doing my own version of a path tracer is Qt on Linux... which should give a lot of options for platform and capabilities. It's going OK so far - in the limited time I give it - but I'm still partial to over-engineering various non-critical parts of the code. Although I'm aware of it at least this time, I'm still letting myself do a bit of faffing, just because why not... it's all good practice writing code I've not necessarily done before in any sort of anger. The upshot of the

Good Game Developer Channels on YouTube

The last few years has seen a crop of high quality game developer oriented channels on YouTube. I'm not talking about 'how do I do xxx' channels here... I'm talking about channels which spend time on game analysis and drilling deeper into game development companies and individuals. Here's a few you should watch... Ahoy Game Dev Underground No Clip Game Makers Toolkit