[Boards: 3 / a / aco / adv / an / asp / b / bant / biz / c / can / cgl / ck / cm / co / cock / d / diy / e / fa / fap / fit / fitlit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mlpol / mo / mtv / mu / n / news / o / out / outsoc / p / po / pol / qa / qst / r / r9k / s / s4s / sci / soc / sp / spa / t / tg / toy / trash / trv / tv / u / v / vg / vint / vip / vp / vr / w / wg / wsg / wsr / x / y ] [Search | Free Show | Home]

Have you ever got to the point where your code get so complicated

This is a blue board which means that it's for everybody (Safe For Work content only). If you see any adult content, please report it.

Thread replies: 11
Thread images: 1

File: C5l4i7eWUAAABNv.jpg (27KB, 408x254px) Image search: [Google]
C5l4i7eWUAAABNv.jpg
27KB, 408x254px
Have you ever got to the point where your code get so complicated you can't work on it anymore ?
What do you do in this case ?
>>
>>59972720

Ask yourself how it got to be so complicated. Poor choice of architecture, lack of understanding around the problem domain, no documentation, etc.

Then start over and use the lessons learnt to make something better.
>>
>>59972720
At that point I have self loathing moment for being so self-taught and not learning the boring stuff like organizing code clearly.
>>
>>59972720
take a step back, mentally visualize your structure, and document your original thoughts.

use the documentation as a form of a checklist and review your code.
>>
>>59972720
You should have been using design patterns from the start
>>
1. Review what problem you are trying to solve with the code
2. Compare current solution does it versus how you would do it knowing what you know now
3. Plan some steps to move towards the "better-informed" structure
4. Apply steps
5. Repeat

With each iteration of review, your code will improve and become clearer.
>>
>>59972720
Consult the comments you added.
/thread
>>
>>59974888
>comments
>good code
>>
>>59974975
Yes.Good code and good comments are a necessity.
>>
>>59975039
What I meant is that if you have to heavily relay on comments then your code is bad.
>>
You fucked up bigly. Architecture should be planned from the get go. If you have to use a non oop language then kys it will always be a sticky mess.
Thread posts: 11
Thread images: 1


[Boards: 3 / a / aco / adv / an / asp / b / bant / biz / c / can / cgl / ck / cm / co / cock / d / diy / e / fa / fap / fit / fitlit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mlpol / mo / mtv / mu / n / news / o / out / outsoc / p / po / pol / qa / qst / r / r9k / s / s4s / sci / soc / sp / spa / t / tg / toy / trash / trv / tv / u / v / vg / vint / vip / vp / vr / w / wg / wsg / wsr / x / y] [Search | Top | Home]

I'm aware that Imgur.com will stop allowing adult images since 15th of May. I'm taking actions to backup as much data as possible.
Read more on this topic here - https://archived.moe/talk/thread/1694/


If you need a post removed click on it's [Report] button and follow the instruction.
DMCA Content Takedown via dmca.com
All images are hosted on imgur.com.
If you like this website please support us by donating with Bitcoins at 16mKtbZiwW52BLkibtCr8jUg2KVUMTxVQ5
All trademarks and copyrights on this page are owned by their respective parties.
Images uploaded are the responsibility of the Poster. Comments are owned by the Poster.
This is a 4chan archive - all of the content originated from that site.
This means that RandomArchive shows their content, archived.
If you need information for a Poster - contact them.