let it leave me like a long breath

let it dissipate or fade in the background

(no subject) (Reply)

Profile

xax: purple-orange {11/3 knotwork star, pointed down (Default)
howling howling howling

Nav

  • Recent Entries
  • Archive
  • Reading
  • Tags
  • Memories
  • Profile

Tags

  • art - 2 uses
  • asteroid garden - 4 uses
  • code - 19 uses
  • demos - 1 use
  • dreams - 5 uses
  • ff7 fangame - 23 uses
  • fic prompts - 13 uses
  • gamedev challenge - 82 uses
  • hell game - 76 uses
  • nanowrimo - 11 uses
  • plants - 9 uses
  • process - 52 uses
  • programming - 51 uses
  • screenshots - 5 uses
  • writing log - 83 uses

May 2025

S M T W T F S
    123
45678 910
1112131415 1617
18192021222324
25262728293031
  • xax: purple-orange {11/3 knotwork star, pointed down (Default)
    [personal profile] xax
    Tags:
    • programming
    posted @ 06:57 pm

    private Optional<Function<LayeredMap,Consumer<PcState>>> useAction;


    listen, my java code is immaculate.

    (the joke here is that in haskell this would just be Maybe (LayeredMap -> PcState -> ()). tho that's not a useful type signature to have in haskell, so actually it'd be something different)

    actually as a general trend what i've found really useful for writing in javascript or java or whatever is thinking "okay, how would i do this in haskell?", because the answer is generally some slightly elaborate but robust and bugfree code. in this case i'm using a Consumer, but in haskell i'd have some kinda state-change monoid for popping up UI or adding/removing items or changing the map or w/e. and since that's precisely the issue i've been struggling with wrt "how do i communicate the potential effects of item actions", well, just do that and that's the problem solved.

    in theory. in practice things are generally a bit thornier and more elaborate. but it's a good foundation, probably.

    • Previous Entry
    • Add Memory
    • Share This Entry
    • Next Entry
    • Link
    • 0 comments
  • If you don't have an account you can create one now.
    No Subject Icon Selected
    No Subject Icon Selected
    Smiley
    Winking Smiley
    Blushing Smiley
    Shocked Smiley
    Sad Smiley
    Angry Smiley
    Checkmark
    Gold Star
    Envelope
    Shifty Eyes
    Smiling Alien
    Skull and Crossbones
    Sick Face
    Radioactive Symbol
    Cool Smiley
    Lightbulb
    Red Thumbs Down
    Green Thumbs Up
    HTML doesn't work in the subject.
    More info about formatting
     
    Notice: This account is set to log the IP addresses of people who comment anonymously.
    Links will be displayed as unclickable URLs to help prevent spam.
Page generated Jun. 17th, 2025 12:36 am
Powered by Dreamwidth Studios

Style Credit

  • Style: (No Theme) for vertical