Questions tagged [specifications]

A specification (also commonly referred to as "spec") is a description of a defined technology and the resources it offers.

When the asset is programming, to know the resources of the language you are planning to use is of major importance. The features offered by a language may be critical in its use by developers and can cause severe problems for the novice ones that are starting to learn the language.

There are many languages and, therefore, each one is documented in a different way. Java, for example, offers a huge amount of information in different formats, either to download or to read in the browser. PHP, as a different approach, will offer the php.net site that’s also a great source of information.

This is an example for Java SE7 specification: https://docs.oracle.com/javase/specs/jls/se7/html/index.html

And here you can start the path in PHP: https://php.net/

The specification may also determine the adoption of the resources in different platforms. If you think about W3C’s specs on web-based technologies, you may remember that many of them depend on adoption of the browsers, since, unlike the examples of Java and PHP where the language resources are developed with the guidance of an enterprise or a group, HTML5 can only be implemented today in a signicative way by the major browser maintainers, like, for instance, Mozilla Foundation (for Firefox) and Google Inc. (for Google Chrome).

An example for this spec can be found at W3C’s site, that’s also full with documents for many others technologies, like XML and Web Architecture. Here is an example of HTML 4.01: https://www.w3.org/TR/html401/

1739 questions
622
votes
4 answers

What does the @ symbol before a variable name mean in C#?

I understand that the @ symbol can be used before a string literal to change how the compiler parses the string. But what does it mean when a variable name is prefixed with the @ symbol?
Greg
  • 10,360
  • 6
  • 44
  • 67
620
votes
22 answers

How to encode the filename parameter of Content-Disposition header in HTTP?

Web applications that want to force a resource to be downloaded rather than directly rendered in a Web browser issue a Content-Disposition header in the HTTP response of the form: Content-Disposition: attachment; filename=FILENAME The filename…
Atif Aziz
  • 36,108
  • 16
  • 64
  • 74
336
votes
9 answers

What's the use/meaning of the @ character in variable names in C#?

I discovered that you can start your variable name with a '@' character in C#. In my C# project I was using a web service (I added a web reference to my project) that was written in Java. One of the interface objects defined in the WSDL had a…
Remko Jansen
  • 4,649
  • 4
  • 30
  • 39
287
votes
8 answers

Do the JSON keys have to be surrounded by quotes?

Example: Is the following code valid against the JSON Spec? { precision: "zip" } Or should I always use the following syntax? (And if so, why?) { "precision": "zip" } I haven't really found something about this in the JSON specifications.…
christianvuerings
  • 22,500
  • 4
  • 23
  • 19
237
votes
7 answers

Do UNIX timestamps change across timezones?

As the subject asks; do UNIX timestamps change in each timezone? For example, if I sent a request to another email the other side of the world saying, "Send out an email when the time is 1397484936", would the other server's timestamp be 12 hours…
Ben Poulson
  • 3,368
  • 2
  • 17
  • 26
128
votes
10 answers

Any reason to write the "private" keyword in C#?

As far as I know, private is the default everywhere in C# (meaning that if I don't write public, protected, internal, etc. it will be private by default). (Please correct me if I am wrong.) So, what's the reason to write that keyword, or why does it…
Camilo Martin
  • 37,236
  • 20
  • 111
  • 154
118
votes
7 answers

What's valid and what's not in a URI query?

Background (question further down) I've been Googling this back and forth reading RFCs and SO questions trying to crack this, but I still don't got jack. So I guess we just vote for the "best" answer and that's it, or? Basically it boils down to…
John Leidegren
  • 59,920
  • 20
  • 131
  • 152
115
votes
7 answers

Java's L number (long) specification

It appears that when you type in a number in Java, the compiler automatically reads it as an integer, which is why when you type in (long) 6000000000 (not in integer's range) it will complain that 6000000000 is not an integer. To correct this, I…
jbu
  • 15,831
  • 29
  • 82
  • 105
110
votes
5 answers

enum.values() - is an order of returned enums deterministic

I have a enum SOME_ENUM: public enum SOME_ENUM { EN_ONE, EN_TWO, EN_THREE; } Will SOME_ENUM.values() always return the enums in the order of enum declarations: EN_ONE, EN_TWO, EN_THREE? Is it a rule or it is not guaranteed to be not changed…
Skarab
  • 6,981
  • 13
  • 48
  • 86
98
votes
6 answers

What is the value of the css 'ex' unit?

(Not to be confused with Xunit, a popular .Net unit testing library.) Today in a fit of boredom I started inspecting Gmails DOM (yes, I was very bored). Everything looked pretty straightforward until I noticed an interesting specification on the…
Joel
  • 19,175
  • 2
  • 63
  • 83
89
votes
5 answers

What characters are allowed in an HTML attribute name?

In HTML attribute name=value pairs, what are the characters allowed for the 'name' portion? ..... Looking at some common attributes it appears that only letters (a-z and A-Z) are used, but what other chars could be allowed as well?... maybe digits…
Robin Rodricks
  • 110,798
  • 141
  • 398
  • 607
83
votes
2 answers

Was the misspelling of the HTTP field name Referer intentional?

I read recently (I can't recall where, or I'd return to that source) that the misspelling of HTTP header field name Referer in the specification was intentional. Is that accurate? If so, why?
lance
  • 16,092
  • 19
  • 77
  • 136
79
votes
3 answers

PDF specifications for coders: Adobe or ISO?

I want to code an application that can read and decode a pdf document; now where I'm supposed to get the specs for this fileformat ? The PDF format is standardized from the ISO group but it's not clear to me where is the most reliable source for…
user1824407
  • 4,401
  • 4
  • 15
  • 20
78
votes
2 answers

Why is the separator in a TypeScript TypeMemberList semicolon as opposed to comma?

This is a typescript interface: interface A { l: { x: string; y:number } } But this (similar thing) produces an error: interface A { l: { x: string, y:number } } // => Error: ';' expected. On p.37 of the…
Harold
  • 1,584
  • 1
  • 12
  • 20
76
votes
1 answer

Order of execution of parameters guarantees in Java?

Given the following function call in C: fooFunc( barFunc(), bazFunc() ); The order of execution of barFunc and BazFunc is not specified, so barFunc() may be called before bazFunc() or bazFunc() before barFunc() in C. Does Java specify an order of…
tpdi
  • 34,554
  • 11
  • 80
  • 120
1
2 3
99 100