20231019

Fell asleep around 1 and got up around 7 as usual. After having breakfast, started to work around 8 as usual. Planned to implement functionalities on saving/loading data, but was unsatisfied with the template part, so refactored it again. Didn't play Zelda as usual after lunch. After saving/loading data was completed, didn't test it but felt there were two many types on this process. There were some basic types, but got changed slightly thought all kinds of operation. Some fields were string after retrieving from database, or before storing in database. And ID might be absent when saving some entities. Had created types for every scenario but they confused me completely at last. So deleted these types and used basic type with simple type calculation, like changing id field to optional or changing the type of some fields to string. The code became clearer now. Completed 13 pomodoroes for work today. 

评论

热门博文