@matadan@mastodon.social avatar

matadan

@matadan@mastodon.social

Purveyor of artisanal hand-typed code sprinkled with passing unit tests in a delicious functional wrapper, CTO of Flick Games, and programming language geek. I always end up making FORTH-like languages whatever I set out to do so giving in and making something inspired by colorForth called Rainbow. Loving living in London.

This profile is from a federated server and may be incomplete. Browse more on the original instance.

matadan, to ai
@matadan@mastodon.social avatar

I think copy and paste should be disabled when programming not automated by #ai.

matadan, (edited ) to f1
@matadan@mastodon.social avatar

might be a “non-political” organisation but are seemingly happy to associate with a rapist and current criminal defendant. Disgusting to see them welcome Trump into their garage as a VIP.

matadan, (edited ) to random
@matadan@mastodon.social avatar

There are some really great coders who don’t get #TDD and that’s OK but I wish they would not use that misunderstanding to just proclaim that it is useless. On the other hand we need to find a way to prove the usefulness without just saying that “you are holding it wrong”.
#programming

matadan, to random
@matadan@mastodon.social avatar

Imagine a world where you can have over $3,500 worth of kit and the best thing is a version of battleship from a 9+ year old app, the feeling of someone standing up near you, and an ad for Gucci. Listen to @atpfm for context.
And yet this is not the worst tech product launch this year… I want @caseyliss to find the good in the Humane AI pin because nobody else can.

matadan, (edited ) to random
@matadan@mastodon.social avatar

The problem with Clean Code™️is that it’s easy to say, sounds like a good idea, but it is steeped in OOP and Java which means it’s trying to overcome their deficiencies. I think OOP is the main culprit and Clean Code doesn’t fix that. And Bob Martin doesn’t appeal to everyone as a personality even when he actually makes a good point. OOP should mean Smalltalk but it became these polymorphic class languages that generally suck IMHO.

matadan, to random
@matadan@mastodon.social avatar

@simonbs wish me luck…

matadan, to random
@matadan@mastodon.social avatar

As usual, the latest version of Xcode (15.3 RC) breaks something new and refuses to compile perfectly valid code. I’m so over this continuous train of broken tools. Writing Swift used to be joyful for me and now it is just seems to be a broken development process where the static compiler hinders rather than helps.
I wish I was not writing my language, Rainbow, in Swift. I think it’s time to switch back to a web-based tech stack. Even go straight to wasm.

matadan, to random
@matadan@mastodon.social avatar

Listening to @atpfm and I think to @caseyliss point I’d say that coming from a games background and having seen many console launches from the inside, the reason Apple haven’t seeded the developer pool is because AVP is not ready. It’s a developer kit. And cheap compared to a $25K PS3 or a $50K Onyx for N64. But it’s still a dev kit for the real non-Pro device that will come out next year at the earliest.

matadan, to random
@matadan@mastodon.social avatar

@stephencelis I have a question. How do you decide whether an action should invoke another action by returning an effect rather than a function. I seem to remember you or Brandon saying it was better to just use functions rather than chain effects. But cannot remember the reasoning. Say I have a card game that has an action that could cause cards to be dealt as a result of a user action. This could be a function call deal() or be returned as an effect .deal to be handled in the reducer.

matadan, to programming
@matadan@mastodon.social avatar

Can you guess what it is yet?

matadan, to programming
@matadan@mastodon.social avatar

I don't know what all the fuss is about. I wrote a game engine in whilst sick in bed yesterday.

video/mp4

matadan, (edited ) to random
@matadan@mastodon.social avatar

Level Up Lua - 5 Steps To TDD Enlightenment

Part 1 - From Print Debugging To Unit Testing

Step 1: Print Debugging

Step 2: Using a Debugger

Step3: Using the "assert()" function

Step 4: Using a Unit Testing library

https://youtu.be/NVrEdFg_byg

In Part 2, I will demonstrate how to flip the develop then test cycle on its head and start with the tests. This is called Test Driven Development or TDD and once you grok it, you will never go back.

matadan, to random
@matadan@mastodon.social avatar

Lua's lightweight nature means it does not have a ternary operator such as ?: like in C. But we can write a simple function to do it:

local function choice(c, t, f)
return ({
[true] = t,
[false] = f
})[c]
end

