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.

Do you take time to develop schema/ requirement before programming?

7 pointsby panjaroover 10 years ago
Creating big applications obviously requires planning but do you guys plan for small applications? For example, creating a small application to record baseball games.... I finished creating DB schema in an hour but I'm not sure if I should move ahead and make changes as I write code or should I think for a day or two about it in depth.....

4 comments

MalcolmDiggsover 10 years ago
Absolutely. I delay coding for as long as humanly possible. Mostly because I hate having to re-do work. So I&#x27;ll usually spec out my schema, sitemaps, full mockups of everything, etc. Then I write my tests, and finally my code dead last.<p>The point for me is to make all the creative decisions (and to do all the creative waffling and do-overs) very early on in the process, on the whiteboard instead of in the IDE (because it&#x27;s faster to change functionality during the mockup stage than it is to rip out your code). Once I start coding everything should be spec&#x27;d in detail.
评论 #8582859 未加载
fallatover 10 years ago
Yes, I do. Even if it&#x27;s not final, at least you have an idea of the direction you&#x27;re taking. You&#x27;ll find out quickly if it&#x27;s the right direction or not. That&#x27;s the fun about development!
评论 #8581577 未加载
rahimnathwaniover 10 years ago
Are you using an ORM? If you&#x27;re writing a web app (at least in Rails, Django or Flask) you can start once you have a rough idea about your objects and properties (~= schema) and then use database migrations (e.g. with alembic) as you make changes.<p>If you don&#x27;t care about your test data, just have your ORM create a fresh set of empty tables for you, each time you change the schema.
评论 #8582245 未加载
评论 #8582863 未加载
haidraliover 10 years ago
I usually not draw it in any tool but always have a sketch in my mind or paper