Home Projects Portfolio Dashboard Export PDF Log in

Iterative Portfolio Growth: Keeping Skills Dynamic in TypeScript

Introduction

Maintaining a personal portfolio, such as the Portafolio project, often feels like a balancing act between showcasing past achievements and demonstrating current technical growth. As I continue to iterate on this codebase, I recently reached a point where the stack of skills needed a refresh to better reflect my current focus.

The Challenge: Keeping Skills Relevant

In a fast-moving ecosystem, the technologies we use shift rapidly. When building out the skills section, I needed a way to manage these updates cleanly without cluttering the main logic of the application. The goal was to ensure that adding a new skill is as simple as updating a configuration object, keeping the UI logic decoupled from the data.

Managing Skill Sets

Rather than hardcoding lists into my React components, I moved toward a centralized definition approach. This allows me to map over a stable data structure, keeping my Tailwind CSS styles consistent across the entire grid.

interface Skill {
  name: string;
  category: 'frontend' | 'backend' | 'database';
  level: number;
}

const SKILLS_DATA: Skill[] = [
  { name: 'React', category: 'frontend', level: 5 },
  { name: 'TypeScript', category: 'frontend', level: 5 },
  { name: 'PostgreSQL', category: 'database', level: 4 }
];

export const SkillGrid = () => (
  <div className="grid grid-cols-3 gap-4">
    {SKILLS_DATA.map(skill => (
      <div key={skill.name} className="p-4 border rounded">
        {skill.name}
      </div>
    ))}
  </div>
);

Why This Matters

By treating your skill set as data, you treat your portfolio like an application. This approach provides several benefits:

  1. Type Safety: With TypeScript, I ensure that every skill added adheres to the defined interface, preventing runtime errors in the component.
  2. Scalability: Adding a new skill is now a single-line change in a data file, rather than modifying JSX structure.
  3. Consistency: Changes to the styling (e.g., updating Tailwind classes) are applied globally via the component mapping, rather than manually updating every entry.

Actionable Takeaway

Stop hardcoding lists in your UI components. Move your content to a structured data object or a constant file. This makes your codebase easier to maintain and allows you to focus on building new features rather than fighting with repetitive markup. Next time you need to add a skill or feature, try decoupling the data from the view first.


Generated with Gitvlg.com

Iterative Portfolio Growth: Keeping Skills Dynamic in TypeScript
LAUTARO NICOLAS ZULETA

LAUTARO NICOLAS ZULETA

Author

Share: