TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Structure your Code via Namespacing in JavaScript

12 pointsby reybangoover 14 years ago

2 comments

Encosiaover 14 years ago
The simplicity of #1 and #2 seem to be overlooked too often, in search of solutions that look and feel more like traditional object orientation.
MorningZover 14 years ago
I like the 3rd method a lot! I'll have to start using it (i currently stick by the first method shown)