<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: danitellini</title>
    <description>The latest articles on DEV Community by danitellini (@danitellini).</description>
    <link>https://dev.to/danitellini</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F2201256%2Fe3d0552b-73e8-45f9-98f4-9613d2099937.jpg</url>
      <title>DEV Community: danitellini</title>
      <link>https://dev.to/danitellini</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/danitellini"/>
    <language>en</language>
    <item>
      <title>Budget Smartly with Python: A Feature-Packed Budget Tracker Program</title>
      <dc:creator>danitellini</dc:creator>
      <pubDate>Tue, 29 Oct 2024 08:47:00 +0000</pubDate>
      <link>https://dev.to/danitellini/budget-smartly-with-python-a-feature-packed-budget-tracker-program-5c9j</link>
      <guid>https://dev.to/danitellini/budget-smartly-with-python-a-feature-packed-budget-tracker-program-5c9j</guid>
      <description>&lt;h2&gt;
  
  
  Introduction
&lt;/h2&gt;

&lt;p&gt;Managing personal finances can be challenging, especially when balancing bills, expenses, and savings. Inspired by this everyday need, I created a budget tracker program in Python, designed to simplify personal budgeting and empower users to take control of their finances. This program features tracking income, expenses, and recurring bills and even set and manage savings goals. It was designed to be a practical, interactive tool, suitable for both beginner programmers and individuals seeking an easy-to-use budgeting solution.&lt;/p&gt;




&lt;h2&gt;
  
  
  Program Overview
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F74pxjkr97nrcjqrwrz1k.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F74pxjkr97nrcjqrwrz1k.png" alt="Program Screenshot" width="800" height="290"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Above: A screenshot of the budget tracker's main menu&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;The program has several core functionalities, allowing users to:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Add Income and Expenses:&lt;/strong&gt; Track all sources of income and expenses, each recorded with timestamps.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Manage Recurring Bills:&lt;/strong&gt; Set up bills to automatically recur at specified intervals (weekly, monthly), with automatic balance updates.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;View and Delete Entries:&lt;/strong&gt; Quickly access and delete entries for income, expenses, or bills as needed.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Set and Monitor Savings Goals:&lt;/strong&gt; Users can create multiple savings goals and monitor their progress with calculated time frames based on contributions.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Export Data to CSV:&lt;/strong&gt; For more detailed analysis, users can export all data to a CSV file, compatible with software like Excel or Google Sheets.&lt;/li&gt;
&lt;/ul&gt;




&lt;h2&gt;
  
  
  Code Description
&lt;/h2&gt;

&lt;p&gt;The code is written in Python and organized into modular functions for each major feature. The main program uses a command-line interface, which interacts with the user in real time. Here are some key highlights:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Persistent Data Storage:&lt;/strong&gt; All data, including the last program startup time, is stored in a JSON file. This allows the program to process and display only the processed recurring bills during the time between each new session start.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Recurring Bill Processing:&lt;/strong&gt; Bills are scheduled based on a timestamp of the previous session, ensuring that only new bills appear for processing. The program calculates new due dates for recurring bills and adjusts the user's balance as bills are processed.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;CSV Export with Timestamps:&lt;/strong&gt; Each income and expense entry includes a timestamp, and users can export this data to a CSV file for external analysis.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Error Handling:&lt;/strong&gt; The program includes input validation, ensuring entries for income, expenses, bills, and other data are correctly formatted.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;You can find the complete code on GitHub &lt;a href="https://github.com/danitellini/Codecademy---Computer-Science---Portfolio-Projects/tree/master" rel="noopener noreferrer"&gt;here&lt;/a&gt;. It's well-commented for clarity and easy modification, perfect for anyone looking to understand or build upon this functionality.&lt;/p&gt;




&lt;h2&gt;
  
  
  Conclusion
&lt;/h2&gt;

&lt;p&gt;This budget tracker is more than just a Python program -- it's a real-world application that simplifies personal budgeting. The program can be easily expanded or customized for new features. Whether you're looking to improve your Python skills or streamline your finances, I hope this project can serve as both an educational and practical tool.&lt;/p&gt;

&lt;p&gt;Feel free to check out the code on GitHub, and let me know what you think! Happy coding and happy budgeting!&lt;/p&gt;

</description>
      <category>codecademy</category>
      <category>python</category>
      <category>beginners</category>
    </item>
    <item>
      <title>Portfolio Project - Intro to IT - Software Development Concepts</title>
      <dc:creator>danitellini</dc:creator>
      <pubDate>Sat, 12 Oct 2024 07:23:47 +0000</pubDate>
      <link>https://dev.to/danitellini/portfolio-project-intro-to-it-software-development-concepts-4dn9</link>
      <guid>https://dev.to/danitellini/portfolio-project-intro-to-it-software-development-concepts-4dn9</guid>
      <description>&lt;h2&gt;
  
  
  &lt;strong&gt;Speeding Up Log Searches with a Pattern Searching Algorithm&lt;/strong&gt;
&lt;/h2&gt;

&lt;p&gt;Tired of digging through endless logs just to find one pesky error? A pattern searching algorithm can do all the heavy lifting for you, saving you tons of time. Instead of sifting through log after log, this algorithm scans them for you, looking for specific keywords like "ERROR" or "FAILURE." It’s like having a super-fast assistant to help you out.&lt;/p&gt;

&lt;p&gt;Here's how it works: You give the algorithm the pattern you want to find and a list of logs. It checks if there are logs to search, then if you’ve provided a pattern. If something’s missing, it lets you know with messages like “No logs to search” or “No pattern provided.” If everything’s good, it searches through each log, saving any that match the pattern. Once done, it either gives you the list of matches or says, “No pattern found.”&lt;/p&gt;

&lt;p&gt;The process is simple, as you can see in this flowchart.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F8lyykcgusvhpggdrzxh3.jpg" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F8lyykcgusvhpggdrzxh3.jpg" alt="Image description" width="800" height="580"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Here’s the pseudocode to give you a peek at the logic behind it:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;define pattern
define log or logs
create list_of_logs = []

if list_of_logs is empty:
  "No logs to search"
  end

if pattern is empty:
  "No pattern provided"
  end

create pattern_present = []

for each log in list_of_logs:
  if pattern is found in the log:
    append the log to pattern_present
  end if
end for

if pattern_present is empty:
  "No pattern found"
  end

return the pattern_present list
end
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;And that's it! With this simple algorithm, you'll breeze through your logs, find exactly what you need, and move on to bigger things.&lt;/p&gt;

</description>
      <category>codecademy</category>
      <category>pseudocode</category>
      <category>flowcharts</category>
    </item>
  </channel>
</rss>
