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.

Objects are tools, not a way of coding – so I think

1 pointsby davidgattialmost 8 years ago

2 comments

al2o3cralmost 8 years ago
<p><pre><code> I believe that in the back-end world, the benefit of a Class is virtually zero. Once you start getting tens of thousands of requests per second, your code is just literally creating and destroying object at each request...For what? Because you are used to coding this way? Seems like a big waste of resources to me. </code></pre> I wanna hear more about this magical language where arrays &amp; hash tables aren&#x27;t also being &quot;created and destroyed at every request&quot;.<p>It&#x27;s certainly possible to have code that&#x27;s slow because it&#x27;s using too many objects, but it&#x27;s equally possible to write functional code that blows the stack because a change made tail-call optimization not happen.
GrumpyNlalmost 8 years ago
I couldn&#x27;t agree with you more.