You are not logged in

Learning the Hard Way: Adventures in Data Security, Schema Markup, and Git

Oct. 28, 2024, 7:17 p.m.

Woman using a computer Cottonbro Studio
80 Views

Today’s journey had me feeling both empowered and a bit humbled - a reminder that even as a beginner developer, the stakes of privacy, data security, and code quality are as real as ever.

I spent hours wrestling with everything from data protection to implementing best practices for user experience, plus a deep dive into something new: schema markup. These concepts are fundamental to building a site I can be proud of and trust, especially as I prepare to handle user data more responsibly.

I may only have three test users right now (all of them are actually me!) and a handful of spam bots, but I treated those accounts like they were real users—because in the future, they will be. And whether it's me, a genuine user, or even a spam bot, my approach is the same: privacy and data respect are paramount.

Git History Cleanup: Keeping Data Secure

The day kicked off with a challenge that I didn’t expect to be so intense: cleaning up Git history to remove sensitive data. I realised that in my quest to learn how to backup my data, mainly to keep all my blog posts safe in-case I deleted everything by accident, that I had sent the data to my (currently private) GitHub repo. Sure, it was just a few test email addresses and mock contacts, but keeping that information safe felt like the right move for practicing real-world security. Here’s how it went down:

  1. Identifying the Sensitive Data: Using Git tools, I quickly found out the past commits which included data I wanted to remove. This led me to learn about Git history cleanup commands, like git filter-branch and git filter-repo.

  2. Executing the Cleanup: After setting up backups, I ran the cleanup command, carefully checking each step. The satisfaction of seeing my Git history free from those details was worth every second.

  3. Takeaway: Even for beginners, data security is non-negotiable. It’s worth the extra effort to practice it early on, which will pay off when I’m working on larger projects.

Schema Markup: Making Sense of Structured Data

A surprise discovery today was schema markup, something I hadn’t considered before but quickly realised could be a game-changer for SEO.

Schema markup is a type of structured data that helps search engines understand the content on my site better, allowing them to present more detailed results in search listings. For example, a blog post could show up with a featured snippet or with details like publish date, author, and a short description.

Why I’m Excited to Try Schema Markup

  1. Enhanced SEO Visibility: Schema markup could help my blog posts stand out in search results with added details. And as a beginner, anything that gives my site more visibility is worth exploring.

  2. Opens Up a New Area to Master: SEO is one part of development that often takes a back seat, but with schema markup, I get a tangible way to work on it while learning structured data principles.


User Experience on Comments: Empowering My Users

Another key focus today was on refining the user experience for commenting. I want users to feel in control of their content, so I worked on a feature allowing them to edit or delete their own comments.

The Challenge

My scripts were a bit tangled, and I found myself inadvertently duplicating functionality between different files. I cleaned this up by refactoring and focusing on separation of concerns. This keeps each script’s purpose clear and manageable.

Key Takeaways

  1. User Control: Letting users edit or delete comments is an empowering feature. It’s all about respecting their experience on the site.

  2. Script Management: Keeping functionality organized and avoiding duplication is key to a maintainable codebase.

Wrapping Up: Today’s Takeaways and Gaps to Fill

Today was all about learning the hard way: tackling complex security measures, embracing a new SEO technique, and ensuring that every piece of functionality is geared toward a great user experience. And while I feel more confident, I’m also fully aware of the gaps I need to address. Areas like privacy standards, advanced SEO, and efficient code organization will be ongoing topics to explore.

Every challenge today was a reminder that respecting privacy, prioritizing data security, and putting the user first are essential. Here’s to more learning, fewer security risks, and an even better site tomorrow.

Comments:

No comments yet. Be the first to comment!

Please log in to leave a comment

Register

Want to stay updated on my Full Stack Adventure?

Subscribe to receive weekly updates and exclusive content!

Join the Journey