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
75
votes
1 answer

I don't understand what a YAML tag is

I get it on some level, but I have yet to see an example that didn't bring up more questions than answers. http://rhnh.net/2011/01/31/yaml-tutorial # Set.new([1,2]).to_yaml --- !ruby/object:Set hash: 1: true 2: true I get that we're declaring…
Fred
  • 3,786
  • 7
  • 41
  • 52
62
votes
8 answers

Templates of Technical and Functional Specs

I am looking for good templates for writing both technical and functional specs on a project or work request. What do you use? How deep do you get while writing the specs? What general tips should I be aware of? My company needs these badly.…
Mike Fielden
  • 10,055
  • 14
  • 59
  • 99
62
votes
1 answer

Fetch API - What's the use of redirect: manual

I've recently been playing with the Javascript Fetch API. As far as I understand, by default all redirects are handled transparently and in the end I get a response from the last call in the redirect chain. However, I could invoke fetch with…
civilu
  • 1,042
  • 1
  • 8
  • 17
62
votes
4 answers

Rails rspec set subdomain

I am using rSpec for testing my application. In my application controller I have a method like so: def set_current_account @current_account ||= Account.find_by_subdomain(request.subdomains.first) end Is it possible to set the request.subdomain…
RailsSon
  • 19,897
  • 31
  • 82
  • 105
61
votes
3 answers

Is there a valid way to wrap a dt and a dd with an HTML element?

I wish HTML could do something semantically equivalent to this;
Some Thing
You know it!
Another Thing
Word.
Jo Sprague
  • 16,523
  • 10
  • 42
  • 62
58
votes
4 answers

Spring Data JPA. How to get only a list of IDs from findAll() method

I have a very complicated model. Entity has a lot relationship and so on. I try to use Spring Data JPA and I prepared a repository. but when I invoke a method findAll() with specification for the object a have a performance issue because objects are…
tomasz-mer
  • 3,753
  • 10
  • 50
  • 69
57
votes
2 answers

Why is form enctype=multipart/form-data required when uploading a file?

Why is
required when uploading a file to a web-server?
Devi
54
votes
3 answers

MP4 File Format Specification

I am writing some code to parse MP4 files ... Is there a free source to get documentation on the MP4 File Format Specification. So far I have only found an ISO document which I would need to purchase ISO PDF. Is MP4 Not an open standard ?
avrono
  • 1,648
  • 3
  • 19
  • 40
52
votes
1 answer

Why are await and async valid variable names?

I was experimenting with how / is interpreted when around different keywords and operators, and found that the following syntax is perfectly legal: // awaiting something that isn't a Promise is fine, it's just strange to do: const foo = await…
50
votes
1 answer

HTTP Spec: Proxy-Authorization and Authorization headers

So I'm trying to implement the following scenario: An application is protected by Basic Authentication. Let's say it is hosted on app.com An HTTP proxy, in front of the application, requires authentication as well. It is hosted on proxy.com The…
49
votes
2 answers

Chunking WebSocket Transmission

since I'm using WebSocket connections on more regular bases, I was interested in how things work under the hood. So I digged into the endless spec documents for a while, but so far I couldn't really find anything about chunking the transmission…
jAndy
  • 231,737
  • 57
  • 305
  • 359
47
votes
3 answers

Is there a Python language specification?

Is there anything in Python akin to Java's JLS or C#'s spec?
kgrad
  • 4,672
  • 7
  • 36
  • 57
46
votes
5 answers

What is protocol and host combined called?

According to spec and semantics is protocol and host combined: https://example.com still called a host, or is this called a URL, URI, or something else? Also, is (https) called protocol or scheme? NGINX uses scheme, but I don't see any reference to…
Justin
  • 42,716
  • 77
  • 201
  • 296
46
votes
3 answers

How can "[" be an operator in the PHP language specification?

On the http://php.net/manual/en/language.operators.precedence.php webpage, the second highest precedence level contains a left-associative operator called [. I don't understand that. Is it the [ used to access/modify array entries, as in…
Ewan Delanoy
  • 1,276
  • 2
  • 13
  • 31
45
votes
5 answers

Constructor chaining in C++

My understanding of constructor chaining is that , when there are more than one constructors in a class (overloaded constructors) , if one of them tries to call another constructor,then this process is called CONSTRUCTOR CHAINING , which is not…
progammer
  • 1,951
  • 11
  • 28
  • 50