|
Whatever its merits, Adobe's Actionscript 3 presents what may be a unique opportunity to explore the consequences of typed versus untyped languages, because it is pretty much a strict superset of javascript, with all the syntactic benefits/overhead of...
Started by le dorfier on
, 4 posts
by 4 people.
Answer Snippets (Read the full thread at stackoverflow):
Languages generally have escape hatches (like typecasts), and apparently dynamic languages can use type.
|
|
Can someone tell me what the code equivelant in VB.Net to this C# code is?
new {name="value"}
Started by Tom Anderson on
, 4 posts
by 4 people.
Answer Snippets (Read the full thread at stackoverflow):
This is called Anonymous Types and the VB equivalent.
That feature is called an anonymous type.
|
|
The drumbeat of writing terse CSS code has been beaten into my head for years. For example:
Do this: .foo,.bar{ color:#f00; }
Not this: .foo{ color:#f00; } .bar{ color:#f00; }
With GZIP compression isn't it irrelevant how I write the above CSS? Since ...
Started by Christopher Altman on
, 5 posts
by 5 people.
Answer Snippets (Read the full thread at stackoverflow):
Remember: Source code is for humans to read, and only incidentally.
As it will be marginally smaller.
|
Ask your Facebook Friends
|
Looking for concrete examples or links to concrete examples of such errors.
Thanks in advance.
Started by fung on
, 22 posts
by 22 people.
Answer Snippets (Read the full thread at stackoverflow):
This is the problem....
100% code coverage would imply that every line of code.
It's an estimate on how well you're test cases cover your source code base.
Code coverage doesn't mean that your code is bug free in any way.
|
|
What are types of coding standards available in c# ? and i need detail explanation
Started by ratty on
, 5 posts
by 5 people.
Answer Snippets (Read the full thread at stackoverflow):
FxCop does code analysis....
Msdn.microsoft.com/en-us/library/bb429476%28VS.80%29.aspx
FxCop is a free static code analysis tool from Microsoft that checks .NET managed code assemblies for conformance to Microsoft's .NET standards.
|
|
I have never used nullable types in my C# code. Now I have decided to change my coding practice by introducing nullable types in my code.
What are the major changes in the coding practices should be made while making a transition from normal datatypes...
Started by JMSA on
, 7 posts
by 7 people.
Answer Snippets (Read the full thread at stackoverflow):
(In some type, or if the data is being retrieved....
You also have to be careful to avoid null dereferences, so they place additonal burden on programmers working with that code.
They will unnecessarily increase the complexity of your code.
|
|
This is in Windows, but answers for other operating systems can be handy to others.
Most guides say something to the effect of "hold down the Alt key and type in the code on the keypad". This works fine for decimal codes (like 65 for 'A'), but not for...
Started by Will on
, 5 posts
by 5 people.
Answer Snippets (Read the full thread at superuser):
Also on OS X: Calculator can be set to Programmer mode (Cmd-3), which allows for entering will give one the code, not ....
When selected, hold down Option and type the 4 digit hex code.
Of languages, between Ukrainian and Vietnamese.
|
|
I'm working out the reasonability of a request to keep all documents with executable code of a document management system. This is above and beyond the existing protections restricting the file extensions to a short list and running the file by norton...
Started by MatthewMartin on
, 4 posts
by 4 people.
Answer Snippets (Read the full thread at stackoverflow):
Documents to ones that cannot contain executable code, you are probably better off by compiling formats with executable code, and even new versions of old formats where they've added executable code client program, such as buffer....
|
|
How do you decide between writing a function inside a module or as a static member of some type?
For example, in the source code of F#, there are lots of types that are defined along with a equally named module, as follows:
type MyType = // ... [<CompilationRepresentation...
Started by Bruno Reis on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
I have to define the type irrespective of the member The member is functionally related to the type I'm defining Here, someString)
you must use member s ....
In F# I prefer a static member on a type over a function in a module if ...
|
|
What is generally considered good coding style in C++ where you use types from the standard library? For example, if I have a using namespace std; directive would you still expect to see library types fully qualified like so: std::string or is it acceptable...
Started by flesh on
, 12 posts
by 12 people.
Answer Snippets (Read the full thread at stackoverflow):
Import the namespace library names is because of cluttering....
Fully qualify in header files.
Case library developers should avoid type names that conflict with the standard ones although string the type multiple times or not in source files.
|