BigK-hub / pomodoro_timer

a software for a timer, which can be used for studying or various other things you need a timer for
1 stars 0 forks source link

clean up code #3

Open BigK-hub opened 1 year ago

BigK-hub commented 1 year ago

currently the code is a bit everywhere instead being packed into neat functions which each do one task.

domjanabi commented 1 year ago

You could try (may not be a good idea) to make the Button class a nested class of Example. I believe this might get rid of the need to store the pge pointer.

Lines 213 to 220 can be a for loop.

domjanabi commented 1 year ago

btw the c++ version is <cstdint>