Click here to Skip to main content
15,891,657 members

The Weird and The Wonderful

   

The Weird and The Wonderful forum is a place to post Coding Horrors, Worst Practices, and the occasional flash of brilliance.

We all come across code that simply boggles the mind. Lazy kludges, embarrassing mistakes, horrid workarounds and developers just not quite getting it. And then somedays we come across - or write - the truly sublime.

Post your Best, your worst, and your most interesting. But please - no programming questions . This forum is purely for amusement and discussions on code snippets. All actual programming questions will be removed.

 
GeneralRe: DAO Framework Pin
Florin Jurcovici7-Feb-12 21:46
Florin Jurcovici7-Feb-12 21:46 
GeneralRe: DAO Framework Pin
CDP18027-Feb-12 23:41
CDP18027-Feb-12 23:41 
GeneralRe: DAO Framework Pin
BobJanova8-Feb-12 4:28
BobJanova8-Feb-12 4:28 
GeneralRe: DAO Framework Pin
CDP18028-Feb-12 7:58
CDP18028-Feb-12 7:58 
GeneralRe: DAO Framework Pin
BobJanova8-Feb-12 23:12
BobJanova8-Feb-12 23:12 
GeneralRe: DAO Framework Pin
CDP18029-Feb-12 0:36
CDP18029-Feb-12 0:36 
GeneralRe: DAO Framework Pin
BobJanova9-Feb-12 0:43
BobJanova9-Feb-12 0:43 
GeneralRe: DAO Framework Pin
CDP18029-Feb-12 1:55
CDP18029-Feb-12 1:55 
In this case it was just how the project evolved. It started out as ASP.Net webpages. A browser game. We could have slammed something together in short time, but that exactly was not our goal. Along the way webpages, even with all kinds of extras (like Ajax) became too limited and boring.

So we kept the entire sever components and added a webservice and a simple Windows Forms client. For this we wrote a little MVP framework and got a good performance with asynchronous webservice calls. Adding the first modest incarnation of the 3D engine to run in a WinForms control also worked reasonably well. The only problem was the somewhat ugly look of Windows Forms.

That's why we tried a WPF client. It was just a matter of porting our MVP framework to WPF and then making new Views while keeping the rest of the logic. Now we had a great UI, but getting the 3D engine to work in a WPF control turned out to be a problem. It always had performance problems or involved some ugly (and unsafe) hacks.

Turning things around and bringing the UI into the 3D application was the only way left to go. I looked at all the XNA UI projects I could find. Some were too simple, some were not really mature enough to be of any use and some were good but no longer in development. I think that writing a new one from scratch was no bad decision, at least if you really can pull that trick off. Now the appearance and performance of the client lies entirely in my hands.

Well, not entirely. My Padawan is getting ready to get his hands on the themes and styles and probably is going to redesign everything what you have seen in the screenshots. And he will probably come with millions of changes to the controls Smile | :)
I'm invincible, I can't be vinced



GeneralRe: DAO Framework Pin
Rob Grainger12-Feb-12 14:31
Rob Grainger12-Feb-12 14:31 
GeneralConnectivity test PinPopular
MatthysDT1-Feb-12 1:19
MatthysDT1-Feb-12 1:19 
GeneralRe: Connectivity test Pin
Albert Holguin1-Feb-12 3:25
professionalAlbert Holguin1-Feb-12 3:25 
GeneralRe: Connectivity test Pin
Ankit Maini1-Feb-12 20:42
Ankit Maini1-Feb-12 20:42 
GeneralRe: Connectivity test Pin
MatthysDT1-Feb-12 20:47
MatthysDT1-Feb-12 20:47 
GeneralRe: Connectivity test Pin
Dan Neely10-Feb-12 13:00
Dan Neely10-Feb-12 13:00 
GeneralRe: Connectivity test Pin
VallarasuS2-Feb-12 0:50
VallarasuS2-Feb-12 0:50 
GeneralRe: Connectivity test Pin
kmoorevs2-Feb-12 4:05
kmoorevs2-Feb-12 4:05 
GeneralRe: Connectivity test Pin
Gary Wheeler2-Feb-12 0:19
Gary Wheeler2-Feb-12 0:19 
GeneralRe: Connectivity test Pin
patbob2-Feb-12 6:13
patbob2-Feb-12 6:13 
GeneralRe: Connectivity test Pin
sergiogarcianinja2-Feb-12 2:12
sergiogarcianinja2-Feb-12 2:12 
GeneralRe: Connectivity test Pin
User 48350472-Feb-12 3:23
User 48350472-Feb-12 3:23 
GeneralRe: Connectivity test Pin
Theraot2-Feb-12 5:18
Theraot2-Feb-12 5:18 
GeneralRe: Connectivity test PinPopular
Moshe Katz2-Feb-12 7:13
Moshe Katz2-Feb-12 7:13 
GeneralRe: Connectivity test Pin
MatthysDT2-Feb-12 19:24
MatthysDT2-Feb-12 19:24 
GeneralRe: Connectivity test Pin
RCoate5-Feb-12 16:41
RCoate5-Feb-12 16:41 
GeneralRe: Connectivity test Pin
Moshe Katz6-Feb-12 14:36
Moshe Katz6-Feb-12 14:36 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.