What are you coding?

So I really really like types, and as I get older and more wizened I've grown very fond of functional programming paradigms. Javascript and Typescript have a lot of FP baked in now, but Rust (and Swift actually) have some really nice FP-like features that while not going full Scala or Haskell give you a lot of the goodies without as many of the compromises that come from those languages.

Rust takes types very seriously (annoyingly so at times, but that's its shtick), go pretends to be strongly typed but is very easy to bully. So I feel like go is more like PHP (where I've done most of my professional work), in that it will let you do what you want, but has some guard rails that you can very easily hop across. The price you pay is the sheer verbosity of it, and that for me is where I admire what it is, but don't like what it is.

Rust is ... the arch linux of programming languages. Everything is hardwork and the pleasure in bending it to your will is where the 'fun' comes from.

Anyway, if you want to learn a trending language, learn both, a great practical app to develop is a simple rate quote cli that queries the bitstamp rest api for crypto or forex exchange rates. Use an LLM to help bootstrap your programs and ask questions and write a solution in both. Look at libs to handle arg parsing, colorising terminal output, try using different http backends, try different REST abstractions, and very quickly you get a feel for both languages.

You'll find you can get a solution out with go very quickly and have a good idea what's going on. You'll find rust hard going...until you don't. And then your preference for each language will come out, do you like the what you see is what you get (go) or im really clever look at my type safe cathedral (rust).

For me, i tend towards go for microservices in my professional work, a lot of it is http based and go is absolutely geared up for that. I also find LLMs can reason Go much better than rust (this is where verbosity and wysiwy is a plus!). If it is sensitiyve to single digit millisecond latency then I prefer rust, I don't have to worry about GC then.

Last point to make is regarding concurrency. Rust's concurrency support is immature relative to the rest of its std lib but tokio is quite nice. But frankly goroutines and channels are great for most usecases and very easy to work with and reason about.

*Edit* Rather than double posting, currently working on pong in 6502 assembly :D

7udnP0v.jpeg

ht9xSRX.jpeg
Thank you! Very interesting. I'll certainly look into things when I have a bit more spare time.
 
I've had to use TS at work recently, and it wasn't until then that I realised the benefit of it over JS. This was mainly in catching errors prior to the automated testing picking things up.

Had a random urge to get into some basic robotics, but I have zero skill in electrical engineering etc so I'd look to get some prebuilt thing you can customise the behaviour of. Just for messing arounds sake. The kits I saw were aimed at kids though and a tad basic possibly.
 
Last edited:
I've had to use TS at work recently, and it wasn't until then that I realised the benefit of it over JS. This was mainly in catching errors prior to the automated testing picking things up.

Had a random urge to get into some basic robotics, but I have zero skill in electrical engineering etc so I'd look to get some prebuilt thing you can customise the behaviour of. Just for messing arounds sake. The kits I saw were aimed at kids though and a tad basic possibly.
I'm interested in robotics as well. I've started reading a book but feeling somewhat overwhelmed by the whole thing. I haven't studied Physics since I was at school!
 
A football form I'm in was recently talking about how successful my team (Huddersfield Town) have been over the years in penalty shootouts.

Naturally I decided the thing to do was write a script (.NET 8 console app) to scrape transfermarkt.co.uk and see if I could put together a list of how successful each team has been...

There are bits of missing data, but it's an good indication of success levels. You can use https://www.transfermarkt.co.uk/xxx/elfmeterschiessen/verein/{teamId} to get at individual teams data.

