Squid Game 3

Today took FOREVER to code. I don't even know when I started, let me check... I started at around 11AM, and it is now 8PM. To be fair, I had like a 3 hour nap today, but still generally around 6 hours of coding/trying, give or take an hour.

Today, I continued working on the timer. Yesterday, I had a timer that could run code at specified dates. The next step, what I worked on today, was making the timer able to retrieve the times for each round that is already stored in the database, and run code at those times. Basically, this time, the times are retrieved dynamically from my database, which is how it will be when the games are actually ran, rather than being hardcoded into the code, as it was previously for the sake of seeing if I can get scheduled code to run.

To be honest, this also took way longer than necessary. A really irritating part of doing this was figuring out that I cannot just story my database times in a global variable in my Node file, because querying is an asynchronous task. As such, I have to do everything in my asynchronous function after I have gotten my data. Thinking about this too much makes my brain hurt tbh HAHA!

So now that my code can automatically run stuff based off of times in my database, tomorrow I have to create Schemas for my players, with a property that says if they are in the game or not. Then, once a round is over, my code has to query the database and see if these players have submitted their task, and if they haven't, their eligibility must be switched.

Productive day I guess! Super cool seeing my code being able to run stuff at times defined in my database. I don't have to push a button :D

要查看或添加评论,请登录

Ibrahim Shah的更多文章

  • Squid Game #2

    Squid Game #2

    Its 7PM and I prolly spent the last few hours coding. Actually let me check how long that was.

  • Squid Game App Log 1

    Squid Game App Log 1

    Me and my friends were in my room working on a new music recommendation algorithm I had an idea for. Later on, we…

  • Sprint 8 Reflection- Technical Details

    Sprint 8 Reflection- Technical Details

    Within Sprint 8, Rahul and I had almost completely developed our app. The process of building our app included creating…

  • Sprint 6 Reflection

    Sprint 6 Reflection

    We started off our reflection by compiling a list of potential clients for Verbind Alliance. Alliance is a web…

    2 条评论
  • Sprint 4 Reflection

    Sprint 4 Reflection

    Within this sprint, Rahul and I had continued working on the backend. We switched from using MongoDB's native Node…

    2 条评论
  • Entrepreneurial Sprint #3

    Entrepreneurial Sprint #3

    During this sprint, I continued to work with Rahul in the development of Alliance. We worked on adding IDs to the…

    1 条评论
  • Entrepreneurial Journey Sprint 2 Reflection

    Entrepreneurial Journey Sprint 2 Reflection

    During this sprint, the most progress has been made by far. This is true, because in our last sprint, we attempted to…

    1 条评论
  • Entrepreneurial Sprint Journey 1

    Entrepreneurial Sprint Journey 1

    Greetings; my name is Ibrahim Shah. I will be reflecting on my first "sprint" of this year as I develop my startup with…

    1 条评论

社区洞察

其他会员也浏览了