Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange
Join us in building a kind, collaborative learning community via our updated Code of Conduct.

Standards are rules and customs that the software industry considers to be important and are codified in some way, either as a formal specification like an ISO standard or a language specification or as a more informal document like rules for behavior at a workplace.

107
votes
3answers
12k views

What's the phone number equivalent of example.org?

RFC 2606 standard reserves the domain names example.org, example.net and example.com for the purpose of being used as examples in documentation. What is an equivalent for a phone number (including ...
34
votes
2answers
3k views

Should UTF-8 CSV files contain a BOM (byte order mark)?

Our line-of-business software allows the user to save certain data as CSV. Since there are a lot of different formats (all called "CSV") in use in the wild, we are tying to decide what the "default ...
1
vote
2answers
48 views

RFC5322 (Internet message format) ABNF rule error?

I was recently studying Internet Message Format originally RFC2822 and RFC5322. I was looking at definition of folding whitespace. Each header field is logically a single line of characters ...
1
vote
2answers
89 views

Testing and Debugging Techniques vs. Rice's Theorem

As far as I got it correctly, as a result of Rice's theorem, the equivalence of two programs is generally not decidable. Nevertheless, there exists a wide variety of testing and debugging techniques, ...
2
votes
1answer
139 views

Is the URL 'users/new' RESTful?

I was in a job interview demo-ing a RESTful API in Flask when an argument broke about the API. The interviewer argued that the URL for adding a new user (/users/new) is not proper REST. My API ...
9
votes
3answers
573 views

When should new C projects target very old C standards (>20 years old, i.e. C89)?

Occasionally I see major, relatively new, open source C projects targeting very old C standards, typically C89. An example is systemd. These projects have intelligent people at the helm so they ...
0
votes
1answer
217 views

How to answer someone who says that quality standards in code are irrelevant? [duplicate]

I had a conversation once with a with a senior development manager. I said that I aimed to produce "good" code, meaning code that is high quality. He said that good code is functional, performant ...
0
votes
3answers
683 views

What is actually the difference between the GNU C Library and the C standard Library?

I sometimes see these two terms be used interchangeably. What is the actual difference between these two terms? How are they used differently? Are there any other alternatives to these two libraries?
0
votes
2answers
227 views

IEC62304 SOUP classification of Integrated Development Environments and compilers

I am interested in whether IDEs, compilers or linkers are considered SOUP in IEC62304. I found one website which claimed this is not the case. I think I agree based on my reading of the standard, ...
3
votes
2answers
91 views

What time horizon and level of abstraction is the right for the maintainable and evolvable software?

From time to time I feel exhausted in my software development efforts because I am pressed to think and develop in very specific and very short term manner. One client here and now requires one ...
4
votes
1answer
106 views

Are tables inside tables a good idea in the right circumstance

I found myself wanting to put a table in a table. I had a momentary war flashback of legacy webpages and email html templates and was about to shelve the idea, but then I considered that it kind of ...
3
votes
1answer
483 views

Why shouldn't you create a custom uri scheme?

In setting up deep linking to android and iOS apps, I've made some use of custom URI schemes, and they work great, especially as a fallback when the mechanism that allows maps from http: fails (as ...
0
votes
1answer
202 views

When were unsigned types first introduced in programming languages?

Recently I learned that standard Fortran does not support unsigned integers. Fortran is a language with a very long history. I suppose that when Fortran was first designed, there simply wasn't any ...
-5
votes
1answer
73 views

Standards used to implement an Android application?

I was wondering if someone could explain what type of standards are involved in developing an Android application. This is what the instructions specify: These standards could be related to ...
2
votes
2answers
127 views

Is there a standard way to refer to items inside a menu when writing documentation?

At several times in the past while writing software documentation -- including user manuals, user stories, bug reports, test cases, and emails to users/colleagues -- I've needed to be able to refer to ...
0
votes
1answer
27 views

“preempts no lexical conventions” in a Scheme PL report

I am reading "Revised^5 Report on the Algorithmic Language Scheme," "1.3.1. Primitive, library, and optional features." In particular, implementations must support portable code by providing a ...
1
vote
0answers
215 views

Android intent: Using ?q= in a geo: URI [closed]

I noticed that the Airbnb Android app sends such an intent to open a map app at a particular latitude/longitude: geo:0:0?q=77.77%2C88.88 From my simplistic point of view, they should use the ...
0
votes
1answer
48 views

Language code for translation placeholders and translation context?

I'm planning to add a feature to my application where you can switch to the "Translation" locale and then see the names of the translation placeholders in the application instead of the actual ...
140
votes
17answers
28k views

Coding standard for clarity: comment every line of code?

I've worked in shops that produce life critical software and I've dealt with commenting rules that were meant to keep the code readable and potentially save lives. In my experience though the ...
1
vote
0answers
35 views

What should I use for defining recurring events?

CalDAV/iCalendar recurrence rules / rrules seems to be fairly common for defining the recurrence of events, but it also seems that they are very complex and often give unexpected/unintuitive results. ...
1
vote
1answer
87 views

C++ preprocessor search path search order

Is the #include order guaranteed by the standard to be the order of the -I options in the invocation: example: having the folders and files: A/foo.h B/foo.h can it be guaranteed that #include <...
2
votes
2answers
336 views

Why is it CRUD instead of GRAS? [closed]

Why is it Create Read Update Delete instead of Get Remove Add Set ? I've been working with an API that uses ADD and SET and REMOVE. Most accessor functions are named get...() and set...(). I ...
0
votes
2answers
124 views

Are there any formalised minimum quality standards for software development?

I've joined a very large new company who have very different ideas about what constitutes quality in development. In trying to convince managers about what should change, are there any well accepted ...
0
votes
2answers
380 views

Prescriptive and descriptive models of SW development - why it is not clear?

I have always thought that “descriptive” models says “what” but do not specify “how”, while “prescriptive” ones do exactly that. But when I started checking the topic, I found a lot of contradictions. ...
11
votes
1answer
869 views

Why isn't the C standard free? [duplicate]

I'm gradually learning C, and, after my best attempt at piracy, have resigned myself to the fact that I will have to either shell out $60 to ANSI or settle for pirating the penultimate draft hosted on ...
0
votes
2answers
159 views

Should compilers follow the defined language standard?

Why do some compilers violate the defined language standard? I don't understand, in ISO/IEC 10206:1990 Extended Pascal standard on 6.8.3.2 Arithmetic operators section, Page 86. It says that, A ...
1
vote
1answer
56 views

Specifying domain-specific data structures as an open standard

I am interested in creating a specification for the representation of complex hierarchical (domain-specific) data in a way that is independent of implementation. Think of a blueprint from which you ...
2
votes
0answers
58 views

What are good conventions/standards for application messaging through stdin and stdout?

I'm designing and application that spawns another processes to handle some specialized work. The application and the process it spawns will communicate through standard input and standard output (and ...
1
vote
0answers
509 views

Can't separate code, angular 1 component router

I'm trying to organize my code a bit differently than the tutorial for component routing. Quite simply I want to my app to have this structure. app.js -components/ +-settings/ +-settings.js +-...
2
votes
1answer
516 views

Is there a way to show an if statement in a UML Sequence Diagram?

I went on an interview last year and was shown a sequence diagram and was asked to describe the the sequence. There were 2 things in the diagram I had never seen before. I asked what one of them was ...
29
votes
1answer
2k views

How does the C++ standards committee test their design ideas?

Does the C++ committee test their new design specifications with some sort of prototype compiler before releasing a new standard? Or do they release a standard which is, in effect, only theoretical ...
4
votes
2answers
118 views

How do you deal with external sources that do not conform to service standards and protocols?

I'm working on a product that requires a large amount of interactions with different external data providers. These data providers uses a number of standards (primarily xml-based) which are all ...
2
votes
1answer
193 views

“Selected design can be derived from requirements” - meaning and difference against traceability?

ISO 12207 contains interesting points for design verification: a) The design is correct and consistent with and traceable to requirements. c) Selected design can be derived from requirements....
0
votes
1answer
433 views