Bromley FC - 100.0% - 2W 0L from 2 shootouts
Nottingham Forest - 85.7% - 12W 1L from 14 shootouts
Huddersfield Town - 85.7% - 6W 1L from 7 shootouts
Middlesbrough FC - 81.8% - 9W 2L from 11 shootouts
Burnley FC - 80.0% - 8W 2L from 10 shootouts
Barnsley FC - 73.3% - 11W 4L from 15 shootouts
Brentford FC - 71.4% - 15W 6L from 21 shootouts
Crawley Town - 71.4% - 5W 2L from 7 shootouts
Wycombe Wanderers - 70.6% - 12W 5L from 17 shootouts
Plymouth Argyle - 66.7% - 8W 4L from 12 shootouts
Rotherham United - 66.7% - 10W 5L from 15 shootouts
Oxford United - 65.2% - 15W 8L from 23 shootouts
Milton Keynes Dons - 64.3% - 9W 5L from 14 shootouts
Crewe Alexandra - 64.3% - 9W 5L from 14 shootouts
AFC Wimbledon - 63.6% - 7W 4L from 11 shootouts
Leicester City - 63.2% - 12W 7L from 19 shootouts
Manchester City - 62.5% - 10W 6L from 16 shootouts
Aston Villa - 62.5% - 5W 2L from 8 shootouts
Liverpool FC - 62.1% - 18W 10L from 29 shootouts
Cardiff City - 61.5% - 8W 5L from 13 shootouts
Northampton Town - 61.1% - 11W 7L from 18 shootouts
AFC Bournemouth - 60.0% - 9W 6L from 15 shootouts
Fulham FC - 60.0% - 9W 6L from 15 shootouts
Queens Park Rangers - 60.0% - 6W 4L from 10 shootouts
Port Vale FC - 60.0% - 12W 8L from 20 shootouts
Stoke City - 58.8% - 10W 6L from 17 shootouts
Southampton FC - 58.3% - 7W 4L from 12 shootouts
Preston North End - 57.1% - 8W 6L from 14 shootouts
Salford City - 57.1% - 8W 6L from 14 shootouts
Accrington Stanley - 57.1% - 12W 9L from 21 shootouts
Doncaster Rovers - 56.5% - 13W 9L from 23 shootouts
Portsmouth FC - 56.3% - 9W 7L from 16 shootouts
Bradford City - 55.6% - 15W 12L from 27 shootouts
Wrexham AFC - 54.5% - 6W 5L from 11 shootouts
Arsenal FC - 54.2% - 13W 9L from 24 shootouts
Brighton & Hove Albion - 53.8% - 7W 6L from 13 shootouts
Derby County - 52.9% - 9W 7L from 17 shootouts
Leyton Orient - 52.6% - 10W 8L from 19 shootouts
Coventry City - 50.0% - 8W 8L from 16 shootouts
Swansea City - 50.0% - 3W 3L from 6 shootouts
Hull City - 50.0% - 9W 9L from 18 shootouts
Watford FC - 50.0% - 3W 3L from 6 shootouts
Grimsby Town - 50.0% - 8W 8L from 16 shootouts
Shrewsbury Town - 50.0% - 6W 6L from 12 shootouts
Cheltenham Town - 50.0% - 5W 5L from 10 shootouts
Barnet FC - 50.0% - 2W 2L from 4 shootouts
Oldham Athletic - 50.0% - 7W 7L from 14 shootouts
Bristol Rovers - 47.1% - 8W 9L from 17 shootouts
Luton Town - 46.7% - 7W 8L from 15 shootouts
Lincoln City - 46.7% - 7W 8L from 15 shootouts
Gillingham FC - 46.7% - 7W 8L from 15 shootouts
Sunderland AFC - 46.2% - 6W 6L from 13 shootouts
Reading FC - 46.2% - 6W 7L from 13 shootouts
Mansfield Town - 46.2% - 6W 7L from 13 shootouts
Newport County - 45.5% - 5W 6L from 11 shootouts
West Ham United - 44.4% - 4W 5L from 9 shootouts
Birmingham City - 44.4% - 4W 5L from 9 shootouts
Peterborough United - 44.4% - 8W 10L from 18 shootouts
Barrow AFC - 44.4% - 4W 5L from 9 shootouts
Wigan Athletic - 43.8% - 7W 9L from 16 shootouts
Manchester United - 43.5% - 10W 12L from 23 shootouts
Sheffield Wednesday - 42.9% - 9W 12L from 21 shootouts
West Bromwich Albion - 41.7% - 5W 7L from 12 shootouts
Chelsea FC - 41.4% - 12W 17L from 29 shootouts
Stevenage FC - 41.2% - 7W 10L from 17 shootouts
Blackpool FC - 40.9% - 9W 13L from 22 shootouts
Leeds United - 40.0% - 6W 8L from 15 shootouts
Norwich City - 40.0% - 4W 6L from 10 shootouts
Exeter City - 40.0% - 6W 9L from 15 shootouts
Burton Albion - 40.0% - 4W 6L from 10 shootouts
Chesterfield FC - 38.5% - 5W 8L from 13 shootouts
Charlton Athletic - 36.8% - 7W 11L from 19 shootouts
Tranmere Rovers - 36.8% - 7W 12L from 19 shootouts
Crystal Palace - 36.4% - 4W 7L from 11 shootouts
Cambridge United - 36.4% - 4W 7L from 11 shootouts
Newcastle United - 35.7% - 5W 9L from 14 shootouts
Swindon Town - 35.0% - 7W 13L from 20 shootouts
Blackburn Rovers - 33.3% - 3W 6L from 9 shootouts
Notts County - 33.3% - 3W 6L from 9 shootouts
Fleetwood Town - 33.3% - 5W 10L from 15 shootouts
Harrogate Town - 33.3% - 2W 4L from 6 shootouts
Sheffield United - 31.6% - 6W 12L from 19 shootouts
Everton FC - 31.3% - 5W 10L from 16 shootouts
Wolverhampton Wanderers - 31.3% - 5W 11L from 16 shootouts
Colchester United - 31.3% - 5W 11L from 16 shootouts
Tottenham Hotspur - 29.4% - 5W 12L from 17 shootouts
Walsall FC - 29.2% - 7W 17L from 24 shootouts
Ipswich Town - 28.6% - 4W 10L from 14 shootouts
Millwall FC - 25.0% - 2W 6L from 8 shootouts
Bolton Wanderers - 25.0% - 3W 9L from 12 shootouts
Bristol City - 14.3% - 1W 6L from 7 shootouts
Stockport County - 12.5% - 1W 7L from 8 shootouts
 
Last edited:
I've been following a geezer on YouTube doing a HTML/CSS course. In four hours, I've managed to built a VERY GAUDY website but it shows what you can do with a basic bit of HTML and CSS!


It's my reason for asking about Packt in another thread, so I can expand my HTML/CSS knowledge, although there are 16 more hours to go with this YouTube guy.
 
Last edited:
Back
Top Bottom