[-] livingcoder@programming.dev 2 points 1 year ago

I don't know of any guidance about avoiding Erythritol when pregnant, but aside from that, the sentiment is generally reasonable but you'll still end up avoiding foods that would only negatively impact a pregnancy. You can imagine the other side of that coin: are you taking vitamin supplements that are meant to be taken by someone who is pregnant? I would imagine not, but then the question becomes "Why not?". (not trying to be hostile, just making a point)

[-] livingcoder@programming.dev 2 points 2 years ago* (last edited 2 years ago)

I prefer to just throw the state into a database. Each table has their own "repository" type that knows how to save/load models and then I have "manager" types that use "repository" types to compose larger, feature-specific domain models.

I usually just use Sqlite for it's simplicity but I'm not opposed to Postgres via Docker.

[-] livingcoder@programming.dev 1 points 2 years ago

In what scenario could the first character be a newline character? I think that if-statement may be unnecessary, but I never use raw user input like you are here.

[-] livingcoder@programming.dev 1 points 2 years ago

Boo, just missed it.

[-] livingcoder@programming.dev 2 points 2 years ago

There is a market for a game engine that uses algebraic variables and geometry to guarantee purely accurate collision detection. That said, a bit of searching shows that it's going to be much slower then current approximate approaches.

[-] livingcoder@programming.dev 1 points 2 years ago

I've been playing for the past year and I'm about to quit. It really demands so much time and being on coms. I want an MMO that I can play while I have videos or a movie going on the other monitor.

[-] livingcoder@programming.dev 2 points 2 years ago

Anyone who loves this movie would also like Arq (on Netflix).

[-] livingcoder@programming.dev 2 points 2 years ago

I understand that the macro only affects compile time but I'm talking about the extra function that's included in the resulting source code when the macro is expanded during compile. Based on other feedback, it looks like the unused function is optimized away.

[-] livingcoder@programming.dev 2 points 2 years ago

Everyone wore black.

[-] livingcoder@programming.dev 2 points 3 years ago

And now I'm making a game. You got me.

[-] livingcoder@programming.dev 2 points 3 years ago

And now I'm making a game. You got me.

[-] livingcoder@programming.dev 1 points 3 years ago

That would be cool, seeing RGB GOL cells moving outward. Maybe instead of 0 or 1 brightness you could just round it for the cell's purposes, maybe having a const float for flexibility: if it's greater than threshold then it's "on".

view more: ‹ prev next ›

livingcoder

0 post score
0 comment score
joined 3 years ago