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.

Why you always initialize on declaration

13 pointsby jgershenalmost 14 years ago

1 comment

arsalmost 14 years ago
"The code caused the capacitors to keep charging even after they had reached their limit, until kaboom."<p>Sorry, but that isn't possible. Maybe if you keep raising the voltage (which would be a pretty strange thing to do), but even then it wouldn't cause an explosion, but rather a short. And no capacitor I have ever heard of can store enough energy to explode.
评论 #2664051 未加载