Hic et Nunc: Embracing the Swift Journey of Mindful Living

notion image

💡 The Spark of an Idea

Have you ever felt like your life is slipping away? 😱 It's not that we have so little time, but that we lose so much. These profound words were spoken by one of the greatest philosophers, Seneca, over two thousand years ago. As a firm believer in the Stoic philosophy, I realized that to truly live a fulfilling life, I needed to understand the brevity of it. That's when the idea struck me - I wanted to create something that could help me and others grasp the value of each passing minute, hour, and day.

🏃‍♂️ The Swift Journey Begins

Driven by this mission, I made a bold decision - to learn Swift, the programming language for macOS app development, from scratch in just a few days. I was determined to bring my vision to life and provide a tool that could make a meaningful impact. The learning process was intense, but my passion fueled my progress. As I dove into learning Swift, I immersed myself in tutorials, documentation, and practical exercises. I absorbed the fundamental concepts of the language and gained confidence in my ability to create the app I envisioned.

🖥️ Coding the Vision: Hic et Nunc

Armed with newfound knowledge, I started writing the code for my macOS application, which I proudly named Hic et Nunc (Latin for "here and now"). To give you a peek into how the app works, let me share a small snippet of Swift code. This piece of code calculates the percentage of a user's life that has passed based on their birthdate:
swiftCopy code import Foundation let dateFormatter = DateFormatter() dateFormatter.dateFormat = "yyyy/MM/dd" let birthDateString = "1980/01/01" guard let birthDate = dateFormatter.date(from: birthDateString) else { fatalError("Incorrect date format") } let currentDate = Date() let secondsSinceBirth = currentDate.timeIntervalSince(birthDate) let averageLifespanInSeconds = 80 * 365 * 24 * 60 * 60 let percentageOfLifePassed = (secondsSinceBirth / Double(averageLifespanInSeconds)) * 100

🚧 Overcoming Challenges

The development journey wasn't without its challenges. I had to overcome hurdles like understanding the syntax and structure of Swift and designing an intuitive user interface. One of the significant challenges was implementing the functionality to track the percentage of a user's life in real-time. Ensuring accuracy in time calculations, accounting for time zones, leap years, and other complexities was no easy task. However, I remained determined and sought solutions through online resources and developer communities.

🌱 Growth and Iteration

With each challenge I faced, I grew both as a developer and as an individual. I pushed through obstacles, iterated on my code, and refined the user experience. The passion and drive that sparked the idea in the first place propelled me forward, even when things got tough.

🎉 Presenting Hic et Nunc

After days of hard work and dedication, I successfully created the Hic et Nunc macOS app. It stands as a testament to my perseverance and commitment to personal growth. By sharing this app with others, I hope to inspire greater awareness and appreciation for the present moment. The journey of learning Swift, overcoming challenges, and bringing this app to life has been a transformative experience.
Creating this app has taught me the power of determination, resilience, and the joy of turning ideas into reality. It is a reminder that with passion and persistence, we can accomplish remarkable things. I am excited to share this app with you, and I hope it will help you make the most of every moment and live a more mindful and fulfilling life.
 
More about the app.
Built with Potion.so