16
Serious question about how you organize your code files
Used to throw everything into one giant script file until I lost 3 hours tracking down a bug that was just a misnamed variable in a 2,000 line mess, and now I split everything into small functions after that disaster last month, anyone else had to learn this the hard way?
2 comments
Log in to join the discussion
Log In2 Comments
grant82627d ago
Oh yeah, learned that one after a similar nightmare with a 1500 line script.
-1
daniel21427d ago
Used to think breaking things into smaller pieces was overkill, but going through that kind of mess changes your mind real fast. Learned that lesson the hard way myself.
8