Skip to content

Instantly share code, notes, and snippets.

View bryanprimus's full-sized avatar
🏠
Working from home

Bryan Lumbantobing bryanprimus

🏠
Working from home
View GitHub Profile
@bryanprimus
bryanprimus / answer.md
Created April 13, 2025 16:57
Part 4: Bonus Firebase technical questions

Part 4: Firebase Technical Challenges

Question 1: Creating a Smart User Ranking System in Firestore

The traditional approach of simply chaining .orderBy() methods won't create a true multi-factor ranking system for our potential users. We need a more sophisticated solution that truly balances all three factors.

Here's my approach using a composite scoring method: