Zach Taiji's Wiki

Home

❯

pages

❯

Visual Code Commenting Hierarchy Examples

Visual Code Commenting Hierarchy Examples

Oct 04, 20251 min read

  • dev
  • wiki

banner

File-Level Overview

/**
• 📌 File: userController.js
• 📌 Purpose: Handles user authentication & management
• 📌 Author: Zach
• 📌 Last Modified: 2025-02-04
• 📌 Notes: Uses JWT for authentication
*/

Headers

/** =======================================
 * 🔧 Utility Functions (Helper Methods)
 * =======================================
 * Contains reusable helper functions for 
 * string manipulation, data formatting, etc.
 */
/** ================================
 * 🏗️ User Authentication Functions
 * ================================ */

Function/Method Descriptions

/**
 * 🔑 Logs in a user using email and password.
 * @param {string} email - The user's email address.
 * @param {string} password - The user's password.
 * @returns {Promise<string>} - A JWT token if successful.
 */
async function loginUser(email, password) {
    // Function logic...
}

Inline Code

// 🛠️ Hash the password before saving it to the database
const hashedPassword = await bcrypt.hash(password, 10);

Temporary or Debugging Notes

// TODO: Optimize this loop for performance
for (let i = 0; i < users.length; i++) {
    console.log(users[i]); // Debugging output
}

Deprecated or Unused Code

// ❌ DEPRECATED: Use the new loginUser() method instead
function oldLoginMethod() {
    console.warn("This function is deprecated.");
}

Graph View

  • File-Level Overview
  • Headers
  • Function/Method Descriptions
  • Inline Code
  • Temporary or Debugging Notes
  • Deprecated or Unused Code

Created with Quartz v4.5.2 © 2025

  • Blog