instruction stringlengths 34 19.9k |
|---|
I work with a code base that is over 500K lines of code. It is in serious need of refactoring. There have been refactoring efforts identified that will take longer than the normal two week sprint. These can't be broken up into smaller tasks as I have seen suggested in other answers on this site. The product needs to wo... |
C#/ASP.net:
/// <summary>
/// Is a group in the basket already?
/// </summary>
public static bool isItemInBasket(List<BasketItem> BasketItems, int GroupID)
{
return BasketItems.Where(c => c.GroupID == GroupID).SingleOrDefault() != null;
}
public static bool isItemInBasket(List<BasketItem> BasketItems, int GroupID, ... |
Our scrum teams are split geographically (not ideal I know!) due to specific knowledge only being available in certain countries.
So one team of say 7 members, has the business person in one city, 2 devs in another, 2 other devs in another and 2 qa's in another.
Any suggestions for how to manage this type of graphicall... |
Providing support for outdated software is both unexciting and expensive. If people are still using the version which was sold ten years ago, it means that they will find bugs which do not exist in next versions, their software may not work as expected on a new hardware or operating system, etc. The support people must... |
I am trying to pick up Rails, but there are a ton of things that it does that it's not under my control and that's scary (http://blog.zawodny.com/2011/06/13/i-actually-tried-learning-rails/). Is there a tutorial where it explains only the exact things you need to do in order to pick up the framework? (specs, controller... |
There is a push in modern scripting frameworks to use RESTful request routing instead of a one-size-fits-all URL path routing.
respond('GET', '/posts', callback);
respond('POST', '/post/create', callback);
respond('PUT', '/post/[i:id]', callback);
respond('DELETE', '/post/[i:id]', callback);
vs
respond('... |
I am a software engineer engaged in some extracurricular projects outside of my main gig. I was considering hiring a developer on Elance to assist me. Ideally, we would be a collaborative team where I can review their code and our "days" would overlap by a few hours.
Ideally, when that persons day is over, I could d... |
As my webapps increase in size, so does the complexity. In order to keep my classes & files structured and easy-to-access, I am starting to get more and more confused:
I have some very clearly defined data objects in my application - orders, invoices, products for example. All of those have their own entity object that... |
I'm building an web application is ASP.NET MVC 3 (.NET 4) and trying to unit test as much as possible.
I have a controller action Details(int customerId) which should display a view who's model is a Customer
public class Customer
{
public int? Id { get; set; }
[Required]
[Display(Name = "Customer Name")]
... |
I have been thinking about this issue for a while and I would be curious to have opinions from other developers.
I tend to have a very defensive style of programming. My typical block or method looks like this:
T foo(par1, par2, par3, ...)
{
// Check that all parameters are correct, return undefined (null)
// o... |
I'm writing a single page web application that talks to a business layer via asynchronous RPC (encoded with json). I'm targeting fairly modern browsers, so I can at minimum control the URL after the hash. However, the URL won't really be what drives the application's state (that will be maintained by a javascript mod... |
The iPhone app i have an idea for deals with processing of the data stored as part of Oracle database at work. It'll be an interface to a dynamic set of data that is updated tens of thousands of time a day. Each time you look, results are likely to be different.
That being said, the company i work for does not have an ... |
"Directories containing directories and files" seems to have been around forever, but there must have been a first.
|
I'm developing a site for a potential customer who will need a lot of features for members and the various roles they will have, but also wants to have confidence in the "database". It is this latter item that makes them want to purchase a canned system from someone "established", that is both rather expensive, and is... |
I'll be working as a development lead for a startup and I've suggested that we use VMs for development. I'm not talking about each developer having a desktop with VMs for testing/development, I mean having a server rack where all VMs are managed and have the developers work from a microPC (ChromeOS anyone?) locally, o... |
Today I've just seen this article which described the relevance of SOLID principle in F# development-
F# and Design principles – SOLID
And while addressing the last one - "Dependency inversion principle", the author said:
From a functional point of view, these containers and injection concepts can be solved with a sim... |
I am bit confused. Is there only one application domain for every single ASP.NET Web Application or there can be anywhere between 1 to 100 application domains present in a single application pool of a web application
|
I understand how to code. I know how to get around the basics of the languages I use regularly. I know how to write slightly-above-basic regular expressions, I can talk to databases, I can accept input, print output, handle files, etc. I'm more or less assured of my basic ability to spit out the source code for moderat... |
I'm working on an e-business website to sell books and also want to display the number of available books in the category list.
The category list contains the genre and the format (pocket, ebook, audiobook etc). In each element in genre and format I would like to display the number of available products from the stock ... |
The title says it all. My company is reusing a legacy firmware project for a microcontroller device, written completely in plain C.
There are parts which are obviously wrong and need changing, and coming from a C#/TDD background I don't like the idea of randomly refactoring stuff with no tests to assure us that functi... |
We currently have a large Subversion repository, with a tree like:
root
/libraries
/library1
/trunk
/library2
/trunk
/solutions
/solution1
/trunk
/solution2
/trunk
There are 81 solutions and 22 libraries. The trunk subdirectories ... |
This question is purely for learning and to step-up my technical understanding. I know there is no perfect solution and this question has possible never ending solution list but I think it's very important for every architect to understand the difference between demo and a live project.
I created many demo solutions i... |
I find myself repeatedly annoyed by having to teach freshmen about special language rules (like array-to-pointer decay) that have absolutely nothing to do with programming in itself. So I wondered:
What is the programming language with the smallest number of special language rules, where everything is first class and c... |
After a recent restructuring happened in our corporation - I have got a new line manager. He is generally ok and not as sneaky as the previous one. By "sneaky" I don't mean he was an evil manager - I just refer by this term to someone who keeps most of the information to himself and doesn't share with other team member... |
When constructing prototypes, should we also create appropriate unit tests as if we were writing production code? Would it make a difference if we knew in advance that the code was or wasn't going to be re-used for the final solution?
|
I'm working on a project that requires a simple dictionary for checking spelling; it will be large, but will lack definitions. The solution we're currently working on has the base word list in a text file, and customizations (extra words, excluded words) in the DB.
The entire list needs to be loaded (best cached I thi... |
Is it possible to create a shared backend logic using .NET and have the respective GUI front ends in MonoTouch and MonoDroid?
|
Given that a program (under development) needs a scripting language, and that for various reasons it's not possible to use an off-the-shelf one as is, I'm considering basing it on the syntax and some of the semantics of JavaScript, being something pretty much everyone is familiar with, including using the .js file exte... |
So I'm working in a modding project and they gave me the installing part as to do. We plan to publish it between 30 Aug. - 01 Sept.
My question is; is it logical to use Dropbox to download files in the web installer? I saw Dropbox's public folder has 10 GB download bandwith limit daily, after reaching that; they lock t... |
I am working on a team developing a client-side application. We work in a Linux environment, but the server we work with can only be run from a Windows environment. As such, each developer is being set up with a virtual machine, running on Oracle VM Virtual Box.
Would it violate the terms of use or licensing for the de... |
I am considering building an application, which, at its core, would consist of thousands of if...then...else statements. The purpose of the application is to be able to predict how cows move around in any landscape. They are affected by things like the sun, wind, food source, sudden events etc.
How can such an applica... |
I was just curious, it's something I think most people are aware of as a technique:
You have some abominable data that simply must be parsed and you can do nothing to simplify the algorithm for doing it, so the best you can do is isolate the complexity of that algorithm to one place rather than having parts of the algo... |
I am trying to understand things like linkers and loaders better.
What area of computer science do they belong to? Compiler, Operating System, Computer Architecture?
Where do linkers and loaders come into play during development?
|
I'm not so much looking for code (although if you want to link to tutorials it would be appreciated) as I am trying to get an idea of what people in the know are doing. Our system is written in PHP.
As part of an Electronic Medical Record System, I need to be able to securely exchange documents (Word, PDF, etc.) with b... |
Increasingly when developing sites I find myself utilising more client side technologies such as Javascript, jQuery and AJAX.
For three different pages I measured the size of the HTML sent to the browser (excluding images and CSS).
What I found was:
A page that has normal ASP.NET controls + a little bit of jQuery: app... |
In Java, the variance of parameterized types is indicated depending on how it's used:
<A extends B,B> void store(ArrayList<B> list, A elem) {
list.add(elem);
}
Whereas in Scala it is indicated in the class declaration with a + or -.
What I want to know is, now that Scala has been around awhile, what has been peopl... |
Following along with the principle of not optimizing too early, I'm wondering at what point in the design / development of a piece of software do you start thinking about the concurrency opportunities?
I can well imagine that one strategy would be to write a single threaded application, and through profiling identify s... |
It is always difficult for me to choose between singular and plural forms for classes names:
CustomerRepository vs. CustomersRepository
CustomerService vs. CustomersService
CustomerController vs. CustomersController
And for composite names it is even more difficult:
OrderCustomerRepository vs. OrderCustomersReposit... |
While I was reading The worst anti-patterns you have came across, I clicked on the link in this post to land on the web site about anti-patterns.
And the http://sourcemaking.com/antipatterns/functional-decomposition page got me wondering.
How bad this anti-pattern is, and is it an anti-pattern at all? Because, although... |
I have heard of developers who work with code which is a complete mess because originally the code was quickly developed and the quality was not there in the first place.
Its always good to get maintainable, reusable code but I was wondering if it was best to sacrifice some of this due to time constraints. A common pr... |
I spend a fair amount of time reading programming blogs, and it seems to be a popular belief that having business knowledge adds value to a programmer. I can see the reasoning for this:
Understanding the business helps programmers make wise decisions
Might encourage less "taking too long making everything perfect" an... |
I've recently been approached to do some development work for a start up.
The fellow has requested my terms and conditions.
Being new to the industry, what sort of information would/should I include in this?
Obviously pay rate and maybe information about ownership of Intellectual Property perhaps.
Is there anything I'm... |
Awhile ago I tried reading about Google App Engine, from its site and from the Wikipedia article. What I realized was that not only did I not understand what it did, I didn't even know what problem it was solving.
I am a competent programmer in a variety of languages, but I have little experience with large frameworks.... |
I've been trying to learn functional programming and most tutorials I have found use math as examples for the more complicated constructs (even the simple ones in some cases). Why is this? I would imagine something easier could be used. Its making it difficult to learn.
Background Info:
I have been writing software for... |
Once upon a time it was common practice for both the business logic and database logic to be written in the same language (eg PL/SQL, Transact SQL, etc), more recently the practice is to separate the application into layers/tiers such as database, business logic, and presentation, with each tier written in a different ... |
I notice that web related code uses setter methods to set class fields instead of setting them directly since they are in scope. I find this to be a bit odd. Using setters is certainly safer, but if unit tests are implemented then bugs will be found. And it's not worth the extra stack call, imo.
Does any production ... |
Question
Is there a legitimate reason NOT to use SVN for production deploys, or is this merely a case of personal preference and there is no real case against SVN?
Background
My workplace has a culture of tagging release in SVN and then deploying those releases directly to the various web servers using svn co or svn sw... |
Is there any solid evidence behind the reasons for decline in search volume for popular programming languages?
Could this possibly be due to improvements in finding necessary information (no need to search 10 times to find something) and quality of information?
|
For an experience core Java programmer with no AJAX and very little Javascript experience, the GWT is attractive. But, what will I be missing if I just use GWT?
|
I was reading the Wikipedia article on Douglas McIlroy and found a quote that mentions
"The real hero of programming is the one who writes negative code."
What does that mean?
|
So I have an open source project that I would like to promote and I want to create a project-site for it where I will host the documentation, etc. (preferably something that integrates with github for handling downloads, issues, etc). The project-site should be just like a typical.
Is there anything out-of-the-box for ... |
I started coding WPF applications a several months ago and now I am asking myself if there are some style guides for XAML. I do not need to get explained the benefits of Binding, Converters, Styles, Templates etc. My question is more basically.
Is there an official (or unofficial) „best practice“ about the order of att... |
After reading the book The Pragmatic Programmer, one of the arguments I found most interesting was "write code that writes code".
I tried searching over the net for some more explanations or articles about it, and while I found some good articles on the subject, I still haven't found any specific code implementation or... |
There are a lot of posts on this but I'm kinda looking for specific help, I've typed many different queries into Google but the majority of page returns seem to be dominated by beginner tutorials, planning, generators, and lots of other rubbish related information, It may have something to do with that fact that I'm ru... |
I'm writing a web application in which I need to analyze words (now just in English, but maybe in future in any language). I tried to write a framework to do the job, but it soon proved to be something really really hard. Finding stems, understanding part of speech, finding consonants, determining morphological pattern... |
Consider these methods:
public List<Employee> GetAllEmployees()
{
using (Entities entities = new Entities())
{
return entities.Employees.ToList();
}
}
public List<Job> GetAllJobs()
{
using (Entities entities = new Entities())
{
return entities.Jobs.ToList();
}
}
public List<Tas... |
I am a C# programmer, and most of my development is for websites along with a few Windows applications. As far as C goes, I haven't used it in a long time, as there was no need to. It came to me as a surprise when one of my friends said that she needs to learn C for testing jobs, while I was helping her learn C#.
I fig... |
I'm suffering a crisis of confidence in my ability as a computer programmer.
Yesterday I tried to come up with my own shortest path algorithm for a graph and after some hours I simply threw in the towel and learned Dijkstra's algorithm.
Is this the kind of thing a good programmer should be able to "reinvent" in a coupl... |
At the beginning of every iteration our whiteboard is covered with "not started" stories estimated in IDEAL HOURS. On a daily basis we update these estimates to keep track of each task's progress. I think we are doing it wrong. The original estimates are in ideal hours and our daily "re-assessment" in ELAPSED TIME. Thi... |
I am looking for arguments to convince management to invest effort into refactoring.
We log work using Jira and relate every svn-commit to a jira call.
My idea is to do the following:
manually spot an area of code which is extremely bad implemented, but often used: both from User-POV and of Developer-POV (bugfixes)
ge... |
The static keyword on a member in many languages mean that you shouldn't create an instance of that class to be able to have access to that member. However, I don't see any justification to make an entire class static. Why and when should I make a class static?
What benefits do I get from making a class static? I mean,... |
I am signing a contract with someone remote in another country in regards with creating a new style sheet for their website. In our agreement the client pays 1/3 of the money first as deposit and the rest will be paid when I show the completed project online to him.
Now my question is, since I know CSS is viewable onli... |
For my project I want to develop an web application with Windows Azure as the platform using C# language. The idea is to host the website of a University on the cloud. Whenever it announces the resutls online there is a spike and the cloud will handle the peak usage with its scalabilty and load balancing properties and... |
I'm familiar with the basics of run-time analysis such as what makes certain types of code O(n) and O(n^2). But I'm having real trouble learning, understanding, and really remembering how to analyze pieces of code that run in other complexities such as O(n log n) or O(2^n). I'm looking for resources that explain in s... |
I've worked in past on some of the workflow engines as programmer but never had a clarity on why we chose the work-flow engines in first place. And as programmer I know that there are at least 100 ways to do anything when you are writing code but only few of the ways are the best!
I still don't understand which use cas... |
Possible Duplicates:
How do you share your craft with non programmers?
https://softwareengineering.stackexchange.com/questions/1985/how-to-explain-programming-to-a-non-programmer
https://softwareengineering.stackexchange.com/questions/8022/how-do-i-become-more-articulate
I love programming and I like to learn everyth... |
My professor keeps referring to this Java example when he speaks of "robust" code:
if (var == true) {
...
} else if (var == false) {
...
} else {
...
}
He claims that "robust code" means that your program takes into account all possibilities, and that there is no such thing as an error - all situations are... |
I have recently acquired a habit which I know many of you may frown upon, but which, in the end, helps me keeping an eye on global code structure rather than on the structure of a single, (sometimes) repetitive method: grouping a number of statements in a single line, like this:
textBox1.Text = "Something!"; textBox2.T... |
I am working in a private bank, a leading mid size bank in local market. We are going to create our core banking solution. Existing solution has been developed on Java using IBM Visual Age 4.0.
It is very important to discuss architecture first, we have currently more than 350 branches working in standalone mode, and i... |
After having watched this video I have to ask how a programmer can go about measuring themselves against other, better programmers much as a chess player would.
How would you decide who is a role model to start with? I mean James Gosling is known by every Java programmer but he invented the language and there is almost... |
Possible Duplicate:
How should I charge for programming things which take two minutes to fix?
On some systems I created, every now and then I get tiny change requests from clients that are very easy for me to do, but the client can not do it themselves.
For example:
Hey, we made a new logo, could you please upload ... |
I am asking this question because after developing a few small custom cms solutions in a framework, I developed the idea that Models can be easily substituted with ORMs which ease up the task of validating, getting and setting data, as thats all they are needed for.
I recently got an order for a complex custom client m... |
I'm am about to commence redesigning my resume all over. What I'm stuck with is where should I draw the line between writing everything down and writing too little.
I don't want my resume to be a pack of buzzwords nor do I want to seem to not know any of the things I do know.
Keep these thoughts in mind and wanting to... |
Note: by 'complex' math I mean an equation with many steps involved and a wide mix of operators.
A programmer should know the order that operators are evaluated in an equation. However it can be a royal pain to look at an equation such as:
result = value_1 + value_2 * value_1 + value_3 / value_4 % value_5;
One option... |
I discovered the Joel test recently and applied it to my team. However, I but found hard to apply some points to my company since we are developing small chips with both "wired" and programmable algorithm.
5: Do you fix bugs before writing new code?
Since we cannot patch the hardware/software once delivered, we canno... |
It often happens that I develop multiple different projects at once, so I need a solution to switch from one environment to another.
I have created batch files to do the job but as this thing grows, I'll soon need something better.
Some things I do are:
Map drives
Launch applications
Load test databases
Set environmen... |
Say you left your previous employer about 3.5 years ago to pursue a growth opportunity, my primary motivation for moving. If a position currently opens up in that same company today for a Software Team Lead, would you:
Apply for this position, if you still have a lot of good relationships
If you would apply and can s... |
Say you were hired to create education software that will be sold to students of a particular academic institution. You are the only developer working on this project and have written all of the code. An open source alternative to the project has the potential of benefiting underprivileged students from around the worl... |
So, during the couple of days I've been thinking what it takes to make your own linux distribution. Where should I actually start? I'd like to have some very basic tips for this. I consider myself a decent programmer, mainly in c++ and objective c. And what limits there are in making a distro?
|
I have a program which is built of 5 major components. I find the standard version numbering too limiting because I would like to see what version each compoment is at.
Has anyone found an easy way to do this other than list each separately?
|
As for interacting with the DOM, different browsers will offer methods -and results- that are different between them to some or other extent.
But how about JavaScript itself? Do all browsers (or platforms e.g. Adobe Reader) implement the same syntax and behavior?
Aspects that particularly worry me are function/object h... |
I moved to this company recently, and my first reaction of the development process leaves me with doubts.
Here is where I really doubt the efficiency: Every single function must have Javadoc style comment, and the code is tested by White-box Test automatically.
Even when I write simple & short function, the function ... |
I'm a PHP developer for a living but have never worked on or contributed to any open source projects before.
I am developing a CMS for my own use. I have a working prototype and I think that once it's ready (probably a couple of months time) this could be something the PHP community would be interested in.
I'm a fairly... |
I recently pitched a project I've been working on to a small company that I know, coincidentally, has a need for something similar. They seemed excited by what I have, and what I said I could do, but worried that, as a lone (actually, they said 'rogue') programmer I could up and leave them with a non-functional program... |
I want to dig into C and normally when I want to learn a new language I think of a simple/attainable project goal that has some practical purpose (make use of an api, automate a task, etc...)
I'm having a harder time coming up with one for C mainly because everything I read points to the fact that C's primary use curre... |
Recently, I posted the following question on SO: https://stackoverflow.com/questions/7197337/using-asp-net-membership-provider-with-an-existing-user-database
As you may notice, I ended up answering my own question stating that it looked like writting/implementing a "Custom Membership Provider" was the way to go.
Litera... |
Ive struggled with variants of this problem many times, experimenting with different solutions, happy with none.
Abstract: Enumerating a list of items, an error for one item does not affect the others. Potential callers have varying requirements on how to treat these errors, goal of the API is to simplyfy use and reduc... |
I was wondering if it is wise or advisable to send over a large amount of source code of one's application for debugging and error solving purposes, I'm working on an iOS app that I hope to release to the App Store and am seeking help on Stack Overflow and I'm tempted to send over a large amount of the code so someone ... |
I want to know how much Java Certifications (SCJP, SCWCD and others) are important for an architect position. If a person posses a good experience in Java development and want to pursue his career on architect level, do you guys think he need to have certification on his CV. If he has never worked on lead developer rol... |
I'm confused. Does Glassfish come as part of the Java EE platform? Can you get Glassfish but not Java EE?
|
I have no mobile application development experience, I don't even own a rich mobile device (I can send text messages with my cellphone :) I have strong web, .NET, and Java experience but am open to develop with any language / platform. I need to target at least iPhone, Android, and Blackberry devices. I am seeking some... |
I'm looking for a definitive answer to why extending built-in prototypes is so heavily chastised in the JS developer community. I've been using the Prototype JS framework for a while, and to me doing [1,2,3].each(doStuff) seems much more elegant than $.each([1,2,3], doStuff). I know that it creates "namespace pollution... |
I am looking for some best practice strategies for unit testing code written for embedded system. By embedded system, I mean code such as device drivers, ISR handlers etc., stuff that are pretty close to the metal.
Most of the unit tests are not possible without testing it on the hardware with the aid of a ICE. Someti... |
How can I tell if a system is built upon a service oriented architecture when reading its source code?
|
I've done some searching around on how to interpret morse code inputted by a human. I haven't found any existing libraries or applications that do this, but I found some academic papers on how it can be done.
Before embarking on the journey of trying to interpret the academic language and advanced topics I have to know... |
I'm in the early stages in the design of a system that will essentially be split into two parts. One part is a service and the other is an interface with the service providing data through something like OData or XML. The application will be based on the MVC architectural pattern. For the views, we are considering usin... |
So far I've touched on various aspects of computational geometry including constructive planar geometry (locus intersections), algorithms for planar graph topologies, 3D DDA, and most recently a 2D convex hull implementation using Graham's Scan and k-means clustering represented as Voronoi diagrams.
It's a fascinating ... |
This is not an opening gambit for RoR bashing - honest!
I'm learning Ruby and the Rails framework. Prima facie it appears to be pretty cool, and a wonderful experience compared to PHP. (In fact, it's reminding me of happier days with C# and .NET.)
However, going into this, I have no experience with this framework or la... |
All XSLT editors I've tried till now add tab or space characters to the XSLT to indent it for formatting. This is done even in places within the XSLT where these characters are significant to the XSLT processor.
XSLT modified for formatting in this way can produce output very different to that of the original XSLT if i... |
I am a relatively new software developer, and one of the things I think I should improve is my ability to test my own code. Whenever I develop a new functionality, I find it really difficult to follow all the possible paths so I can find bugs. I tend to follow the path where everything works. I know this is a well know... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.