News for hackers. Stuff that matters.
Re:Show HN: Virtual pet game made for my daughter by throwaway35784 on Thursday November 21, 2019 @12:09PM (#21596418)
I like the style of the code. Can talk about your inspiration for it? I haven't seen Javascript written in that way before. It's clean but, at least to me, unintuitive. What is your background?
Re:Show HN: Virtual pet game made for my daughter by ben85ts on Thursday November 21, 2019 @12:31PM (#21596768)
Been a frontend dev for 10 years angular and react. You’re right it’s a little mix of functional state management and imperative structures for the game objects.
Re:Show HN: Virtual pet game made for my daughter by beaconstudios on Thursday November 21, 2019 @12:12PM (#21596477)
not the author, but it looks Java-like to me - with the "everything is an object/class" approach.