Skip to content

erolando/website

Repository files navigation

website

Portfolio

Development Learnings & Best Practices

🎯 Language Switch Implementation - Lesson Learned

Problem: Language switching button caused page freezing/unusual behavior.

❌ Wrong Approach (Over-engineering):

// Complex function overriding with async callbacks
const originalUpdateLanguage = updateLanguage;
updateLanguage = function (lang) {
    originalUpdateLanguage(lang);
    setTimeout(() => { /* complex async operations */ }, 10);
};

✅ Correct Approach (Simple & Direct):

document.getElementById('lang-toggle').addEventListener('click', function () {
    const newLang = currentLang === 'es' ? 'en' : 'es';
    updateLanguage(newLang);
    renderWebProjects();
    renderCertifications();
    updateFeaturedApp();
    renderProjects();
});

Key Learnings:

  1. Simplicity over complexity - Don't overcomplicate simple problems
  2. Trust existing code flow - renderProjects() already handles translations internally
  3. Sequential operations - Most operations are lightweight enough to be synchronous
  4. Avoid premature optimization - Don't assume async is needed without profiling

Principle: "Less code is more maintainable. Confidence in existing design over reinvention."


Certifications:

-iOS and Swift 5.7 Complete Course from Zero to Professional http://ude.my/UC-f33f4bb6-b549-4a50-a2a0-fa06cc319fc3 UC-f33f4bb6-b549-4a50-a2a0-fa06cc319fc3.pdf

-.NET 8 essential https://www.linkedin.com/learning/certificates/fc1e1e9dbc597803eb7e3f205ea3b1b9a336cfb7c03640ceb535cae164ff98d9 CertificadoDeFinalizacion_.NET_8_esencial.pdf

-Microsoft ASP NET MVC 5 (OWIN + KATANA) http://ude.my/UC-f2bc2d9f-f948-4392-b36c-1372760976e2 UC-f2bc2d9f-f948-4392-b36c-1372760976e2.pdf

-Microservices with .NET Core 3 up to its publication on Azure http://ude.my/UC-e24f4caa-f0b8-4bf6-82a6-1a1c44d66a95 UC-e24f4caa-f0b8-4bf6-82a6-1a1c44d66a95.pdf

-Asp.Net MVC + Entity Framework Course for Beginners http://ude.my/UC-14be8fe4-a604-4c8b-a790-f957921e27bd UC-14be8fe4-a604-4c8b-a790-f957921e27bd.pdf

-Real-Time Web Applications with ASP.NET Core SignalR http://ude.my/UC-80182119-b66a-490d-bf1f-019ec5034b65 UC-80182119-b66a-490d-bf1f-019ec5034b65.pdf

About

Portfolio

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published