DEV Community

Managing Your Personal Finances as a Dev - While Loop Style

Kaleb M on April 12, 2019

Personal finance, ohhhh personal finance. The dreaded, taboo topic that we're never taught in school, yet it's required if you want to b...
Collapse
 
gene profile image
Gene • Edited

This

while (financiallyStable && age < retirementAge) {
    moneyGoingIntoAccounts++;
    moneySaved++;
    enjoyLifeExperiencesWithOutStress++;

    if (interestedInRetiringEarly) {
        retirementAge--
    }
    age++;
}

...however means that if finaciallyStable and age < retirementAge no longer satisfies, you'll stop having money going to accounts, saved money, and you enjoying your lifeexperiences without stress will remain whatever it is.

Collapse
 
avatarkaleb profile image
Kaleb M

That is true 😁 I'll update it when I return home. Thank you !

Collapse
 
gene profile image
Gene

Overall, what you said here is true! Thank you for sharing :)

Thread Thread
 
avatarkaleb profile image
Kaleb M

Thank you for reading! The code examples were meant to developerify it :) hope you enjoyed!

Collapse
 
kamranayub profile image
Kamran Ayub

A fellow FI path follower! Yes! I was going to write something similar soon about how I was able to take a 6 month sabbatical after only 4 years of working and how others can make it happen too.

The resources mentioned like ESIMoney are great, as well as the Choose FI podcast. They have made a significant impact on my life and I always recommend them whenever anyone is open to learning more.

Collapse
 
avatarkaleb profile image
Kaleb M

Thanks Kamran! 6 months doing what you want to sounds great, and I have a friend about to start his journey of one year!

Thanks for the podcast recommendation and look forward to the post !!