11 Replies - 561 Views - Last Post: 10 March 2010 - 04:08 AM Rate Topic: -----

#1 ProdicalProgrammer  Icon User is offline

  • D.I.C Head
  • member icon

Reputation: 5
  • View blog
  • Posts: 115
  • Joined: 26-June 09

Best way to design a prgram

Posted 09 March 2010 - 08:59 AM

Hi Guys

Just out of curiosity what is the best way to program design create the GUI first then do the database.

Or do the database then the GUI just advice i dont want code thanks.

Also any body knows any good ideas on C.R.U.D applications and a good tutorial on netbeans.

Thanks
Is This A Good Question/Topic? 0
  • +

Replies To: Best way to design a prgram

#2 nick2price  Icon User is online

  • D.I.C Lover
  • member icon

Reputation: 561
  • View blog
  • Posts: 2,826
  • Joined: 23-November 07

Re: Best way to design a prgram

Posted 09 March 2010 - 09:12 AM

Problably easier to do the database code first, cos it will be easy testing it with the command line. Once your happy with things, create your gui. Either way however, it doesnt really matter which way round you do things.
Was This Post Helpful? 2
  • +
  • -

#3 macosxnerd101  Icon User is offline

  • Self-Trained Economist
  • member icon




Reputation: 10176
  • View blog
  • Posts: 37,571
  • Joined: 27-December 08

Re: Best way to design a prgram

Posted 09 March 2010 - 09:12 AM

I think both will be closely intertwined, as to design the database, you have to have an idea of the information and components that will be interacting with it. However, you can't design the GUI by itself if you don't have an idea of what tables it will need to interact with.
Was This Post Helpful? 2
  • +
  • -

#4 m-e-g-a-z  Icon User is offline

  • Winning
  • member icon


Reputation: 496
  • View blog
  • Posts: 1,453
  • Joined: 19-October 09

Re: Best way to design a prgram

Posted 09 March 2010 - 10:30 AM

From classroom experiance, ive seen people start with the GUI and then fail at connecting to database / executing queries. Which is your strongest area? Using databases with java or GUI? Start with the one you are least strong in and whilst doing that, combine it with the other.
Was This Post Helpful? 1
  • +
  • -

#5 pbl  Icon User is offline

  • There is nothing you can't do with a JTable
  • member icon

Reputation: 8315
  • View blog
  • Posts: 31,836
  • Joined: 06-March 08

Re: Best way to design a prgram

Posted 09 March 2010 - 06:36 PM

Database first !!!

As nick2price mentionned you can then test it from console mode application or with a main() method into it to test it.
All your Select, Insert, Update can the be tested.

Then you can add the GUI.

Doing the GUI first might have a perverse influence in the way you will design your database access methods.
Actually to really do neet stuff you should have a layer between your database and the GUI.
This layer could/should be completly independant if the Database is queried by either a console application or a GUI.

So Database ---> layer that populate Vector from queries ---> GUI or console to read these Vectors
Was This Post Helpful? 3
  • +
  • -

#6 Dogstopper  Icon User is offline

  • The Ninjaducky
  • member icon



Reputation: 2857
  • View blog
  • Posts: 10,960
  • Joined: 15-July 08

Re: Best way to design a prgram

Posted 09 March 2010 - 07:33 PM

I have to definitely agree with pbl on this one. That is actually the way that most professional programs are built. Start by making the backend and testing with the command line. Then, one makes an interface level where the backend is kept separately from the user. That way, the user does not interfere with the inner workings of the system. Then and only then should you build a GUI to communicate with that layer.
Was This Post Helpful? 3
  • +
  • -

#7 pbl  Icon User is offline

  • There is nothing you can't do with a JTable
  • member icon

Reputation: 8315
  • View blog
  • Posts: 31,836
  • Joined: 06-March 08

Re: Best way to design a prgram

Posted 09 March 2010 - 08:54 PM

View PostDogstopper, on 09 March 2010 - 08:33 PM, said:

I have to definitely agree with pbl on this one.


What do you mean "on this one" ??? :gun_bandana:
Was This Post Helpful? 0
  • +
  • -

#8 Dogstopper  Icon User is offline

  • The Ninjaducky
  • member icon



Reputation: 2857
  • View blog
  • Posts: 10,960
  • Joined: 15-July 08

Re: Best way to design a prgram

Posted 09 March 2010 - 08:55 PM

I've disagreed with you before....I think...
Was This Post Helpful? 0
  • +
  • -

#9 ProdicalProgrammer  Icon User is offline

  • D.I.C Head
  • member icon

Reputation: 5
  • View blog
  • Posts: 115
  • Joined: 26-June 09

Re: Best way to design a prgram

Posted 10 March 2010 - 03:33 AM

Thanks guys....

Much appreciated but do you guys know any good netbean tutorials and any good C.R.U.D applications i can develop begginer lever with a SQL Database
Was This Post Helpful? 0
  • +
  • -

#10 Dogstopper  Icon User is offline

  • The Ninjaducky
  • member icon



Reputation: 2857
  • View blog
  • Posts: 10,960
  • Joined: 15-July 08

Re: Best way to design a prgram

Posted 10 March 2010 - 03:45 AM

Here is a C.R.U.D. tuttorial that utilized the Netbeans IDE. http://platform.netb...s/nbm-crud.html

However, let me clarify something for you. Netbeans is not a language...It is an IDE (Integrated Developer's Environment) which just basically means that it is an editor that sends code to the compiler, javac.

This post has been edited by Dogstopper: 10 March 2010 - 03:46 AM
Reason for edit:: fixed link

Was This Post Helpful? 0
  • +
  • -

#11 ProdicalProgrammer  Icon User is offline

  • D.I.C Head
  • member icon

Reputation: 5
  • View blog
  • Posts: 115
  • Joined: 26-June 09

Re: Best way to design a prgram

Posted 10 March 2010 - 03:58 AM

Hi

Yes i knew that thanks for the clarification i just wanted to know how to use it ive been programming with text pad which was fairly simple now i use netbeans and my college only give me theory the rest i have to suck out my thumb.

Thanks hey your help is much appreciated
Was This Post Helpful? 0
  • +
  • -

#12 Dogstopper  Icon User is offline

  • The Ninjaducky
  • member icon



Reputation: 2857
  • View blog
  • Posts: 10,960
  • Joined: 15-July 08

Re: Best way to design a prgram

Posted 10 March 2010 - 04:08 AM

You're very welcome. See yah round!
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1