Java-Gaming.org Hi !
Featured games (90)
games approved by the League of Dukes
Games in Showcase (767)
Games in Android Showcase (230)
games submitted by our members
Games in WIP (854)
games currently in development
News: Read the Java Gaming Resources, or peek at the official Java tutorials
 
    Home     Help   Search   Login   Register   
Pages: [1]
  ignore  |  Print  
  Object Oriented thinking tips  (Read 1846 times)
0 Members and 1 Guest are viewing this topic.
Offline K.I.L.E.R

Senior Devvie




Java games rock!


« Posted 2006-05-06 15:08:37 »

We've all heard about how unit testing is really about creating code before actually creating the code that actually runs the code you're writing.
I just found that I'm thinking more OOPly by using a feature of Eclipse called "Show source of selected element only".
What this does is it allows you to move all complexity of a code file and focus on 1 element at a time, however to actually create code you need to do 2 things:

1/ In the class outline, click on the class name in order to show the whole class and then from there on make your variable or whatnot.
2/ Ctrl-1! Design before coding backend then proceed to ctrl-1 everything because it will all be underlined in red. Smiley

Doing things this way(option 2) even ensures that I write documentation for my variables.
I never did this before because the complexity of a class explodes exponentially *cough* Swing code *cough*.
Using this feature makes me concentrate on the single task at hand and not code multiple methods simultaneously.

Anyway I solved my multi-coding issues and it's made me a hell of a lot more productive thanks to this feature.
Anyone have any other tips which is helpful for coding?

Vorax:
Is there a name for a "redneck" programmer?

Jeff:
Unemployed. Wink
Offline Mr_Light

Senior Devvie


Medals: 1


shiny.


« Reply #1 - Posted 2006-05-06 15:44:26 »

anyone using maven?

It's harder to read code than to write it. - it's even harder to write readable code.

The gospel of brother Riven: "The guarantee that all bugs are in *your* code is worth gold." Amen brother a-m-e-n.
Offline swpalmer

JGO Coder


Exp: 12 years


Where's the Kaboom?


« Reply #2 - Posted 2006-05-08 05:09:52 »

anyone using maven?

I've heard the name, but haven't got a clue what it is supposed to do.

Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline Mr_Light

Senior Devvie


Medals: 1


shiny.


« Reply #3 - Posted 2006-05-08 07:25:06 »

to controll/manage a project bij profiding one step deployed, automatic downloading of dependencies and what not.

the issue with it I'm having atm is that they can't store sun binaries in ibilio(a repository) because of the (somewhat) restrictive nature of the sun licence. (I saw a news posted that they changed it recently and at javaone 16/8 it should be officially announced / additional changes.

It's harder to read code than to write it. - it's even harder to write readable code.

The gospel of brother Riven: "The guarantee that all bugs are in *your* code is worth gold." Amen brother a-m-e-n.
Offline Mr_Light

Senior Devvie


Medals: 1


shiny.


« Reply #4 - Posted 2006-05-09 13:25:36 »

btw I tried looking fot that eclipse feature but couldn't find it, can II get some pointers?

It's harder to read code than to write it. - it's even harder to write readable code.

The gospel of brother Riven: "The guarantee that all bugs are in *your* code is worth gold." Amen brother a-m-e-n.
Pages: [1]
  ignore  |  Print  
 
 

 
EgonOlsen (1314 views)
2018-06-10 19:43:48

EgonOlsen (1179 views)
2018-06-10 19:43:44

EgonOlsen (916 views)
2018-06-10 19:43:20

DesertCoockie (1317 views)
2018-05-13 18:23:11

nelsongames (1106 views)
2018-04-24 18:15:36

nelsongames (1338 views)
2018-04-24 18:14:32

ivj94 (2080 views)
2018-03-24 14:47:39

ivj94 (1231 views)
2018-03-24 14:46:31

ivj94 (2230 views)
2018-03-24 14:43:53

Solater (798 views)
2018-03-17 05:04:08
Deployment and Packaging
by mudlee
2018-08-22 18:09:50

Java Gaming Resources
by gouessej
2018-08-22 08:19:41

Deployment and Packaging
by gouessej
2018-08-22 08:04:08

Deployment and Packaging
by gouessej
2018-08-22 08:03:45

Deployment and Packaging
by philfrei
2018-08-20 02:33:38

Deployment and Packaging
by philfrei
2018-08-20 02:29:55

Deployment and Packaging
by philfrei
2018-08-19 23:56:20

Deployment and Packaging
by philfrei
2018-08-19 23:54:46
java-gaming.org is not responsible for the content posted by its members, including references to external websites, and other references that may or may not have a relation with our primarily gaming and game production oriented community. inquiries and complaints can be sent via email to the info‑account of the company managing the website of java‑gaming.org
Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines | Managed by Enhanced Four Valid XHTML 1.0! Valid CSS!