I cannot visualize the code! What can help?

Apple 73gsv
Jun 15 10 Comments

After working for years I am relying on IDE to debug code. Now, I am having trouble visualizing the code during leet coding. What can I do to improve? Anyone else have this problem?

comments

Want to comment? LOG IN or SIGN UP
TOP 10 Comments
  • Facebook
    publiс

    Facebook

    PRE
    Google, Microsoft
    publiсmore
    Jun 15 0
  • Samsung / Admin
    bigbossvp

    Samsung Admin

    BIO
    master of BS.
    bigbossvpmore
    I had this problem and began to suck at coding. I was also losing interest and ended up changing careers or as some fancy boys in fancy vests would say: I pivoted.
    Jun 15 0
  • New / Eng EoiB15
    I’m not sure I understand – are you saying you program by throwing something together that you hope might kind of work, and then you rely on the IDE debugger to try to fix things where they break?
    Jun 15 4
    • Apple 73gsv
      OP
      More like I am sure something will work, and then there is mistakes that I didn’t catch when I first writing it.
      Jun 15
    • New / Eng pipiper
      That happens to everyone. It's fine to have some compiler errors. No one is perfect. The idea behind the code and the thought process behind it is what counts..
      Jun 15
    • Apple 73gsv
      OP
      I think the extensive use of IDE and work stress has been ruining my attention span and thought process. I want to be at interview level good. All code needs to run through and visualizes in my head.
      Jun 15
    • New / Eng EoiB15
      Ok, I think we are talking about the same situation only you are sure when you should have just had a thin hope. This is normal when your ability to develop things that way is taken away from you. It’s also good for you that it’s taken away. LeetCode lets you see the case when your code didn’t work so you can still cheat and run a test on your machine and debug that way. You shouldn’t do that. The sites where you don’t get any info other than that your code failed, like UVa online judge or spoj.com are the best. It will be very hard in the beginning but with time and effort you will learn how to reason about what your code is doing, you’ll have a good model of it in your head, you will realize that good programming is more math than cobbling something up, and you will be a vastly better programmer. You’ll also realize that unit tests are for putzes who don’t understand what their code is doing, and who should spend their time working on that, instead of writing unit tests.
      Jun 15
  • As a non-coder looking into learning...what does this mean?
    Jun 15 1
    • Apple 73gsv
      OP
      That means when looking at the code I cannot visualize how the logic process an input. I can only do 60%, a lot of the time my train of thought is broken.
      Jun 15
  • Samsung / Admin
    bigbossvp

    Samsung Admin

    BIO
    master of BS.
    bigbossvpmore
    You have to find this out by yourself. Luckily I was able to reinvent myself in a good way. For you, try to figure out what you are good at or what can you be good at and start from there. Try as many things as you can, take courses, join camps, etc... Good luck.
    Jun 15 0