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
45
votes
3 answers

Max name length of variable or method in Java

Is there a max length for class/method/variable names in Java? the JLS doesn't seem to mention that. I know very long names are problematic anyway from code readability and maintainability perspective, but just out of curiosity is there a limitation…
talg
  • 1,759
  • 6
  • 22
  • 30
44
votes
8 answers

Maximum Method Name Length

Does anyone happen to know what the maximum length of a method name is in your programming language of choice? I was going to make this a C# specific question, but I think it would be nice to know across the spectrum. What are the factors involved…
Josh
  • 44,706
  • 7
  • 102
  • 124
44
votes
1 answer

Understanding the "additionalProperties" keyword in JSON Schema draft version 4

Link to the specification: http://json-schema.org/latest/json-schema-validation.html#anchor64 Section 5.4.4.2 states: Successful validation of an object instance against these three keywords depends on the value of "additionalProperties": if its…
Hammerite
  • 21,755
  • 6
  • 70
  • 91
43
votes
2 answers

Default width/height of an IFrame

Is there any spec specifying the default width/height of an IFrame? Browsers I tested (FF, IE, Chrome) seem to use 300x150px but I couldn't find any spec on this. Should I ever come in the situation, can I rely on these values or should I always…
Freek
  • 1,506
  • 1
  • 11
  • 25
43
votes
23 answers

Is writing specifications for hobby projects the only way for them to be finished?

Here's what I'm wondering. Every night that our 3 months old baby lets us sleep, I jump to my computer and start coding my hobby projects. I have about 20 different projects that I'm working on: different types of projects, from C++ games to web…
Gad
  • 41,526
  • 13
  • 54
  • 78
41
votes
5 answers

How to create Document objects with JavaScript

Basically that's the question, how is one supposed to construct a Document object from a string of HTML dynamically in javascript?
jayarjo
  • 16,124
  • 24
  • 94
  • 138
41
votes
1 answer

Difference between specification and a policy?

I am reading the brilliant book "Domain Driven Design" written by Eric Evans. In his book Eric describes two different concepts: the specification pattern and policies. Here is an example for a specification: public interface ProjectSpecification…
MUG4N
  • 19,377
  • 11
  • 56
  • 83
40
votes
3 answers

Why don't the modern browsers support PUT and DELETE form methods?

I just finished building a RESTful API for one of my latest apps. I also built a simple admin interface scaffolding class that will enumerate resources and build simple forms and tables to edit, create, delete etc. For updating and deleting…
nikcub
  • 1,414
  • 3
  • 15
  • 16
40
votes
4 answers

Where can I read C99 official language standard manual/reference/specification online?

Possible Duplicate: Where do I find the current C or C++ standard documents? Where can I read C99 official language standard manual/reference/specification online?
eonil
  • 83,476
  • 81
  • 317
  • 516
39
votes
4 answers

Specification Pattern in Domain Driven Design

I've been struggling around a DDD-related issue with Specifications and I've read much into DDD and specifications and repositories. However, there is an issue if trying to combine all 3 of these without breaking the domain-driven design. It boils…
Tseng
  • 61,549
  • 15
  • 193
  • 205
39
votes
1 answer

Nested object initializer syntax

Resharper has just suggested the following refactoring to me: // Constructor initializes InitializedProperty but // the UninitializedSubproperty is uninitialized. var myInstance = new…
Rawling
  • 49,248
  • 7
  • 89
  • 127
39
votes
1 answer

What's the maximum pixel value of CSS width and height properties?

What are the largest valid px values that CSS width and height properties accept? (I'm currently building a webapp that creates a very large zoomable container element and I want to know what are the actual limits.)
Stas Bichenko
  • 13,013
  • 8
  • 45
  • 83
38
votes
12 answers

What makes a good spec?

One of the items in the Joel Test is that a project/company should have a specification. I'm wondering what makes a spec good. Some companies will write volumes of useless specification that no one ever reads, others will not write anything down…
Candidasa
  • 8,580
  • 10
  • 30
  • 31
37
votes
8 answers

What is the specifications for Motion JPEG?

I've been googling like mad and can't find any file format specifications for mjpeg. What should the header look like? Do i just append a series of jpegs after the header? I know it's the usually in the .avi container, does that have a…
Robert Sköld
  • 752
  • 2
  • 9
  • 19
36
votes
2 answers

Regarding Promises/A+ Specification, what is the difference between the terms "thenable" and "promise"?

I am checking out the "Promises/A+" Specification, but could not understand the following things: On Section 1. Terminology, 1.1. "promise” is an object or function with a then method whose behavior conforms to this specification. 1.2. “thenable” is…