如何与工作或完成面条code? [英] how to work with or complete the spaghetti code?

查看:142
本文介绍了如何与工作或完成面条code?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

问:

最近,我问测试code ,,检测到错误并修复问题,,我发现很多问题,,但这里的主要问题是code将其自我,, 意大利面条code 很多很多code线和跟踪解决问题是如此的困难,,再加上一些的 code被复制,并从网上粘贴,因为它是没有任何修饰,, 没有文件有可能这个code ,, 表现如此糟糕由于每一件事情使用视图状态的重,,并我花费了大量的时间来解决这些问题,,和IAM害怕毕竟这个时候还是其他错误可能出现在未来..如何处理这种情况下,,关于此问题的任何意见将是一个很大的帮助。

Lately ,i asked for testing a code ,,to detect the bugs and fix the problems ,,i find many problems ,, but the main problem here is the code it self ,, spaghetti code many many code lines and the tracing to fix problems is so difficult ,, plus some code is copied and pasted from the internet as it is without any modification,, no documentation is possible to this code,,the performance is so bad due to the heavy using of viewstate in every thing,, and it takes me a lot of time to fix the problems ,, and iam afraid of after all this time still other bugs may appear in the future .. how to handle this case ,,any advices concerning this issue will be a great help.

推荐答案

开始重构。这不会使只有code更好的可读性它也会给你它是如何工作以及它做了btter理解。

Start refactoring. This will not make only the code better readable it will also give you a btter understanding on how it works and what it does.

这篇关于如何与工作或完成面条code?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