Edge Rewrite
// HTMLRewriter · presentation

This page was redesigned at the edge.

Cloudflare fetched the original article and streamed it through HTMLRewriter to apply an entirely new visual system without rebuilding the source page.

// request.cf · coarse context

A page that knows where it met you.

Only coarse request metadata is shown. This demo does not display or persist visitor IP addresses.

Country
US
Cloudflare location
CMH
Connection
HTTP/2
Language
Not provided

Ray ID: a21bae63c86697b7

Jump to content

Talk:Boilerplate code

Page contents not supported in other languages.
Add topic
From Wikipedia, the free encyclopedia

C# / WPF INotifyProperyChanged

[edit]

I think the standard implementation of INofifyProperyChanged in WPF should be put here. ( i myself can't recall it perfectly)


130.95.218.211 (talk) 07:26, 27 March 2012 (UTC)Reply

The HTML section is wrong

[edit]

It's simply not true that most webpages contain !DOCTYPE html or charset="utf-8", (though this page does), and for these HTTP has headers to prevent a document having to explain by itself how it should be read, which is very awkward. That's like a letter that starts with "This contract is written in English, so if you understand what this sentence means than I can assure you this contract is in English".

Oh, this is not HTML at all, the DOCTYPE says it's a PDF in HTML format so it can tell me it's actually a PDF. Let's try Acrobat and see what happens. - no browser ever. The rest of the example contains real, important things, like "here's the html", "this is the header", "this is the title", "this is the body". If that's boylerplate, "Introduction" and "Chapter I" in a book is. Joepnl (talk) 00:22, 9 August 2014 (UTC)Reply

Lack of citations

[edit]

In the definition no reference. Also the presented solutions such as metaprogramming have no reference.  Preceding unsigned comment added by 86.84.45.195 (talk) 11:32, 19 May 2017 (UTC)Reply

I added Template:Refimprove. Whenever you see an article on Wikipedia that needs more references, you don't need to comment on the talk page as you did above, just add {{Refimprove}} to the top of the article. Biogeographist (talk) 12:41, 20 May 2017 (UTC)Reply

Origin section on etymology

[edit]

The "Origin" section in this article directly contradicts the etymology explanation given in the Boilerplate (text) article, which links here. The two sections should at least be consistent, and the explanation in this article lacks any citations. --NCraike (talk) 00:38, 28 June 2017 (UTC)Reply

Records in java

[edit]

In java 15+ you can now write

public record Pet (String name, Person owner) {}

to achieve the same. See https://docs.oracle.com/en/java/javase/15/docs/api/java.base/java/lang/Record.html  Preceding unsigned comment added by 2A01:E35:2430:22F0:FE7:F4C7:7146:F362 (talk) 21:42, 5 March 2021 (UTC)Reply

The "C/C++ language" does not exist use just "C language" in the example

[edit]

The programming language C/C++ does not exist. It is a common error seen everywhere. C++ is a language derived from C. In its beginning C++ was promoted by its author as an extension of C to include abstract data types, maybe at that time the full C was a subset of C++, today is not, just some parts.

For that reason, depending on the context, "C/C++ language" must be replaced by: just "C++ language" when referring to features of that language; "both C and C++ languages", or "both C & C++ languages", when referring to features in common; and by "either the C or C++ language", when referring, for example, to the choice of any of them for some purpose, as in "systems programmers use either the C or C++ language to interface hardware". Sometimes, see below, by "C language code compatible with C++".

The example should only say "C language", because C++ also use other lines to define the module. Or adding the missing lines used in headers of libraries written in C but callable from C++, saying "in C language headers compatible with C++". I suggest just delete the "/C++" part leaving just "C language" to keep the example simple.

Cowardly I don't want to face the anger of some C++ fanatic for deleting the name of his favorite language. My advice for the brave editor is to write the correct examples in C and in C++ headers, but not in the inexistent C/C++ language. ~2026-31663-1 (talk) 05:38, 15 February 2026 (UTC)Reply