TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Namespaces are obsolete

5 点作者 niyazpk超过 12 年前

2 条评论

kstenerud超过 12 年前
"programmers like neat little boxes, and especially boxes within boxes within boxes. For some reason. Regular human beings on the other hand, tend to think linearly, which is why the Windows explorer for example has tried in a few different ways to flatten the file system hierarchy for the user."<p>Regular people think in terme of boxes-inside-boxes as well. They'll know, for example, that the dog food is kept in a sealed plastic container in the bottom drawer of the leftmost cupboard in the kitchen. That's a four level hierarchy, just for the dog food. Same goes for books, clothes, the vacuum cleaner, the band-aids - hell, pretty much everything.<p>Hierarchies are how we keep information sets small and manageable. Removing that does not simplify things; it's more like just lumping everything you own into a big pile on the floor and searching through hundreds of items every time you need something.
mindstab超过 12 年前
I'm a little confused. A purely OO programmer mostly in .Net land sees one cute JS trick example and declares Namespaces obsolete? I'm not sure which side of this is more funny/confusing: that there are plenty of other languages doing this already or that there are others just not using namespaces already/forever. Or that even ones that don't exactly use them still sometimes replicate some of their features just with long naming conventions...<p>It seems a very personal epiphany, not really news worthy tho. It's kind of like an Onion title "Area man discovers X" where X is common facet of knowledge to the rest.
评论 #4480058 未加载