Skip to main content

Timeline for Simple text-game navigation system

Current License: CC BY-SA 4.0

14 events
when toggle format what by license comment
Dec 16, 2022 at 6:11 history edited ggorlen CC BY-SA 4.0
minor improvement
Dec 13, 2022 at 22:22 comment added ggorlen Immutability is not really the major point here and I debated including it, but I figured it'd help the reader understand that we're not modifying that state transition data structure, it's a purely read-only encoding of the actions available to transition from one state to another.
Dec 13, 2022 at 22:04 comment added ggorlen An immutable dict prevents bugs where you accidentally modify it, communicates to the reader that the dict never changes, etc. Really, everything should be immutable unless it needs to be modified (opt-in), which is ideally most data. If you search around a bit you should find plenty of longer explanations.
Dec 13, 2022 at 21:18 comment added LeoninJesterXII What's the value of using an immutable dictionary or a mutable one?
Dec 13, 2022 at 18:37 comment added Juho Interesting, I didn't know about MappingProxyType. I guess it's interesting we have frozenset but no frozendict. Is it perhaps for a historical reason that frozenset exists, assuming MappingProxyType can "simulate" any "frozen" (or immutable) object?
Dec 13, 2022 at 17:41 comment added LeoninJesterXII Ah, I see. That plaintext font threw me off. Lol. Thanks again for the help!
Dec 13, 2022 at 17:37 comment added ggorlen It's a list but it's normal to call it lst to avoid clashing with the builtin function list.
Dec 13, 2022 at 17:31 comment added LeoninJesterXII What is the "1st" in the humanize function? What does it refer to?
Dec 13, 2022 at 15:30 vote accept LeoninJesterXII
Dec 13, 2022 at 15:29 comment added LeoninJesterXII Thanks for all the info! I'll parse through the code snippets later, but this was really helpful! The 2-space indents are a symptom of me using replit to code on a work machine that I can't put pyCharm on.
Dec 13, 2022 at 3:32 history edited ggorlen CC BY-SA 4.0
mention JSON
Dec 13, 2022 at 3:23 history edited ggorlen CC BY-SA 4.0
mention indentation
Dec 13, 2022 at 3:13 history edited ggorlen CC BY-SA 4.0
improve clarity
Dec 13, 2022 at 3:03 history answered ggorlen CC BY-SA 4.0