Page 1 of 1
PlusPlus: an app for people who can't count
Posted: Thu Nov 15, 2018 3:43 pm
by lazershark3k
Hey all,I've just made the ultimate counting app. Check it ouuuut
https://github.com/Clickity-Clack/PlusPlus
'+' or '.': Increment Counter
'-' or ',': Decrement Counter
'escape': Clear Counter
'q': Quit program
'l': Start changing the label for the current counter
'enter': Finish changing the label for the current counter
'n': Add new counter
'up': Select previous counter
'down': Select next counter
's': Write counter info to a JSON file in the LÖVE filesystem folder
Re: PlusPlus: an app for people who can't count
Posted: Thu Nov 15, 2018 5:51 pm
by ivan
Your .love file is incorrectly packaged and you included the .git folder too...
The code needs work as well. For starters, I would recommend "strict.lua".
I like your idea of separating the underlying model (ticker) from the view (visualticker)
- this is a good start but the implementation needs work. Good luck!
Re: PlusPlus: an app for people who can't count
Posted: Thu Nov 15, 2018 6:12 pm
by lazershark3k
Oops! Didn't notice that .git, and I totally forgot to test the .love
I really appreciate the feedback! Do you have any other implementation recommendations off the top of your head?
Here's a working .love
Re: PlusPlus: an app for people who can't count
Posted: Thu Nov 15, 2018 7:42 pm
by lazershark3k
Update: you can set the name of the saved file now
Re: PlusPlus: an app for people who can't count
Posted: Fri Nov 16, 2018 5:24 am
by ivan
lazershark3k wrote: ↑Thu Nov 15, 2018 6:12 pm
I really appreciate the feedback! Do you have any other implementation recommendations off the top of your head?
Yes, start by limiting the number of globals - you can check for this using the strict.lua library.
In terms of the overall structure, I think you could design your objects based on:
https://en.wikipedia.org/wiki/Model%E2% ... controller
Re: PlusPlus: an app for people who can't count
Posted: Fri Nov 16, 2018 4:10 pm
by lazershark3k
Thanks a bunch! That gives me plenty to work on!
Re: PlusPlus: an app for people who can't count
Posted: Fri Nov 16, 2018 9:40 pm
by steVeRoll
Well done! Being able to delete or even change the order of counters would be nice.