Questions tagged [standards]

Standards are officially published or well agreed upon formats, procedures, or protocols. They allow individuals or organizations to collaborate by setting ground rules or boundaries. Standards often come with a set of preconditions or assumptions, which allow collaborators to take those conditions or assumptions as ground truth.

The concept of "standard" is at least as old as the Roman Empire, where the standard was a rod of wood often decorated with a headpiece or banner and carried at the front of an army's march. This one rod was used to establish a common length for contructing camps and buildings. By using the same length, workers constructing a door could operate independently of other workers constructing a door frame. And when the pieces were brought together, they fit.

Modern standards are often created by jurisdiction-based entities like national standards organizations (like ANSI in the USA) or the International Standards Organization (ISO).

3387 questions
3
votes
4 answers

Opinion on finals and Lists/HashSets in Java

Had an office query relating to the use of the final construct in Java for HashSet, List, Set, etc. Say you had a list of usernames, which you wanted to be updated. The list itself won't be reinitialized, just it's values changed. The question was…
Michael
  • 1,014
  • 1
  • 8
  • 23
3
votes
4 answers

Is static a modifier in C++?

I've always thought of 'modifiers' in C++ as adjectives for a type (non-technical, easy to remember definition for myself). Strictly for the purposes of communication, would it be appropriate to refer to 'static' as a modifier? EDIT: Just to be…
void.pointer
  • 24,859
  • 31
  • 132
  • 243
3
votes
4 answers

Font size em shows differently on certain devices

I'm creating a chat program for the web designed primarily for mobile devices. My issue is that in trying to be as appropriate for mobile devices as possible I dropped pixel font sizes for em, however on my desktop pc with firefox the li text shows…
Lee
  • 3,869
  • 12
  • 45
  • 65
3
votes
2 answers

Is there any current proposal I can follow about adding proper locale support to JavaScript?

Even though all major operating systems and programming languages/APIs have had locale support for at least a couple of decades, it seems that JavaScript still does not! With JavaScript becoming more and more of a full application programming…
hippietrail
  • 15,848
  • 18
  • 99
  • 158
3
votes
1 answer

Complexity of inserting sorted range into associative container

The standard specifies (23.4.4.2:5, etc.) that constructing all four ordered associative containers (map, multimap, set, multiset) from a range [first, last) shall be linear in N = last - first if the range is already sorted. For merging a range…
ecatmur
  • 152,476
  • 27
  • 293
  • 366
3
votes
6 answers

Internet Explorer 8 beta 2 and Standards

Internet Explorer 8 breaks what must be every 3rd page I look at. The point of this early release was, I presume, to give website owners the chance to update their sites so it wouldn't be such a hassle for the final release. Has anyone actually done…
3
votes
7 answers

Why does strlen() return a 64-bit integer? Am i missing something?

When compiling a 64bit application, why does strlen() return a 64-bit integer? Am i missing somthing? I understand that strlen() returns a size_t type, and by definition this shouldn’t change, but... Why would strlen need to return a 64-bit…
NTDLS
  • 4,757
  • 4
  • 44
  • 70
3
votes
1 answer

Ranking of the Joint Strike Fighter (JSF) C++ coding standard mandatory rules

By any chance is there a ranking of the JSF coding standards? That is, there are 221 standards in the Joint Strike Fighter (JSF) C++ coding standards. Some are "should", "will" and "shall" rules, where the "shall" rules are mandatory. Of the…
JustADude
  • 2,619
  • 7
  • 31
  • 45
3
votes
2 answers

What is "clause 10" in the C++03 standard?

I was reading through the C++03 standard and noticed the usage of "Clause 10". Example: 8.5.1 Aggregates [dcl.init.aggr] An aggregate is an array or a class (clause 9) with no user-declared constructors (12.1), no private or protected non-static …
void.pointer
  • 24,859
  • 31
  • 132
  • 243
3
votes
1 answer

Authoritative description of ObjectiveC string literals?

The Apple ObjectiveC description implies that NSStrings exist by showing examples, and that NSString literals are written as @ "" Amazingly, that's all it says, and these only show up in examples without any discussion. Is that…
Ira Baxter
  • 93,541
  • 22
  • 172
  • 341
3
votes
3 answers

C90 compound literals

In C99, if x was declared earlier and is of type v2, then I can write: x = (v2) { 1, 2 }; where v2 is: typedef struct { int x; int y; } v2; Can I do something similar in C90?
rid
  • 61,078
  • 31
  • 152
  • 193
3
votes
2 answers

using var keyword in a for loop

This is related to "var" or no "var" in JavaScript's "for-in" loop? (but talks more about scope - this question IS NOT about scope) Is looping through an object or an array more efficient/common and why? Option 1 - Setting var outside loop //…
Lizard
  • 43,732
  • 39
  • 106
  • 167
3
votes
1 answer

Standard file format for describing hierarchical (nested) finite state machines?

I have a need to describe a hierarchical finite state machine in a standard and portable format. Is there a widely-accepted and supported file format that I should use? I see that the Graphviz DOT language supports sub-graphs that may be referenced…
Phrogz
  • 296,393
  • 112
  • 651
  • 745
3
votes
3 answers

Can results of boolean operations be compared?

Does the C standard ensure that the boolean operations (==, !=, >, &&, ||, etc) always have the same value to represent truthfulness? In other words, do they always return some positive constant if true, or is the only guarantee that it will be a…
Paul Manta
  • 30,618
  • 31
  • 128
  • 208
3
votes
3 answers

Is this the correct way of putting HTML in PHP?

I'm new to PHP, and most of the time I have been 'echo'ing my HTML. Today, I found this way of doing it, which makes things 1000 times easier:

HTML can go here without echo'ing it

But is…
Phill
  • 153
  • 1
  • 3
  • 11
1 2 3
99
100