React.JS Live Coding Challenge | Problem Solving with Turing

Поділитися
Вставка
  • Опубліковано 11 жов 2022
  • The fifth episode of "Problem Solving with Turing" takes a look at Turing's Live Coding Challenge. It helps React.JS developers understand the kind of problems they must look at before sitting for the technical interview and test. Join the live to ace coding challenges and crack technical interviews with ease.
    Become a Turing software developer today.
    Take the Turing test now: turing.com/s/MleMEs
    Find remote US software jobs: turing.com/s/RwWgCP
    Hire software developers of Silicon Valley caliber: turing.com/s/WS4u9q
    Watch more Turing.com reviews: turing.com/MVWqQr
  • Наука та технологія

КОМЕНТАРІ • 40

  • @kleberaugus
    @kleberaugus 9 місяців тому +1

    Usually, I don't understand anything spoken in English in movies, but I understood everything the Turing guy was saying. Cool!

  • @abenerh4097
    @abenerh4097 10 місяців тому +2

    Amazing video ! It reinforces what I already know but I also learned quite some stuff. New subscriber here

  • @growwithsagar521
    @growwithsagar521 Рік тому +14

    we want more such videos. its helping us a lot

    • @Turingcom
      @Turingcom  Рік тому +4

      So glad to hear this! :)

  • @thelaitas
    @thelaitas 10 місяців тому

    There's pretty much no difference between Interface and Type, decide with your team what's your preference and stick to it, be consistent. Although the only difference that does come to mind is Discriminated Unions which can only be implemented using Type if I'm not mistaken.

  • @crazcoder4243
    @crazcoder4243 Рік тому

    Index is exceeded so user is not found with that index..

  • @LutherDePapier
    @LutherDePapier 6 місяців тому

    This war nearly two years ago now, so we wouldn't do it this way today I feel. In Next.js, what I did in a project is I loaded the entire list in a server component, then I passed the list to a client component. In the client component I divised the list in smaller equal lists thanks to Lodash. And then I put the list in a useState that I would change to the next position by clicking Next and the previous by clicking Previous, making sure that the previous button is disabled if the position is 0 and the next button is disabled if the position equal list.length.
    Now if the list was too big I would limit and offset my fetches, but in this case I don't think it would be necessary to fetch again and again at each click of the button. Fetching the whole list once may be slower, but then clicking on Next and Previous is instantaneous and doesn't require any loading.

  • @dzulfiqarzaky5557
    @dzulfiqarzaky5557 Рік тому +5

    Why there is much hate in this comment section, I mean he can be working with another js library and forget about the syntax. And maybe he got a coldfeet during the interview, this is a live stream interview and a lot of people watching. I didnt know about others but i myself is really am an introvert. Its really hard to code when people sees me. Or during the live stream. It feels like joining a dungeon during a raid boss and got a debuff to lower intelligent by 30-40% from the boss aura😂
    By the way i intend to join as a mid level developer, wish me luck😂

    • @sushantbhargav4652
      @sushantbhargav4652 7 місяців тому +1

      Some people like to spread negativity and some are just straight shooters. Second kind of people are rare and won't put down others. First kind of people do this to feel better about themselves.

  • @nguyenkhoi3775
    @nguyenkhoi3775 6 місяців тому +1

    I wonder why he didn't use const when declare useState

  • @emanuelacosta2541
    @emanuelacosta2541 Рік тому

    Amazing content guys, this was for a senior position right? Can you do one for a mid-level position? Thanks!

    • @Turingcom
      @Turingcom  Рік тому

      Thank you for your feedback, @emanuelacosta2541!
      We'll note this and be sure to include this in our future videos.
      Please subscribe to the channel, so you get notified of more such videos! 😄

  • @diaguitounkara9578
    @diaguitounkara9578 9 місяців тому

    Any challenge for PHP Developers with Laravel Framework ?

  • @fredteixeira3604
    @fredteixeira3604 Рік тому +4

    can we google during the interview? Let's say, in case we need to build a regex pattern, or to implement a JS reducer. Many people won't remember the syntax, which is fair

    • @hammadahmad100
      @hammadahmad100 Рік тому +3

      No they don't allow that.
      Competition is tough and knowing the stuff without Googling does speed up the work process. So I guess they don't allow this because they want to know how much work can we do without searching for syntax.

    • @mr-koi
      @mr-koi 11 місяців тому

      ​@@hammadahmad100 In reality, utilizing pre-existing templates from "Google" tends to be more efficient. Proficiency in online research is an essential skill that is often overlooked, yet proves to be highly valuable.

  • @richardramirez5746
    @richardramirez5746 Рік тому +2

    I tried React test at Turing page, but it is about old React, I do not understand this

    • @Turingcom
      @Turingcom  Рік тому +1

      Hi @richardramirez5746 😃
      Please write to us at support@turing.com
      Our team will help you out on priority!
      Regards,
      Turing

  • @khalidrafi1111
    @khalidrafi1111 10 місяців тому

    The solution is pretty good although when updating users he could have added the new users array to the previous users state like this
    *updateUsers(prevExistingUsers => [...prevExistingUsers, { name: `${first} ${last}`, picture: thumbnail }]);*
    so the array will be updated along with the old elements. Another thing he could have tried is to only fetch when the currentIndex gets changed. That way the array will only extend when he press "next" button. Finally if we clean up the next and previous function using previous index:
    const handlePrevious = () => {
    setCurrentIndex(prevIndex => Math.max(prevIndex - 1, 0));
    }
    const handleNext = () => {
    setCurrentIndex(prevIndex => Math.min(prevIndex + 1, existingUsers.length - 1));
    }
    easy way to reduce the complexity of the code.

    • @C0ntenTT
      @C0ntenTT 8 місяців тому

      Pretty good? his solution is a disaster

  • @elmarcrispesado7897
    @elmarcrispesado7897 Рік тому +5

    now i am in a good mood

  • @abdulmuhaminrehman7530
    @abdulmuhaminrehman7530 10 місяців тому

    so the Turing test is taken live like that ??

    • @Turingcom
      @Turingcom  10 місяців тому +2

      Hey @abdulmuhaminrehman7530 ,
      This video is a helpful representation of how the coding challenge can be tackled/solved.
      Developers are not required to take the coding challenge during an interview, or while conversing with the recruiter.
      However, your coding challenge screen will be recorded once you start the process, this just ensures that recruiters can assess your expertise in real time.
      Cheers!
      -Turing

  • @shafayet_hossain
    @shafayet_hossain 9 місяців тому

    interface extends to another interface

  • @AniketYadav-nu3fb
    @AniketYadav-nu3fb Рік тому +1

    Anyone please explain me the currentIndex logic I didn't get what he did...???

    • @ShubhamSharma-vk9iq
      @ShubhamSharma-vk9iq Рік тому

      He is maintaining the currentIndex as the currentUser selected. So if the currentIndex is '0' then it will be users[0] and so on.

  • @rakeshchandradash2420
    @rakeshchandradash2420 Рік тому

    Question: Why a interface not a type
    Possible Answer: Because we can extend the interface, in future if we have to create a new user type (IAdminUser) whuch has same properties as IUser and some extra properties then we can extend IUser and create a new interface

    • @alwaisy
      @alwaisy Рік тому +1

      types can be extended. like type t1 = {} & t2

    • @zCrazyHero
      @zCrazyHero Рік тому +1

      It doesn't matter, interfaces and types are pretty much the same thing

    • @alwaisy
      @alwaisy Рік тому

      @@zCrazyHero I use an interface for objects basically.

    • @zCrazyHero
      @zCrazyHero Рік тому +1

      @@alwaisy me too, I prefer to use type in parameters or consts

  • @arvindhashok4929
    @arvindhashok4929 Рік тому +1

    Hmm It's not a difficult interview.

  • @stephenisienyi7726
    @stephenisienyi7726 Рік тому +16

    Wow, this was torturous to watch. Was this for a senior role? It should have politely ended within the first 10 minutes. No wonder the software industry is falling apart. Unwillingness to pay for decent talent === "great" product. Two such components within a codebase will turn that codebase into an unmaintainable trash heap.

    • @doug8590
      @doug8590 Рік тому +5

      How this guy is senior if not know how to use useState 😅

    • @stephenisienyi7726
      @stephenisienyi7726 Рік тому +3

      @@doug8590 the caliber of discussion in the theoretical portion (shown in earlier video) alluded so. To your point though, the fumbles with setState and the rest of it show a dire lack of hands-on experience. The interview should have ended at the first fumble.

    • @recapMate
      @recapMate Рік тому

      Pure crap