(with apologies for mis-addressing)
Dear Sebastian (and you gentle reader!)
On 21/11/16 11:12, Sebastian Zartner wrote:
> Let me revisit my answer. What I meant is, if the majority of users in
> the world still use browsers that can't handle ES6+, then the examples
> should still be written in ES5. If most browsers support ES6+, let's
> create examples in using the newer standards.
>
> Sebastian
>
> On 20 November 2016 at 22:46, Anthony Maton <
maitr...@gmail.com> wrote:
>> IMHO using ES5 is not inciting people to evolve it's like learning HTML4
>> because HTML5 is not fully implemented.
>>
>> Le 20 nov. 2016 10:00 PM, "Sebastian Zartner" <
sebastia...@gmail.com> a
>> écrit :
>>>
>>> On 20 November 2016 at 14:36, David Bruant <
brua...@gmail.com> wrote:
>>> Good question! I'd say they should be written in ES5, so they can be
>>> used in most browsers.
>>> Which standard to use should also be outlined in the style guide.
Is the solution to inform the user of the 'age' of each syntactic
element, and empower the reader to make his/her own decision to utilise?
(age or "pre-requisites")
As a fellow trainer, I wonder if we focus on MDN's content from a
particular direction? - but are there are other views and purposes!
A training course for complete beginners will use MDN is one mode. A
course introducing JS to computer programmers, in a slightly different
way. An update course for JS coders moving to ES6 (or ES5!), will employ
quite a different approach again. Plus, someone not in training
(per-se), working 'at the coal face', will value MDN for its look-up and
'reminder' facility. (etc)
Another view, is not so much when the information should be presented to
MDN users, but when MDN authors are able, prepared, and motivated to
assemble their thoughts and put them down 'on paper'. Is documentation
part of the design and development process(es) or something separate to
be done 'later'?
Additionally, there is the dimension that the tools our learners (and
web-app users) may or may not support certain features of 'the'
language. This worsens when we consider that many large enterprises, to
say nothing of so many in the developing world, are still using WinXP
and with the best will in the world, cannot upgrade to 'the latest'.
Similarly, considering the mobile community, we rapidly find that
smaller devices and slower connections reduce the range of viable
constructs.
Should the limits of these various sub-communities proscribe the
boundaries for all?
Looking at MDN's HTML entries, towards the end of most pages there is a
summary of browser support. Additionally, one of the most valuable aids
in my training has to be CanIUse.com which conveys similar information,
and both more - and less.
This is necessary because there are HTML5 elements which are covered in
one/some browsers and not in others (eg choice of VTT tracks for video,
video file encoding options, ...), as well as the issue that its
coverage may have a short history.
We warn of such 'gotchas' in our courseware - to the extent of stating
that a particular module's content may only be possible using certain
browsers and then offering examples and inviting coding which may only
be viewed/tested therein (with video content and/or static images or
code listings for those unable to follow otherwise).
Might we (trainers) be doing other users of MDN a disservice by asking
that all materials be prepared (only) with the complete beginner in mind?
Should MDN be encouraging the use of the latest (or at least, 'modern')
browsers (and quite possibly favoring that Mozilla Firefox, even FFDE,
'thingy')?
How will 'the wider community' learn to employ new >ES6 and >HTML5
Nov2016 'versions', if materials are not published on MDN until 'later'?
(to say nothing of, define "later")
What author/reader tools and tactics might enable MDN to meet the needs
of every, or at least the widest variety of, developer?
but to finish with a non-Socratic statement (which agrees with your
primary sentiment): MDN should always be written to encourage continual
learning (and the usage of Firefox)!
--
Regards,
=dn