Is there a standard for use case specifications?

I've been discussing about whether "logging in" is a use case and I've been wondering: is there some "official" standard where to look up the definition of a use case or what the point of a use case ...
2
votes
1answer
139 views

REST Standard for changing SPA Model after fetched from REST API

Let's imagine. I have following data from database. ====================================== id | Title | parentId ====================================== 100 Asia NULL ----------...
3
votes
1answer
340 views

“Vendor” name changes when the vendor name changes

PHP (PSR-2, anyway) recommends using the vendor name as the root namespace for projects. At face value, this seems to mean we should use the current name of our company. But I work for an enterprise ...
-4
votes
1answer
2k views

Difference between admin and super admin? [closed]

In our company we use the term admin and super admin. Admin - refers to the person who will handle the users, this is preferably from the external (maybe a manager of our client) Superadmin - refers ...
3
votes
2answers
1k views

Is there anything wrong with putting comments in an HTML closing tag?

I often write comments like this <div id="wrapper"> ... </div> <!-- id="wrapper" --> But what if I wrote them like this? <div id="wrapper"> ... </div id="wrapper"> ...
1
vote
1answer
193 views

Is there a software attribute (like reliability) that describes a bug free experience?

TL;DR Do non-crashing bugs always affect Functionality, despite possibly affecting other quality attributes as well? Or is there a more specific quality attribute that non-crashing bugs always ...
5
votes
8answers
826 views

