Tekstit

Näytetään blogitekstit, joiden ajankohta on lokakuu, 2022.

Clean Code

Kuva
Hi again. It’s time for a book review! Let’s start with a question for you first. Have you ever fallen victim to your own code that is several years old and now you have no idea what that piece of code even does and even fever ideas on how to fix it? I sure have, and this is the reason I chose to read a book called “Clean Code: A Handbook of Agile Software Craftsmanship” and to really see how I’ve improved during the years that I have been programming. This book teaches us the difference between good and bad code and explains how we can write good code. Reading this book, you realize (if you haven’t already) that writing clean code is not only about writing code that works, but it’s about writing code that is easy to read even for an outsider. The most interesting part about this book was the section where the author even asked several well-known programmers about what they think clean code is. It’s interesting because asking several people brings many views to the table and their op...

Leaderboards, how?

Kuva
Hi there! Have you ever wondered how you can implement a leaderboard system for an app? Well, I have, and now I need to implement one for our app !ZeroTime . !ZeroTime is an app that helps and motivates students to spend their time studying rather than doing something else. We also wanted to add a little bit of competition as a motivator so we decided to add a leaderboard system for our app so people can see who has studied the longest. This leaderboard resets monthly so everyone has a chance to get on it. That all sounds good but there’s just one problem, how in the world does one make a leaderboard that tracks everyone’s progress? To get the leaderboard to work, we obviously need our app to be connected to the internet and somehow upload the user’s progress to a remote server. From that server, we need to upload everyone’s progress to the user, so the leaderboard can sort and show them. I started looking for my options and found something called Firebase Realtime Database . It’s...