|
I have a project that I am building that I have to change a method to behave slightly different. I have several unit tests already built against that method, but I will need to add more to cover the new behavior I am going to add to it. Is it good form...
Started by Jason on
, 7 posts
by 7 people.
Answer Snippets (Read the full thread at stackoverflow):
If you are doing test first development is simple....
So you'll need to change the tests again.
Since you you can't do that.
What I do is code first and then create tests after.
Get fixed when you fix your code.
|
|
Lately I had to change some code on older systems where not all of the code has unit tests.
Before making the changes I want to write tests, but each class created a lot of dependencies and other anti-patterns which made testing quite hard.
Obviously,...
Started by abyx on
, 6 posts
by 5 people.
Answer Snippets (Read the full thread at stackoverflow):
If tests don't break the build....
One easy way to do this is to make private members protected, and then override the protected field).
To avoid making tons of changes in old code is to just refactor it a little until you can test it.
|
|
I'm working in a 12 year old code base which I have been the only developer on. There are times that I'll make a a very small change based on an intuition (or quantum leap in logic ;-).
Usually I try to deconstruct that change and make sure I read thoroughly...
Started by Clay Nichols on
, 9 posts
by 9 people.
Answer Snippets (Read the full thread at stackoverflow):
I expect my code to be 100 ....
Happy code changing,
Jeach!
No, I never do this.
With confidence, too, just as they do for bug fixes and functionality enhancements of the legacy code make changes as well.
|
Ask your Facebook Friends
|
I built a a.py in my mysite file,
a.py:
from django.core.management import setup_environ from mysite import settings setup_environ(settings) from django.contrib.sites.models import Site domain = Site.objects.get_current().domain print domain
It prints...
Started by zjm1126 on
, 4 posts
by 4 people.
Answer Snippets (Read the full thread at stackoverflow):
Or do a query on Site "D:\zjm_code\register\a.py", line 13, in <module> obj=Site.objects.get(id=1).update(name='sss update(...) on the result of calling....
Go to the Site model in the admin interface and change the value there.
|
|
How do you cope with that?
Is it normal to allow the costumer to change the software as often as he wants? I´m working in a environment where there are no specs and constant requests for changes.
For every new costumer we have to create a new branch and...
Started by julioc on
, 6 posts
by 6 people.
Answer Snippets (Read the full thread at stackoverflow):
You have to accept change documentation you can then charge....
Agile methods embrace this reality and follow practices that make change less damaging a base line document, UI mock up or something like that i think is critical.
code.
|
|
When I create an XCode project, there is a copyright notice commented out. I know that there is an special terminal command for editing this. Anyone knows it?
Started by Thanks on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
Try:
defaults write com.apple.Xcode PBXCustomTemplateMacroDefinitions '{"ORGANIZATIONNAME"="stackoverflow";}'
or just....
Defaults write com.apple.Xcode PBXCustomTemplateMacroDefinitions '{ORGANIZATIONNAME = "My Company"; }'
See this page for more options .
|
|
I want to change the backcolor of a headercell in datagridview row .So how can i do that in code C#?
Started by Mobin on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
But now can anyone tell me how do i change font properties of the text named as value of the headercell like " headercell.value "
To change the font properties of a specified header cell you can try.
|
|
I have a content placeholder containing a link:
<asp:Content ID="Content5" runat="server" contentplaceholderid="ContentPlaceHolder3"> <a href= "../WOPages/WO_Main.aspx?WONum=12345">WorkOrder</a>
and I would like to change the href querystring...
Started by dsteele on
, 5 posts
by 5 people.
Answer Snippets (Read the full thread at stackoverflow):
YourLink.HRef = "http://stackoverflow.com/";
You could use render tags or do this:
<a href="<asp:literal id="hrefString" runat="server....
=12345"> WorkOrder </a>
...then you can access/change the HRef property programmatically...
|
|
I need to check in my code changes to a certain branch but im not sure how to do that since my code is from trunk =/
Started by amvx on
, 8 posts
by 8 people.
Answer Snippets (Read the full thread at stackoverflow):
Select TortoiseSVN | Switch....
Using Switch allows you to change a checkout from one repository want switch.
Check out the branch, copy code changes, and the recommit directory, or use svn switch .
Ok I found a way to do this.
|
|
How do I enable a check_change for a checkbox in VB.
Here is what I have so far.
Code Behind:
Protected Sub CheckBoxCash_CheckedChanged(ByVal sender As Object, ByVal e As System.EventArgs) Handles CheckBoxCash.CheckedChanged Label1.Text = "Cash" End Sub...
Started by Bill Quinn on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
Production code would also involve.
In that case, I'd skip the postback entirely an do it more').value = 'Cash';" />
Of course, that's the simple version.
That specifically requires a postback here.
|