|
I have some simple scheduling of various events in my application and I used this class hierarchy:
abstract class ScheduledEvent { public DateTime When{ get; set; } public abstract void Trigger(); } class WhateverEvent : ScheduledEvent { public override...
Started by mab3 on
, 5 posts
by 5 people.
Answer Snippets (Read the full thread at stackoverflow):
There are reasons for either....
I wouldn't follow the any rule which favours composition over inheritance too closely .
I won't know what's the best for you, but a good design needs to provide encapsulation while balance the amount of cohesion and coupling .
|
|
What is the prefered way of handling keyboard input in programs like games? Is directX input the easiest choice? What are the other options?
Started by DotNET on
, 4 posts
by 4 people.
Answer Snippets (Read the full thread at stackoverflow):
Options are too numerous to all list here, but include :
XNA (Windows + XBox 360) DirectX (Windows) Flash (Cross-Platform) Silverlight (Should be cross-platform) Various integrated... .
It mostly depends on what framework/OS you intend to use for your game .
|
|
As student of B.E(computer science). I thought Perl would be a good language to learn as it was not included in my degree program (which includes C, C++ and Java), but recently I checked out job offers on SO jobs and I was unable to find jobs that required...
Started by Ruschel on
, 17 posts
by 17 people.
Answer Snippets (Read the full thread at stackoverflow):
The point I am.
Perl was a natural choice and helped make my job easier.
To manipulate text and log files.
|
Ask your Facebook Friends
|
As part of another question that did involve programming (I assure you), someone suggested I ask a community wiki question as to why your forum software of choice was the 'best' one for you.
I'm looking into providing forum software as part of an install...
Started by paxdiablo on
, 8 posts
by 8 people.
Answer Snippets (Read the full thread at stackoverflow):
How about PHPBB ? Immensely easy to setup and configure, and does automatic imports from previous pbpbb versions (like from v2 to v3)
PHPBB 3 has also a very good captcha ... .
JForum - Ease of use, maintainability and easy integration with other webapps .
|
|
I am about to begin development of a new website and have been doing research on PHP Frameworks. I'm not an advanced PHP developer, but I have been developing web sites and apps (in asp.net) for a few years now.
My website will primarily be AJAX-based...
Started by Bara on
, 5 posts
by 5 people.
Answer Snippets (Read the full thread at stackoverflow):
Is my choice of Yii over the other frameworks ok for a primarily AJAX-based web app? Yes, It is..
Download it, use it and implement your project.
Features that I don't remember right now.
|
|
I have a custom subclass of UIView that needs to perform a selector when a value (NSInteger) falls below a certain value. From what I can tell from the docs, I need to set up an observer object to look for this change.
The NSInteger value exists in the...
Started by samfu_1 on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
Something such as:
- (void)setFrobs:(NSInteger)frobs { if (frobs < 3 && _frobs >= 3) [[NSNotificationCenter default...] postNotificationName:...]; _frobs = frobs; }
Then, always... .
I would put the code for posting the notification in the view class .
|
|
I have a list of UTF-8 strings that I want to sort using Enumerable.OrderBy . The strings may contain any number of character sets - e.g., English, German, and Japanese, or a mix of them, even.
For example, here is a sample input list:
["東京","North 東京...
Started by Mike Atlas on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
As the document you link notes:
DON'T: Use StringComparison.InvariantCulture-based string operations ... .
Short of detecting the language and choosing accordingly, InvariantCulture is your best bet .
There is no one comparison which works for all cultures .
|
|
Hello,
I'm using EpiServer CMS 5R2 on a new project. I've been tasked with creating a CustomPageProvider to link to an existing back end store which we don't have control of. However looking at the sample provider (XmlPageProvider) it appears that the...
Started by Rob Stevenson-Leggett on
, 4 posts
by 4 people.
Answer Snippets (Read the full thread at stackoverflow):
Got this from my question at the EpiServer CMS forum: http://world.episerver.com/Forum/Pages/thread.aspx?id=27574&pageIndex=1
RE:Custom Page Providers Post by: Johan Björnfot on 03 February 2009, 13:43:28
You do not have to store any meta information ... .
|
|
I'm looking forward to hear some suggestions for choosing the "right" language (and modules?) to realize a 1-man web project (LAMP only, complexity somewhere between a guestbook and a fully fledged blog, developed for high traffic sites with 50,000+ impressions...
Started by DMeier on
, 8 posts
by 8 people.
Answer Snippets (Read the full thread at stackoverflow):
CPAN has modules for all kinds of ....
Object oriented handling of multimedia files: Perl has an advantage there .
Website spider: Perl has WWW::Mechanize , the best such module I've ever seen .
Output cache: Both languages have excellent caching solutions.
|
|
OK. I've read things here and there about SQL Server heaps, but nothing too definitive to really guide me. I am going to try to measure performance, but was hoping for some guidance on what I should be looking into. This is SQL Server 2008 Enterprise....
Started by MichaelGG on
, 5 posts
by 5 people.
Answer Snippets (Read the full thread at stackoverflow):
Edit:
Note, PK and clustered index are 2 a good choice, since....
As for GUIDs: see the questions at the right hand side of the screen.
StartDate, unless unique, is not a good choice.
The overhead of maintaining the index is trivial.
|