Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
@Cyanite I do, but sometimes the code runs perfectly, it just does something unexpected so I need to find the flaw in the logic.
-
Cyanite84918y@GarreauArthur
Exactly as it sounds. You group together similar pieces of code, so if something is wonky, you know where to look.
Such as defining variables at the same place, or creating related functions next to each other.
In Python, I take it a step farther. With large files, I split the file into several smaller files containing related variables/functions and import from them as needed. Though, this can't be done in all languages. -
Cyanite84918y@GarreauArthur
Also note that that article is talking about 'group codes' and not 'code groups' -
@Cyanite Alright, this was what I thought in the first place. Everyone does that, but sometimes the bugs appear later, and I do not necessarily check the parts that I thought were correct. Some bugs are really tricky and involves hardware knowledge (which is not the case with python).
-
Cyanite84918y@GarreauArthur
"Everyone does that" ...You'd be surprised of the horrors one can find on github..
"I do not necessarily check the parts that I thought were correct" Thats your own fault. :P My advice; Unless you KNOW whats wrong, check those places first. Things go wrong where you least expect them to. And I don't just mean with programming. :3
Me when I am trying to fix a bug and I skip the part of the code where the bug is, because I am sure it is correct. https://media.giphy.com/media/...
undefined