Jump to content

  • Log In with Google      Sign In   
  • Create Account


Anyone know a program to design classes?


Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.

  • You cannot reply to this topic
10 replies to this topic

#1 Vortez   Crossbones+   -  Reputation: 2697

Like
0Likes
Like

Posted 27 June 2013 - 04:19 PM

The title says it all, id like to have a program that help me design multiples classes and see their relationship with each others.

 

The thing is, im trying to refactor my remote pc program, which work very well but is becoming a pain to manage/upgrade.

It as asyncronous network io, multiple threads, stuff like that so it's getting really confusing at this point, so id like something that

help me see more visually the relation between the objects, and the threads.

 

If that's not enough, both my client and server program can connect using either a server or client socket, so the connection can be done both ways (in case the server program is behind a router, and the client not, for example).

 

I wanted my client program to be able to connect to multiple server, but failed because of this mess.


Edited by Vortez, 27 June 2013 - 04:23 PM.


Sponsor:

#2 TheChubu   Crossbones+   -  Reputation: 4060

Like
4Likes
Like

Posted 27 June 2013 - 05:09 PM

There is a thing called Unified Modeling Language, UML, which provides among many other things, class diagrams to show such relationships.

 

This is one of many UML tools around, and its free http://sourceforge.net/projects/whitestaruml/

 

You'll have to search around about how to use such class diagrams though, they have their own nomenclatures (ie, + for public, # for protected, - for private) and most tools around will try to encompass all of UML which means a ton of stuff you won't use.

 

You could also just use more or less the same conventions and do everything in Visio or LibreOffice Draw.

 

Aaaand depending on what tools you're using to code, you can probably get a plugin or something that outputs UML class diagrams for your code (there are a few for Eclipse + Java for example).


"I AM ZE EMPRAH OPENGL 3.3 THE CORE, I DEMAND FROM THEE ZE SHADERZ AND MATRIXEZ"

 

My journals: dustArtemis ECS framework and Making a Terrain Generator


#3 Orangeatang   Members   -  Reputation: 1448

Like
3Likes
Like

Posted 28 June 2013 - 01:20 AM

UML is the way to go. I've always liked Violet (http://alexdp.free.fr/violetumleditor/page.php); it's lightweight with a very simple user interface and free to use.



#4 Vortez   Crossbones+   -  Reputation: 2697

Like
0Likes
Like

Posted 28 June 2013 - 01:43 AM

UML is the way to go. I've always liked Violet (http://alexdp.free.fr/violetumleditor/page.php); it's lightweight with a very simple user interface and free to use.

 

That seem like a nice program but i don't understand how to execute it. It's in a .jar file, which apparently is the same as a zip file, but when i extract it there is no executable, i don't get it.



#5 Orangeatang   Members   -  Reputation: 1448

Like
3Likes
Like

Posted 28 June 2013 - 02:13 AM


It's in a .jar file, which apparently is the same as a zip file, but when i extract it there is no executable, i don't get it.

.jar files are for all intents and purposes executable, you just need the latest java runtime environment installed... this should do it http://download.cnet.com/Java-Runtime-Environment-JRE/3000-2378_4-10009607.html

 

Once installed you should just be able to double click on the .jar file.



#6 JMinator31   Members   -  Reputation: 233

Like
2Likes
Like

Posted 28 June 2013 - 02:29 AM


That seem like a nice program but i don't understand how to execute it. It's in a .jar file, which apparently is the same as a zip file, but when i extract it there is no executable, i don't get it.

 

I dont know much about the program but you might be able to use Violet if you install a Java Virtual Machine.



#7 SimonForsman   Crossbones+   -  Reputation: 6032

Like
2Likes
Like

Posted 28 June 2013 - 03:41 AM

 


It's in a .jar file, which apparently is the same as a zip file, but when i extract it there is no executable, i don't get it.

.jar files are for all intents and purposes executable, you just need the latest java runtime environment installed... this should do it http://download.cnet.com/Java-Runtime-Environment-JRE/3000-2378_4-10009607.html

 

Once installed you should just be able to double click on the .jar file.

 

 

WinRAR overrides the .jar extension (unless you explicitly tell it not to) and tries to open it as an archive which is why it seems like a "zip" file to the OP.

reinstalling Java should solve the problem. (He could also manually change which program is used to open .jar files (shift right click, open with, select the java runtime and "always use this program" thingy IIRC)


I don't suffer from insanity, I'm enjoying every minute of it.
The voices in my head may not be real, but they have some good ideas!

#8 Vortez   Crossbones+   -  Reputation: 2697

Like
0Likes
Like

Posted 28 June 2013 - 03:53 PM

Thank you



#9 Vortez   Crossbones+   -  Reputation: 2697

Like
0Likes
Like

Posted 28 June 2013 - 04:09 PM

Is this program only in french? Don't get me wrong, i speak french, but i would like to have it in english since im more use to the terminalogy, but i cant find any option to change it, and event settings english as my default language in panel control dosen't help.



#10 superman3275   Crossbones+   -  Reputation: 2011

Like
0Likes
Like

Posted 28 June 2013 - 09:32 PM

If you want an example of good class design, I have a hugely commented breakout game on my developer journal which describes how to document your classes and has some pretty nice examples of Inheritance, Polymorphism, Virtual Classes (at least a Base class which is never instanced), and other object-oriented techniques.

 

I've found brain-mapping tools to be clunky, and prefer to think out the basic structure and figure out how my data is getting passed around / used.

 

Luckily, I don't have to worry about State-Machines and things like that because I've already coded my own.


I'm a game programmer and computer science ninja ph34r.png!

Here's my 2D RPG-Ish Platformer Programmed in Python + Pygame, with a Custom Level Editor and Rendering System!

 

Here's my Custom IDE / Debugger Programmed in Pure Python and Designed from the Ground Up for Programming Education!

Want to ask about Python, Flask, wxPython, Pygame, C++, HTML5, CSS3, Javascript, jQuery, C++, Vimscript, SFML 1.6 / 2.0, or anything else? Recruiting for a game development team and need a passionate programmer? Just want to talk about programming? Email me here:

hobohm.business@gmail.com

or Personal-Message me on here smile.png!


#11 Orangeatang   Members   -  Reputation: 1448

Like
0Likes
Like

Posted 29 June 2013 - 07:10 AM


Is this program only in french?

My version definitely isn't in French, not sure why yours would be sorry






Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.



PARTNERS