-
as seen on Programmers
- Search for 'Programmers'
I am a great believer in the Boy Scout Rule:
Always check a module in cleaner than when you checked it out." No
matter who the original author was, what if we always made some
effort, no matter how small, to improve the module. What would be the
result? I think if we all followed that simple…
>>> More
-
as seen on Ask Ubuntu
- Search for 'Ask Ubuntu'
The text is quite extense so, this is just a part of it:
!SESSION 2012-11-23 10:15:52.442 -----------------------------------------------
eclipse.buildId=I20120608-1200
java.version=1.7.0_09
java.vendor=Oracle Corporation
BootLoader constants: OS=linux, ARCH=x86_64, WS=gtk, NL=en_US
Command-line…
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
Over a year ago, I remember watching one of DevExpress evangelists previewing or at least promoting rich Javascript refactoring (beyond just limited intellisense) within the Visual Studio shell, I recall part of CodeRush/DevExpress product line. I was excited.
On checking today (lmgtfy) I can find…
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
What is the best way of doing version control of large scale refactoring?
My typical style of programming (actually of writing documents as well) is getting something out as quickly as possible and then refactoring it. Typically, refactoring takes place at the same time as adding other functionality…
>>> More
-
as seen on Programmers
- Search for 'Programmers'
Old application that is used by 50-60.000 paying customers.
Company is several hundred people big.
Application has a lot of business critical code (30% of all code) written in classic asp.
Application has a lot more .net code.
Application has a COM+ bridge for enabling asp to "talk" to .net
Organization…
>>> More
-
as seen on Programmers
- Search for 'Programmers'
Of course you can, I'm just wondering if it's rational to design in such a way.
I'm making a breakout clone and was doing some class design. I wanted to use inheritance, even though I don't have to, to apply what I've learned in C++. I was thinking about class design and came up with something like…
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
I'm wondering how you'd recommend designin a class, given the fact that XNA Framework uses Struct all over the place?
For example, a spite class, which may require a Vector2 and a Rectangle (both defined as Struct) to be accessed outside of the class.
The issue come in when you try to write code…
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
Given a simple class:
public class Person
{
public string FirstName;
public string LastName;
public string GetFullName()
{
return FirstName + LastName;
}
}
The user of this class will populate a List<Person> object by reading an Xml file or some other data source…
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
OK I've got 2 really big classes 1k lines each that I currently have split up into multiple ones. They then get recombined using multiple inheritance. Now I'm wondering, if there is any cleaner/better more pythonic way of doing this. Completely factoring them out would result in endless amounts of…
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
I'm creating a video game. It has Characters & Items. Since I want Characters & Items to each have a name, should I make another class called NamedObjects with just a name field and have Characters & Items extend that? Or is that going overboard?
>>> More