J José Leiva
Home Projects Portfolio Dashboard Export PDF Log in

Languages

English
64

Latest Updates

Documenting code, one commit at a time.

Optimizing Financial Logic: Shifting Calculations to the Backend

Moving logic from the frontend to the backend is often the first step toward a more secure and performant application. Recently, in the Proyecto-FinanzApp.io project, we transitioned our financial filtering and calculation engine from the client-side to our Express-based API.

The Problem: Client-Side Bloat

Previously, our React frontend was responsible for performing complex array manipulations to filter income and expense records and calculate running totals.

Optimizing Data Relationships in the Prueba-Andes-Airlines-Bsale Project

In the Prueba-Andes-Airlines-Bsale project, we recently focused on strengthening our data layer by formalizing model associations and enhancing our API's query capabilities. Managing complex data structures often feels like organizing a massive library: without a proper index or defined cataloging system, finding specific information—like a single flight record—becomes an exhausting task.

Strengthening Data Integrity

To ensure our application maintains reliable data consistency, we

Scaling Financial Applications: Architecting the Foundation of Proyecto-FinanzApp.io

The Foundation of Financial Management

Building a robust financial tracking application requires more than just a functional UI; it demands a scalable architecture that can handle data consistency and secure user state management. The Proyecto-FinanzApp.io project is currently transitioning from a functional prototype into a comprehensive financial suite, focusing on building a reliable bridge between user interactions and backend services.

Establishing the Data Layer

Bootstraping Scalable Architecture with Sequelize and Express

Setting the Foundation

When starting a new project like Prueba-Andes-Airlines-Bsale, the initial architectural decisions dictate the long-term maintainability of the codebase. Our goal was to build a robust backend foundation using a combination of Express and Sequelize, ensuring that our data models remain consistent regardless of the underlying database engine.

By leveraging an Object-Relational Mapper (ORM), we abstract away the specific syntax of SQL dialects, allowing our

Scaling Financial Data: Managing Bank Accounts in Proyecto-FinanzApp

Managing financial entities in a web application is a classic balancing act between flexibility and data integrity. In the Proyecto-FinanzApp project, we recently focused on streamlining how users interact with their bank account records. The goal was simple: ensure users can seamlessly add or remove accounts without creating orphan data or triggering UI inconsistencies.

The Challenge of State Synchronization

When dealing with financial dashboards, the UI state often drifts from the source

Precision Matters: Handling Monetary Values and Recurring Logic in FinanzApp.io

Floating point arithmetic is the classic trap of financial applications. Recently, while working on Proyecto-FinanzApp.io, we encountered inaccuracies in monetary conversions that highlighted a critical need for stricter data handling.

The Problem with Decimals

When calculating financial values, relying on standard decimal types in a database can lead to rounding errors that compound over time. In a system like FinanzApp.io, even a fractional cent can create significant discrepancies in