|
Is it good practise to have multiple class definitions in one file? or is it preferable to have one class per file?
Started by Si Keep on
, 17 posts
by 17 people.
Answer Snippets (Read the full thread at stackoverflow):
I think it's preferable to have one class per file and to organize them in folders having the same hierarchy as their namespaces .
You'll never have to search for the correct filename because it is always the class name .
I prefer one class per file.
|
|
Hi,
I am interested to know if the terms alpha, beta and RC1 are terms that are used throughout the software industry or just MS.
What are the definitions?
Malcolm
Started by Malcolm on
, 4 posts
by 4 people.
Answer Snippets (Read the full thread at stackoverflow):
That there are any formal definitions and the usage may differ from company to company and product to product and have standard definitions, though they are often stretched a little in this Web 2.0 world.
|
|
Where can i find schema definitions for
xmlns:h="http://java.sun.com/jsf/html" xmlns:f="http://java.sun.com/jsf/core" xmlns:c="http://java.sun.com/jstl/core"
?
Started by Victor on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
definitions are in the jsf-facelets-xx.jar
As for the JSTL core tags - this is a useful reference.
|
Ask your Facebook Friends
|
Hi, I have a set of struct definitions that are used by both C# managed components and unmanaged C/C++ components. Right now, the identical struct definitions exist separately in C/C++ and C# code - causing duplication and related chaos. What's the best...
Started by Amit on
, 4 posts
by 4 people.
Answer Snippets (Read the full thread at stackoverflow):
Structure definitions in separate headers wasn't convenient anyway I didn't want to rely on IDL or custom "parse the C headers and only extract structures definitions" preprocessing step.
|
Are Flex / AS3 metadata tags handled differently at interface definitions than at class definitions?
If I use metadata tags in front of an interface, is that the same as in front of a class? I. e., can I do
[Event(name="fooUpdate", type="com.acme.events.FooEvent") public interface IFoozer extends IEventDispatcher { } // ... now omit that metadata in ...
Started by Hanno Fietz on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
[Bindable] (without arguments!!) instructs the compiler to generate AS3 code, that will make sure a PropertyChangeEvent is dispatched if you set the property (you can see... .
But [Bindable] is not just a metadata tag ...
For [Event] yes ...
Yes and no ...
|
|
For example, do you use accessors and mutators within your method definitions or just access the data directly? Sometimes, all the time or when in Rome?
Started by Derek E on
, 6 posts
by 6 people.
Answer Snippets (Read the full thread at stackoverflow):
Always try to use accessors, even inside....
That way, I can change the internal implementation of a class, while the class functions in the same way to an external user (or preexisting code that I dont want to break) .
In general, I prefer accessors/mutators.
|
|
I have just had to use LINQ to SQL on a SQL 2000 database and I have noticed that it does not include all the "Extensibility Method Definitions" actions, why is this?
Started by Coppermill on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
This uses the SQL 2005 ROW_NUMBER() feature which is only in SQL 2005
... .
One feature that requires SQL 2005 is the server-side paging support (where you only do the paging in the database) .
According to Scott Guthrie :
LINQ to SQL will support SQL 2000 .
|
|
I want to set GCC_PREPROCESSOR_DEFINITIONS for each of my four build configurations (Debug, Release, Ad Hoc, and Distribution.) I'd like to have a different setting for each.
The screen I'm looking at is the Target Info window's "Build" tab. When I set...
Started by Greg Maletic on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
And pass your defines like -DDEBUG.
OTHER_CFLAGS if I understood the question right.
DEFINITIONS .
|
|
I know it is possible to add new CSS classes definitions at runtime through JavaScript. But...
How to change/remove CSS classes definitions at runtime?
For instance, supose a I have the class below:
<style> .menu { font-size: 12px; } </style&...
Started by Daniel Silveira on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
It's not difficult to change CSS rules at....
Ive used it once, a few years ago it seemed to have worked .
I think you are looking for this:
http://www.hunlock.com/blogs/Totally_Pwn_CSS_with_Javascript
this lets you change the actual rules with javascript .
|
|
Hi, I have this working definition:
IDENTIFIER [a-zA-Z][a-zA-Z0-9]*
I don't want to keep repeating the [a-zA-Z] and [0-9], so I made two new definitions
DIGIT [0-9] VALID [a-zA-Z]
How can I rewrite the IDENTIFIER rule to use the DIGIT and VALID definitions...
Started by Kknd on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
Do you have sample data?
(?:[a-zA-Z])+(?:[0-9])+
It looks like you actually want:
IDENTIFIER {VALID}({VALID}|{DIGIT})*
[{VALID}{DIGIT}] resolves to [[A-Za-z][0-9]] which is not a legal construct. .
I think this'll do it but I can't test it .
|