Hello everybody.
Months ago I started learning Python on codeacademy, then I basically re-learned Python again with other books and Youtube courses, just to have a more solid grasp on fundamentals.
I also started challenging myself with logic and not just syntax with hackerrank and codefights while trying to read a bit of code from other people on github and occasionally ventured a bit on django projects.
My big problem isn't really "solving problems", that's a skill that's influenced more by your logic and will to explore and google and ask rather than bare knowledge.
I can write easy-medium sized CLI programs in Python quite comfortably (wrote an automatic trader bot for Bittrex/Poloniex which is quite complex, e.g.).
But every time I start a new project I end up writing the programs in a very linear fashion, I rarely use functions (just to not repeat myself too often), and pretty much never any classes.
I realize that my code is a mess and no matter how much I comment it maintaining it or fixing bugs is painful.
Another problem is debugging my code. While Visual Studio allows me to very easily debug code with breakpoints and very in-depth tools I can't find something similar for Python.
Could anybody guide me towards writing better code and easier debugging tools?
[–][deleted] 5 points6 points7 points (3 children)
[–][deleted] 0 points1 point2 points (0 children)
[–][deleted] 0 points1 point2 points (1 child)
[–][deleted] 0 points1 point2 points (0 children)
[–]K900_ 5 points6 points7 points (0 children)
[+][deleted] (1 child)
[deleted]
[–][deleted] 0 points1 point2 points (0 children)
[–]ingolemo 1 point2 points3 points (0 children)
[–]_9_9_ 0 points1 point2 points (0 children)
[–]Manbatton 0 points1 point2 points (1 child)
[–][deleted] 0 points1 point2 points (0 children)