DEV Community

Discussion on: Array Methods in JS - reverse()

 
joelbonetr profile image
JoelBonetR ๐Ÿฅ‡ • Edited

Hey @shubhamtiwari909 actually you've people with tones of knowledge in the community and here in the post, like @lukeshiru who I found involved in many interesting comments and probably others which I may not recognize from other posts/discussions.

My workaround to learn more is to practice as much as I can and learn about stuff to bring new concepts to develop, new features to use and searching for different ways to reach the same to understand the differences so I can know when and where to use one or another.
I'm working as dev since just a decade ago so that's much less experience than many people here.

I learnt a lot in many projects having seasoned seniors next to me that were nice people and shared the knowledge and answering my child-ish questions (I'm always asking for the reason to be of the things and trying to understand the quirks and details) so I try to do the same in both my job and though this community.

In this specific case I knew almost nothing about this topic which is the emojis breaking when using split and I was itchy to know why does this happen so I began looking for information on the Internet, doing tests on my own, searching more with queries based on my test results... till I fulfilled my need for knowledge.

I knew nothing because the lack of experience. Never had to deal with that, and here's where the community adds an important value to the learning process.
Now, my future "me" will know this details if I need to use them.

If this was something more complex to remember I may write a post on that so anytime I need to remember the details of some concept I can come back to my own post and get what I need.

On the other hand some books helped me to understand some things in the past but not everyone likes to read as much.
I'm here because I prefer to read tech stuff than watching someone on YouTube explaining it. It's faster, I can easily copy-paste concepts, keywords to search later on and take my notes easily.

Also I wrote this post which I want to re-write (a second version of it) with the support of a Psychologist in a future.

Hope it helps you in any way :)

Also check the profiles of all that nice people that came to comment and follow the ones with posts that interests you or that may be of interest for your future "you"! ๐Ÿ˜

Best regards

Thread Thread
 
shubhamtiwari909 profile image
Shubham Tiwari

Thank you for telling me all of this
I asked this question because I had an interview today and the questions were asked about CSS but the questions were very tricky like which tags have an inline display property by default in HTML, What happens when we try to give width and height to "span" tag , etc and i wasn't able to answer those correctly because I didn't know about the in depth details and also these type of questions never came into my mind while learning that's why I asked how to get deep and detailed knowledge about web development
Same happens with Javascript also but i am practicing it practically and with multiple cases so i am getting little bit in good that

Thread Thread
 
joelbonetr profile image
JoelBonetR ๐Ÿฅ‡ • Edited

Well, as I've previously said, the only way is to practice, reading, and writting posts about the topic are also beneficial

You force yourself into a bit of I+D+i, looking at the details a bit in deep, to ensure you don't publish wrong information.

Thread Thread
 
shubhamtiwari909 profile image
Shubham Tiwari

Thank you for guidance ๐Ÿ˜‰

Thread Thread
 
joelbonetr profile image
JoelBonetR ๐Ÿฅ‡ • Edited

Np. By the way, the question itself was a bit... uggly-ish if they really asked you to name all HTML tags that are display: inline by default.
I can name <span>, maybe <i>... but the trick on the question is that most default values are not in the CSS spec ๐Ÿ˜… are just browser default styling and in certain cases can differ from one to the other.

Edit: adding this list.

Thread Thread
 
shubhamtiwari909 profile image
Shubham Tiwari

Yeah the questions were trickier and i get confused and then rejected even it was for the internship interview they believed i have the indepth knowledge and when I asked where can I learn all the things in detail then the interviewer said "you can learn these things in the industry while creating projects in a company under your senior guidance"
I was like yeah that's why I applied here to get that guidance and knowledge ๐Ÿ˜‚๐Ÿ˜‚

Thread Thread
 
joelbonetr profile image
JoelBonetR ๐Ÿฅ‡

๐Ÿ˜‚๐Ÿ˜‚๐Ÿ˜‚๐Ÿ˜‚

Thread Thread
 
flamewolf profile image
เด‹

For Indic text, I use this regular expression: /\p{L}\p{M}?|\S|\s/gu.

"เคนเคพเคฏ เค†เคช เค•เฅˆเคธเฅ‡ เคนเฅˆ".match(/\p{L}\p{M}?|\S|\s/gu).reverse().join(""); // "เคนเฅˆ เคธเฅ‡เค•เฅˆ เคชเค† เคฏเคนเคพ"

It won't work with Emoji sequences, and with glyphs resulting from a combination of more than two characters ("เค—เฅเคฆเฅเคง" for example), but it's the closest thing to Intl.Segmenter that I was able to come up with.