It is currently 27 Aug 2025, 17:11
   
Text Size

Aug 2011 GUI Overhaul

Post MTG Forge Related Programming Questions Here

Moderators: timmermac, Blacksmith, KrazyTheFox, Agetian, friarsol, CCGHQ Admins

Re: MVC

Postby 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. #-o
"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. ;)
User avatar
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

Postby 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.
User avatar
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

Postby Braids » 29 Aug 2011, 16:51

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.
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.
"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. ;)
User avatar
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

Postby 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
jendave
 
Posts: 307
Joined: 01 Jun 2008, 07:19
Has thanked: 8 times
Been thanked: 21 times

Re: Aug 2011 GUI Overhaul

Postby 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.
---
A joke is a very serious thing.
User avatar
Doublestrike
UI Programmer
 
Posts: 715
Joined: 08 Aug 2011, 09:07
Location: Bali
Has thanked: 183 times
Been thanked: 161 times

Previous

Return to Developer's Corner

Who is online

Users browsing this forum: No registered users and 38 guests

Main Menu

User Menu

Our Partners


Who is online

In total there are 38 users online :: 0 registered, 0 hidden and 38 guests (based on users active over the past 10 minutes)
Most users ever online was 7303 on 15 Jul 2025, 20:46

Users browsing this forum: No registered users and 38 guests

Login Form