johnreypet@lio.com

Hi, I'm John Rey Petalio - a Web Developer, App Developer, and Visual Artist. I love playing Chess, and I'm currently learning Guitar and Video Editing. I love this song Padayon, and i love watching this movieS Inception, The Social Network, Interstellar and this animated movie Zootopia.

Operating Systems

My Projects

    KonektCons

    Building the future of On-demand Skilled Work

    A&A Mini Mart

    Full-stack e-commerce web application

    John Rey's Art Desktop project thumbnail - Interactive visual art portfolio

    John Rey's Art Desktop

    Interactive visual art portfolio

    Sorsogon Treasures

    Mobile tourism app for discovering Sorsogon's hidden gems and local attractions


Certificates

    Cyber Threat Management

    Cyber Threat Management

    (Cisco)

    Intro to Cybersecurity

    Intro to Cybersecurity

    (Cisco)

    Academic Achiever Certificate

    Academic Achiever Certificate

    (CCDI)

    Certificate of Academic Excellence

    Certificate of Academic Excellence

    (JNHS)

Back to Blog
Tutorial

From Calculator Logic to Database Fundamentals

October 4, 2021
7 min read
#databasesystems#programmingfundamentals#collegecoding tips

The Transition from Simple Programs to Data Management

Four months into my IT journey, I moved from simple calculator programs in Computer Programming 1 to understanding how data is stored, organized, and retrieved in Fundamentals of Database System. This transition marked a crucial turning point in my understanding of IT.

My First Database "Aha!" Moment

I'll never forget the moment I understood what a database actually was. Our professor asked us to think about how Facebook stores billions of user profiles, posts, and connections. Suddenly, databases weren't just abstract concepts—they were the backbone of everything digital.

From Calculator to Data Storage

Before: My programs could add 2 + 2 and display the result

After: I could store thousands of calculations, organize them, and retrieve specific results instantly

Key Concepts That Changed My Perspective

1. Data is Everywhere

Every app, website, and system I used daily was powered by databases. My Instagram photos? Database. My grades? Database. Even my favorite music playlist? You guessed it—database!

2. Organization Matters

Learning about normalization taught me that messy data leads to messy problems. Just like organizing your room makes finding things easier, organizing data makes everything more efficient.

3. Relationships Tell Stories

Understanding foreign keys and relationships was like learning a new language. Tables weren't isolated—they were connected, telling complete stories about users, orders, products, and more.

Practical Application: My First Database Project

For our final project, I designed a simple library management system. Here's what I learned:

Tables I Created

  • Students (ID, Name, Email)
  • Books (ISBN, Title, Author)
  • Loans (Student_ID, Book_ISBN, Date)

Challenges Faced

  • Designing efficient relationships
  • Preventing data duplication
  • Writing complex queries

Programming 2: Building on the Foundation

While databases taught me about data storage, Computer Programming 2 taught me how to interact with that data programmatically. Learning about:

  • Arrays and Lists: Managing collections of data in memory
  • File Handling: Reading from and writing to files
  • Error Handling: Making programs robust and user-friendly

The Connection Between Programming and Databases

The real magic happened when I realized how programming and databases work together:

// Before: Hard-coded data
String[] students = {"John", "Jane", "Bob"};

// After: Dynamic data from database
List<Student> students = database.getStudents();

🎯 Key Insight

Data without structure is chaos. Structure without data is meaningless. The magic happens when you combine both effectively.

Lessons That Still Guide Me Today

  1. Plan before you code: Design your data structure first
  2. Think in relationships: How do different pieces of data connect?
  3. Start simple: You can always add complexity later
  4. Test with real data: Sample data reveals real problems

Looking Back

These foundational courses set the stage for everything that followed. Every web application, mobile app, and system I've built since then relies on these core concepts. Understanding how to structure data and write clean code became the bedrock of my IT journey.

To current IT students: don't rush through these fundamentals. They might seem basic, but they're the foundation upon which everything else is built.

What did you think of this post?

I'd love to hear your thoughts and experiences. Have you had similar experiences in your IT journey? What courses or concepts changed how you think about technology?

Read More Posts