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.

Programming without examples, demos, documentation?

9 pointsby quadfourover 11 years ago
Hello HN, i&#x27;m a informatics engineering student from Portugal. Lately i found that i almost always over rely on demos or examples to start something quick or solve some problem. Checking examples is obviously quicker, but that won&#x27;t do every time.<p>Last project i did, used apache jena (a java semantic web framework), they provide many examples on their website (i gotta say it needs improvement), if they didn&#x27;t i&#x27;m afraid it would have taken me way too much time to get stuff working. It has way more classes and patterns that my beginner brain can handle at once. I found generally that is really hard to find the starting points just by looking at javadoc&#x27;s. So, how do you manage when something you want to use is complex and there is no examples( or documentation), is this just an endurance problem to figure out how everything works? do you have any special approach? Thanks

3 comments

pedalpeteover 11 years ago
Depending on the situation, you may be able to jump into the source code and check how they do things, but personally, I don&#x27;t.<p>If the developer&#x2F;community of a language, framework, library, etc. etc. haven&#x27;t taken the time to write good documentation and provide some examples, I tend to stay away from it. It takes extra time for us to understand how something was built, and why. The developer should help us along with this.<p>Think about even the simplest API if it isn&#x27;t documented, how long will it take you to figure out what you can do with it and how.<p>For me, it is also likely that the original developer is a much better programmer than I am. Or at least, I assume they are. I suspect there will be much of their source that I don&#x27;t understand. Of course, reading their code makes me a better developer, but I&#x27;ll often need help, and good documentation will help along with that.<p>It sounds horrible to say &quot;I expect that if you&#x27;re going to create an open-source bit of code that will help me code better&#x2F;easier&#x2F;faster, I also expect you to document it well and give examples&quot;, but if somebody is going through the trouble of developing something they want other people to use, I think this is an important part of that process.<p>What do people think of documenting first, and building from that documentation? I&#x27;m putting together my first open-source project, and am thinking that may be a good way to manage the documentation thing. Anybody done that before?
评论 #7124796 未加载
ksherlockover 11 years ago
Use the source. Or a disassembler.
liuyanghejerryover 11 years ago
Let&#x27;s have lunch without forks, spoons, or chopsticks.