Aug 2011 GUI Overhaul
Post MTG Forge Related Programming Questions Here
Moderators: timmermac, Blacksmith, KrazyTheFox, Agetian, friarsol, CCGHQ Admins
50 posts
• Page 4 of 4 • 1, 2, 3, 4
Re: MVC
by Braids » 28 Aug 2011, 01:59
@Doublestrike, i'm not real keen on MVC. if the model is an object in memory (instead of a database), then separating its behavior and its data storage breaks object orientation encapsulation. some people want to do that, and maybe they can do so elegantly, but i haven't quite accepted the idea. so, i put a much stronger emphasis on separating Model and View, putting what you might consider the Controller into the methods of the Model.
thanks for being so pliable. i wasn't looking forward to rewriting that code myself.
thanks for being so pliable. i wasn't looking forward to rewriting that code myself.

"That is the dumbest thing I've ever seen." --Rob Cashwalker, regarding Innistrad double-sided cards. One of the first times he and I have ever agreed on something. 

-
Braids - Programmer
- Posts: 556
- Joined: 22 Jun 2011, 00:39
- Location: Unknown. Hobby: Driving myself and others to constructive madness.
- Has thanked: 1 time
- Been thanked: 1 time
Re: Aug 2011 GUI Overhaul
by Doublestrike » 28 Aug 2011, 02:03
Oh OK then I'll just do MV (hopefully). I'm a PHP/Javascript developer so it's nice to have someone to show me the ropes in Java. Although I may take a little while to catch on, I'll get there eventually. Back to work.
---
A joke is a very serious thing.
A joke is a very serious thing.
-
Doublestrike - UI Programmer
- Posts: 715
- Joined: 08 Aug 2011, 09:07
- Location: Bali
- Has thanked: 183 times
- Been thanked: 161 times
Re: Aug 2011 GUI Overhaul
by Braids » 29 Aug 2011, 16:51
i've burned out, so you'll need to find someone else to help you. oh, and don't worry about CheckStyle, FindBugs, and PMD. i was under the wrong impression about the importance of those tools.Doublestrike wrote:Oh OK then I'll just do MV (hopefully). I'm a PHP/Javascript developer so it's nice to have someone to show me the ropes in Java. Although I may take a little while to catch on, I'll get there eventually. Back to work.
"That is the dumbest thing I've ever seen." --Rob Cashwalker, regarding Innistrad double-sided cards. One of the first times he and I have ever agreed on something. 

-
Braids - Programmer
- Posts: 556
- Joined: 22 Jun 2011, 00:39
- Location: Unknown. Hobby: Driving myself and others to constructive madness.
- Has thanked: 1 time
- Been thanked: 1 time
Re: Aug 2011 GUI Overhaul
by jendave » 29 Aug 2011, 16:59
Getting these errors during the compile. I do not see SplashViewProgressMonitor.java in the source tree.
- Code: Select all
[ERROR] /Users/dhudson/mtg/forge/src/main/java/forge/view/swing/SplashFrame.java:[85,26] cannot find symbol
[ERROR] symbol : class SplashViewProgressMonitor
[ERROR] location: class forge.view.swing.SplashFrame
Re: Aug 2011 GUI Overhaul
by Doublestrike » 30 Aug 2011, 15:10
Those must have been the errors @Sloth PMd me about (haven't heard back whether problem was resolved or not). Those files were renamed to SplashProgressModel and SplashProgressComponent and moved to forge.view.swing in r10070 (http://svn.slightlymagic.net/websvn/lis ... &rev=10070).
The code runs fine on my machine...the fault is probably mine but not sure what I did wrong - will fix it in the future if the error becomes apparent.
I just ran an "update to HEAD" to r10090 and it's still working.
Edit Apparently everything's OK now.
The code runs fine on my machine...the fault is probably mine but not sure what I did wrong - will fix it in the future if the error becomes apparent.
I just ran an "update to HEAD" to r10090 and it's still working.
Edit Apparently everything's OK now.
---
A joke is a very serious thing.
A joke is a very serious thing.
-
Doublestrike - UI Programmer
- Posts: 715
- Joined: 08 Aug 2011, 09:07
- Location: Bali
- Has thanked: 183 times
- Been thanked: 161 times
50 posts
• Page 4 of 4 • 1, 2, 3, 4
Who is online
Users browsing this forum: No registered users and 14 guests