en.javascript.info icon indicating copy to clipboard operation
en.javascript.info copied to clipboard

Surrogate pairs examples in the Iterables lesson should be removed

Open BarokDG opened this issue 3 years ago • 8 comments

The lessons on surrogate pairs have been moved from "Datatypes/Strings" to "MIscellaneous/Unicode, String internals" but there are examples mentioning surrogate pairs on the Iterables lesson. It might be confusing for readers who haven't read the lesson on surrogate pairs before hand.

BarokDG avatar Oct 05 '22 16:10 BarokDG

mmm.. The info is relevant and I think it 's the correct place to put it

not so confusig, it s a discrete line I was suggesting an anchor link there instead,

I was just making a PR but I didnt test yet

joaquinelio avatar Oct 05 '22 17:10 joaquinelio

something lilke this

And it works correctly with - the tricky :) - [info:surrogate-pairs] !

adding the anchor in unicode article

didnt finish, stays as suggestion.

joaquinelio avatar Oct 05 '22 17:10 joaquinelio

or, you are saying to leave the line but removing the examples?

the link would be useful too

joaquinelio avatar Oct 05 '22 17:10 joaquinelio

A link to the lesson on surrogates might work yeah. My problem with the info being in the iterators lesson is that we're learning how to specifically work with surrogate pairs without first learning what surrogate pairs are.

BarokDG avatar Oct 05 '22 17:10 BarokDG

you are right. "it works ok " + link is fine,

but later it goes a little deeper.

I wouldnt remove nor change the location of the info but rather add a little note "rare & tricky" just before the link

well, Ilya has the say

joaquinelio avatar Oct 05 '22 18:10 joaquinelio

Yeah that sounds good as well. Thanks a lot for responding so quickly🙌🏽.

BarokDG avatar Oct 05 '22 18:10 BarokDG

Yeah that sounds good as well. Thanks a lot for responding so quickly🙌🏽.

because to cut off that part from strings was my idea... 😟

joaquinelio avatar Oct 05 '22 18:10 joaquinelio

I think that was a correct decision. I read half of javascript.info 10 months ago but had to stop because of school and now I'm picking it up again. In my opinion it's better without it. I remember thinking it was advanced and forgetting about it quickly after I read it. The strings lesson was better this time around. I felt I learned all I needed.

BarokDG avatar Oct 06 '22 06:10 BarokDG