Is it okay to return the “wrong” HTTP status code in order to show a more user-friendly error page?

Located here, RFC 7231 is all about the HTTP protocol (status codes) I'm developing an in-house web application for my university's department and I'm at a (probably unimportant) impasse. I'm ...
5
votes
1answer
310 views

In the IEEE/EIA 12207.1-1997 Standard, what does “notation for description” refer to?

The IEEE 12207.1-1997 guide (Software life cycle processes - life cycle data) has a list of general content requirements for all description documents (section 5.1, page 12). This includes "notation ...
3
votes
0answers
176 views

Is there a language for defining restful web services? [closed]

I'm implementing a restful service automation tool for client applications. Basically, the tool takes a config file that defines restful resources, and creates some DTOs and resource classes for ...
1
vote
1answer
565 views

Functionality in ISO 9126 is Non-functional quality? Contradiction in ISTQB and many sources

I have been doing some research and realized that I missed the fact that in ISO 9126 and ISO 25010, all characteristics are quality characteristics and represent (according to various papers) just non-...
1
vote
1answer
76 views

OAuth/OAuth2 RFC question

This question is about a line from the OAuth2 rfc - https://tools.ietf.org/html/rfc6749 In Section 2.3, there is this line The client MUST NOT use more than one authentication method in each request....
5
votes
4answers
201 views

What does it mean to “define a profile” in the context of an Internet RFC?

I've seen the phrase defines a profile of XYZ on a couple of IETF RFCs. For example, RFC 3339 reads: This section discusses desirable qualities of date and time formats and defines a profile ...
0
votes
1answer
31 views

Is there a standard file for building a settings window?

I've made GUI settings windows for a lot of files, but it's always been the same way I make a regular GUI content window. I want to dynamically produce one that will be parseable to show standard GUI ...
5
votes
3answers
964 views

Safety-critical software and optimising compilers

I'm reading some internal documentation for code developed to the MISRA C guidelines, and I see that in compiler flags section of the documentation there is a note to compile with optimisation off (-...
2
votes
1answer
715 views

Request content-type of HTTP errors

HTTP allows for multiple representations of a resource. The Accept header allows the client to choose the representation of the resource. GET /foo/bar HTTP/1.1 Accept: application/pdf GET /foo/bar ...
3
votes
2answers
264 views

Are there any widely accepted sets of standards/practices for secure coding? [closed]

The title should be fairly self-explanatory. We need to update our coding standards, and as part of this process we've been asked to try and follow an industry standard from a recognised/...
2
votes
3answers
244 views

.NET Framework standard container type for multi-value property?

I'd like to create a simple class property which can contain multiple values set from the outside. (Values are of the same type.) Example of property name and contained items: KnownHidScanners "\\?\...