Nicolo John Davis

101 posts

Nicolo John Davis

Nicolo John Davis

@nicolodavis

Working on @boardgamelabapp. Previously @Google.

Katılım Mayıs 2009
119 Takip Edilen333 Takipçiler
JavaScript Daily
JavaScript Daily@JavaScriptDaily·
How do you exit vim? Wrong answers only. (Random answer wins a $40 Amazon·com gift card in 8 hours' time 😂)
English
1.2K
52
751
0
Nicolo John Davis
Nicolo John Davis@nicolodavis·
@Billy_Bebop @software_daily I use Warp for the WebSocket communication on the Rust side. No DB used in the preview builds that are currently public, but the final version will use Postgres. The backend and the clients both run game logic in parallel (with the backend having the final say).
English
0
0
1
0
VasDKouts
VasDKouts@Billy_Bebop·
@nicolodavis @software_daily What about the backend? You mentioned in the podcast that it's rust. Any frameworks ? What is the dB ? Does the backend do any game logic validation or is it done on the clients?
English
2
0
0
0
Nicolo John Davis
Nicolo John Davis@nicolodavis·
@Billy_Bebop @software_daily A game created by a user is just a large JSON object. Even things like loops and conditional logic are just JSON: condition: { type: 'boolean', op1: '...', op2: '...' }, action: { ... } Of course, this is constructed automatically by the frontend (the user never sees JSON).
English
1
0
0
0
Nicolo John Davis
Nicolo John Davis@nicolodavis·
@Billy_Bebop @software_daily Sure. Maybe I'll put out a blog post about the technical details at some point, but at a high level: 1. Frontend is written in Svelte (TypeScript). 2. State update logic is written in Rust. This runs as Rust code on the server and is compiled down to WebAssembly on the client.
English
1
0
1
0
Nicolo John Davis
Nicolo John Davis@nicolodavis·
@davert @pashidlos @davert Is there a way to invoke CodeceptJS programmatically? I couldn't find a way to do that which is how I ended up creating JS files and then calling CodeceptJS from a shell.
English
1
0
0
0
davert 🇺🇦
davert 🇺🇦@davert·
@pashidlos This is self-updating documentation. If you need a screenshots in docs you can have CodeceptJS script to take that screenshot instead of taking it and saving it manually. @nicolodavis explains this in the blogpost
English
1
0
1
0