local s = choice(2 % 2 == 0, "even", "odd")

Here the choice() function simply constructs a table with true and false keys and uses the condition c to select t or f to return.

matadan, to programming
@matadan@mastodon.social avatar

Guess what? Lua Programming Gems is available for free. If you're a Lua veteran or just starting, I'd say it's definitely worth giving it a read.

By the way, I'm considering delving into the subject of Lua and writing and/or making some videos. If you have any particular topics in mind that you think I should explore first, feel free to let me know.

Oh, and don't forget you can grab your free copy of Lua Programming Gems here: https://www.lua.org/gems/lpg.pdf. Happy coding!

#lua #programming

matadan, (edited ) to random
@matadan@mastodon.social avatar

Lua is a very interesting language. It’s almost a proto-language that you can build out from. It’s very simple - like C - but has just enough to make it a better choice than C for most use cases I think. You just have to use the features it provides which many people don’t. This is the same story as every language though.

matadan, to random
@matadan@mastodon.social avatar

Apple Music has got so bad I literally have to restart it when I come back to my Mac almost every time now. Losing the point in my playlist so I have to start it over. This is so bad I am considering dropping Apple Music and moving to Spotify.

matadan, to random
@matadan@mastodon.social avatar

Here’s how to unburden yourself from a game engine:

  1. write pure functional code for the most part eschewing all the neat features of the editor; just use the engine to draw objects, run a physics simulation, and meditate i/o
matadan, to gamedev
@matadan@mastodon.social avatar

So after a day of clarifications everything seems fine with the runtime fee.

Just kidding… it’s not recoverable in my view. I think are quickly finding out the limits of developer goodwill towards a well-liked engine as the scramble to move away is palpable.

Only way out is a sale to a platform holder or publisher.

matadan, to unity
@matadan@mastodon.social avatar

I guess I’ll be taking another look at Godot then. Even if backpedal they’ve killed themselves. Quite extraordinary really. I’m trying to think if this is some kind of play to get Apple to buy them or not. A whole tier of games will go away.

matadan, (edited ) to random
@matadan@mastodon.social avatar

I’m down on Swift , Xcode etc.. Should I…

matadan, to random
@matadan@mastodon.social avatar

Finally lost patience with Human Forest e-bikes today. Their app is so terrible, I have yet to start a ride. Today, I “rented” a bike that was not one of the four I was stood next to somehow. Then it would not let me cancel a ride on this non-existent bike because I was in a no-parking area. There were 4 of their bikes parked in this no parking area! It’s not like I could move it either as it wasn’t anywhere to be seen.
My advice to investors is to avoid this one. It doesn’t work.

matadan, to random
@matadan@mastodon.social avatar

Dear Bored Billionaires

Boy have I got a unique experience for you to enjoy. Only the filthy rich can afford this though so you will have to pony up. But on the plus side you will go down in history as a truly great explorer.

It's going to be tough though and you are going to have to find the inner strength and resources to do it.

Here it is:

Explore the idea of helping others before you take your next adventure trip. And then use all your money to help them instead, you utter pricks.

matadan, to fediverse
@matadan@mastodon.social avatar

I’m looking for an openapi 3.0 mastodon spec to try out with Apple’s new openapi generator.Does anybody know of one?

matadan, to reddit
@matadan@mastodon.social avatar

Well, I did it. I just deleted all my posts and comments on reddit and then deleted my account.

matadan, (edited ) to random
@matadan@mastodon.social avatar

I didn't like the descent into unreadable code that was 'ifelse' so I just defined a couple of other words 'case' and 'break' and sprinkled more comments in. Now, I think, it is clearer to see what is happening here.

  • All
  • Subscribed
  • Moderated
  • Favorites
  • JUstTest
  • mdbf
  • ngwrru68w68
  • modclub
  • magazineikmin
  • thenastyranch
  • rosin
  • khanakhh
  • InstantRegret
  • Youngstown
  • slotface
  • Durango
  • kavyap
  • DreamBathrooms
  • megavids
  • GTA5RPClips
  • tacticalgear
  • normalnudes
  • tester
  • osvaldo12
  • everett
  • cubers
  • ethstaker
  • anitta
  • provamag3
  • Leos
  • cisconetworking
  • lostlight
  • All magazines