3,286 karma · joined June 21, 2010
Make it so I can double tap the cmd key to see outlines of windows and allow me to swipe using the touch board to shift windows around into pockets space.
Also not just for performance reasons, I wouldn’t call BeamVM hard realtime, but also for code. Your game server would usually be the client but headless (without rendering). Helps with reuse and architecture.
But then you also have to include what type of application it is. Real time or soft real time, etc.
That’s built in, “man caffeinate”.
The way to think about water crossing with naval transports, is to consider those things to be conditions. You already have a set of condition when pathfinding. Just add another case for water. Make it so the requirement is that you’re either on a ship or there is a ship on the adjacent tile you checked previously, e.g N-1. If valid, set a flag and now every tile check that is water should be appropriate.
Think Scala, Elm and Haskell have it as well.
Having that and elixirs pattern matching would be insane.
I prefer Pet, mostly because Snipkit makes me verify 20 times (slight exaggerated) and doesn't give me the actual command so it'll be part of the shell history.
Honestly, just dump the command in my shell and let me press enter and make that the confirmation, but whatever.
You can give arguments with default values, so they are reusable across projects.