2

Asking for a friend....

New job, fairly new to web development, very new to JS. I am failing miserable at my job can’t complete tickets which are mostly bug fixers created by testers. So I am debugging code that I didn’t write on a tech stack I do not know (ampersand, q, radio, lodash, react, etc)

Do I try to learn the language better?
or
Focus on learning debugging with dev tools and getting better at using the webstorm IDE.

Comments
  • 4
    Both, you shouldn't learn a language / tools and not know how to debug it.
  • 1
    The best way to debug react and javascript is by logging. You dont need any tools for that.

    Webstorm is good for navigating between files linting and other stuff but its not much help for debugging.

    If im wrong by the way id be interested to know other ways.

    Use logs from the issue point and work your way back up. Remove stuff to make the components less complex and see if the same behaviour is still observable.

    Read react documentation.
  • 2
    The best way to debug JS and react is not to. Go learn Python, C/c++, C#, Go, swift.

    Even Java FFS.

    I'm kidding btw, but I seriously hate JS.

    Often times the power is in the debugger -- trace the program by hand/paper and pencil/mind and then compare it with the debugger at each step. When you're wrong take note and find out why. Like someone said "you do both"
  • 0
    @ManBunMike also get a repl and test out small snippets to make sure they actually do what you want them to do.
  • 0
    Advice I give people who are learning react is to implement any APP they like in TDD.
    Be it a YouTube player, a janky social media site etc.
  • 0
    just learn the basics then learn(google, stackoverflow) as you go along... if frameworks, search for simple examples already implemented in git and try to analyze how it was implemented and how it works...
  • 0
    I should say I have been learning the language got half-way through an advanced JS course at a local college but had to drop due to the job (it was not covering the things I needed to learn) Every night/weekend watching videos and coding along. I have bad ADD I can’t learn by reading at all.

    To clarify I will continue to learn the language of course but should if I focus on debugging until I get up to speed will I be able to ‘fake it’ until I ‘make it’

    Anyone else switched from PHP to JS?
  • 1
    Id say fake it till you make it... learn while on the job, that will be valuable experience... nobody starts off knowing everything... just research what you may need to make the job work and put some effort into it while sharpening your skills... it will be seem pointless at times, stressful and sometimes depressing not knowing how to hack it, but if you keep at it it will eventually take form... it has a steep learning curve, but once you are past it things just start to fit in place... the world of programmers is about asking questions, finding solutions and assisting others to get on the same level(otherwise it would be a barren wasteland filled know it alls hehe), ask a colleague to assist where you feel things are not clear to you, and learn from what he/she is doing... good luck
  • 1
    Thank you for the advice and encouragement! Going to spend the day learning the dev tools and built in debuggers in webstorm.
Add Comment