I agree. If anything it should check if there is a nuumber and 0 is clearly a number.
- 0 Posts
- 74 Comments
Lifter@discuss.tchncs.deto Mildly Infuriating@lemmy.world•Forced to lie on a questionnaire (BioLife)English4·1 month agoI got the uBlacklist Firefox extension specifically to block Pinterest from search results.
There’s a new Black Mirror episode about a brain implant that randomly injects ads into conversation without the consent or knowledge of the “user”.
I think they are talking about typescript which is compiled into javascript
Much the latter.
Plus everything better work perfecly out of the box on any hardware, and there is a lot of different hardware. Compatibility layers are often built into the package.
Java, for instance, recommenda that you package the whole (albeit slimmed down) JVM inside the package for the target platform, rather than relying on the java runtime installed already.
The users arent expected to know any of that anymore.
Just try it. You can usually convert a single file at a time. Start small (or even with a pet project)
Lifter@discuss.tchncs.deto Mildly Infuriating@lemmy.world•AI will replace us all... trust meEnglish2·3 months agoWell that would also make it roll off…
…on my machine.
Lifter@discuss.tchncs.deto Gaming@lemmy.ml•Don't forget to make a 2nd save file just in case.2·4 months agoI’m sorry I don’t getting your point . You start off by agreeing that you don’t like the extra complexity that the update statements give. Then do some pseudo code of something entirely different where we all already agree is not an issue.
Then at the end your conclusion is that it is totally feasible. Why? You still didn’t adress the problem of updating the state
Lifter@discuss.tchncs.deto Gaming@lemmy.ml•Don't forget to make a 2nd save file just in case.3·4 months agoOk, I mentioned a state machine in another sub thread. It’s not as bad if you already have a state machine.
It’s still adding more complexity though - again when the value is updated. You still need to change the state when saving. You need to decide which state to use when starting the game.
There is still risk of screwing that up when refactoring. And still the value is nearly none.
Regarding state mchines, it’s a complexity in itaelf to add random flags ro the state machine. Next time you want to add another flag you need to double all the states again, e.g. PAUSED, PAUSED_AND_SAVED, PAUSED_AND_MUTED, PAUSED_AND_SAVED_AND_MUTED. I would never add mute to the logic of the menu but that’s the pnly example I could come up with. Maybe you see my point there, at least?
Lifter@discuss.tchncs.deto Gaming@lemmy.ml•Don't forget to make a 2nd save file just in case.3·4 months agoPlus all the lines to update the state, when the menu is closed, when the game is closed (i.e should it be true or false at startup), when the game is saved obviously.
That’s at least three more lines plus the one you mentioned for no extra value. And again it’s easier to screw it up e.g. while refactoring.
Lifter@discuss.tchncs.deto Gaming@lemmy.ml•Don't forget to make a 2nd save file just in case.3·4 months agoThe state “the game is paused” is different from " the game is paused and saved". Sure that could be another key in some atate machine but like above: it’s the “not mess it up” part that is harder.
Lifter@discuss.tchncs.deto Gaming@lemmy.ml•Don't forget to make a 2nd save file just in case.2·4 months agoIt’s the “don’t mess it up” part that is harder.
Lifter@discuss.tchncs.deto Gaming@lemmy.ml•Don't forget to make a 2nd save file just in case.3·4 months agoThey solved that by having most of the game revert to starting positions frequently (e.g. every time you die, area load).
Maybe not as immersive as Bethesda games but their lore at least tries to make sense of it.
It’s more like playing the Edge of Tomorrow movie, you need to learn where everything is.
Lifter@discuss.tchncs.deto Gaming@lemmy.ml•Don't forget to make a 2nd save file just in case.3·4 months agoThat’s harder to implement. Suddenly you need to store that extra state somewhere and don’t mess it up. The last save should already have a timestamp and is immutable. A lot less likely to get bugs that way.
And fuck your versioning system. And you dependency management. And tooling. Why are there like five different projects trying to lock down the python environment? Conda? Venv?
Even Ubuntu tries to lock down python so that it doesn’t brick the install due to dependency conflicts.
Lifter@discuss.tchncs.deto Mildly Infuriating@lemmy.world•So this is how my neighbor fixes his fence.English1·7 months agoI’m on the fence about that one.
Any professional would have a code repository and probably a build server which spits out binaries left and right, off site of course.
Bonus points if that is the easiest way to deploy the software, so all developers actually use it.
Edit: typo
They are not the same, but 0 can be implicitly converted to false.
What do you get if you do: 0 === false