maintenance

Is removing unused functionality a bad thing?

允我心安 提交于 2019-12-11 01:08:17
问题 Is it possible for YAGNI to apply in the past tense? You created some functionality, it was used a little bit a while ago, but you aren't using it any more, and you don't want to maintain it, so you'd rather delete it. Is getting rid of unused or rarely-used functionality neccessarily a bad thing? Background : I use source control, so if I need the functionality again, I can get it. I'm the only user of my software (I'm a bioinformatician analyzing a data set). One scenario where I came

How to maintain a project when a whole team leaves? [closed]

我是研究僧i 提交于 2019-12-10 22:47:12
问题 Closed . This question is opinion-based. It is not currently accepting answers. Want to improve this question? Update the question so it can be answered with facts and citations by editing this post. Closed 3 years ago . A whole team of programmers who were managing a project in our company have left the company to start their own venture. How do I carry on? 回答1: The first step is to gather all the information currently available on their project and make sure it is properly secured--source

Automated Apache Server Maintenance Page

蓝咒 提交于 2019-12-10 17:38:03
问题 I have a website running on a Linux/Apache/Tomcat stack that needs to be automatically taken offline every few months for server maintenance, which will last an arbitrary amount of time. What are some options for getting Apache to put up and take down a "server maintenance" page? I need to be able to control this via shell script. (The answers that Google provided revolve around manually editing the server configuration, and I don't want to be in the office at 3 am!) I suppose I could make

Best practices for DataBinding in asp.net for maintainability

僤鯓⒐⒋嵵緔 提交于 2019-12-09 05:58:05
问题 I would like to know what are the best practices for using asp.net DataBinding, in terms of maintainability. I don't want the application to fall appart when I have to make changes to the database. Should I databind completely in codebehind ? I am planning on using ObjectDataSources for the databinding. Is there something that is easier to maintain than using databinding, if so, what is it ? Are there considerations, I should take into account when designing my data access layer and my

Ternary Operators & Maintenance [closed]

元气小坏坏 提交于 2019-12-08 13:28:58
问题 As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance. Closed 8 years ago . Programmer A just loves some ternary operators, especially nested ones. Better yet he claims that they make the code easier to read

how to set maintenance mode for entire website with htaccess

こ雲淡風輕ζ 提交于 2019-12-08 06:38:12
问题 i have found this code for htaccess to disable the entire website (for maintenance mode): Options +FollowSymlinks RewriteEngine On RewriteBase / RewriteCond %{REQUEST_URI} !/offline.php$ RewriteRule .* /offline.php [R=307,L] Now in my offline.php page i have a link to css and js files, like: <link rel="stylesheet" href="include/css/error.css"> <script src="include/js/file.js"></script> when i use the code above to set the maintenance mode, the offline.php page is loaded, but without the css

Old Code in comments [closed]

落爺英雄遲暮 提交于 2019-12-06 18:55:03
问题 Closed . This question is opinion-based. It is not currently accepting answers. Want to improve this question? Update the question so it can be answered with facts and citations by editing this post. Closed 4 years ago . How long should you keep old code commented out in your code base? The contractors continue to keep old code in code base by turning it into comments. This is really frustrating and I want them to just remove the old code instead of commenting it out. Is there a valid reason

how to set maintenance mode for entire website with htaccess

旧街凉风 提交于 2019-12-06 15:50:25
i have found this code for htaccess to disable the entire website (for maintenance mode): Options +FollowSymlinks RewriteEngine On RewriteBase / RewriteCond %{REQUEST_URI} !/offline.php$ RewriteRule .* /offline.php [R=307,L] Now in my offline.php page i have a link to css and js files, like: <link rel="stylesheet" href="include/css/error.css"> <script src="include/js/file.js"></script> when i use the code above to set the maintenance mode, the offline.php page is loaded, but without the css and js, how can i allow the loading of these 2 files? and i think that is useful to disable the website

ZF2 maintenance page

旧巷老猫 提交于 2019-12-06 11:43:30
问题 I try to set up a maintenance page with ZF2 but it's not working. I put a maintenance.html page in public folder (www) and in my onbootstrap function I've got the following code : $config = $e->getApplication()->getServiceManager()->get('Appli\Config'); if($config['maintenance']) { $response = $e->getResponse(); $response->getHeaders()->addHeaderLine('Location', '/maintenance.html'); $response->setStatusCode(503); return $response; } I enter the if cause $config['maintenance'] is true but it

Old Code in comments [closed]

醉酒当歌 提交于 2019-12-04 22:51:35
Closed . This question is opinion-based . It is not currently accepting answers. Want to improve this question? Update the question so it can be answered with facts and citations by editing this post . Closed 4 years ago . How long should you keep old code commented out in your code base? The contractors continue to keep old code in code base by turning it into comments. This is really frustrating and I want them to just remove the old code instead of commenting it out. Is there a valid reason to keep old code in the code base as comments? I am using Version control by Visual Sourcesafe If you