instruction stringlengths 34 19.9k |
|---|
We are running 2 weeks sprints where the team will just barely finish development by the last day of the sprint but cards are not complete because testing is not finished. The definition of done is really "when development is complete" rather than "when the stories are complete." We have a 1 week delay between the la... |
In our mostly large applications, we usually have a only few locations for "constants":
One class for GUI and internal contstants (Tab Page titles, Group Box titles, calculation factors, enumerations)
One class for database tables and columns (this part is generated code) plus readable names for them (manually assigne... |
What is better to do in this type of scenario: populate fields or return an object?
The situation is like this: I'm doing calculations to find the prices (inc tax, ex tax, discounted etc) of a product. Is there any advice or are there any guidelines on how to handle a return value?
Populate fields:
public class Product... |
I am in the process of adding unit testing to a project I am working on at work and a suggestion came up that I should use VMs to populate the database with good data. This was suggested as an alternative to what I usually do which is use yaml fixture file to load the data. While I think that using a VM for the unit ... |
I'm thinking of how we do JVM memory monitor in a low overhead way in production environment even under busy hour.
Suppose I have two tomcat app server in production, load balance set up behind them. If I can see the jvm memory statistics I can tell load balance to stop sending the request to the server which will enco... |
I have a .NET library, with some WebControls.
These webControls have Embed Resources.
And we declare them like it, in all webcontrols for each cs file:
Something like this:
[assembly: WebResource("IO.Css.MyCSS.css", "text/css")]
namespace MyNamespace.MyClass
{
[ParseChildren(true)]
[Persist... |
I want to make a cross platform application, which will also have a website where the desktop applications (Windows, iOS, Linux) will talk to the server and keep the users data in sync.
So far the options I see are:
Write a native GUI for each of the 3 OS, so I would have 3 GUI codebases (and a single backend system)
... |
If I create this method
public void foo()
And then I create an overloaded version like this
public void foo( string bar )
Do we say that the second functions overloads the first, or are both methods equally "overloaded"?
This would imply (I think), that there is a base type function, that is being overloaded, by anot... |
I want to learn XP, TDD and DDD to improve myself. My problem is I have general ideas of what they are but I don't know which one should I learn first, do I need to learn something before other?
Please suggest me which topic should I learn first, second and third.
|
I know you are thinking (or maybe yelling), "not another question asking where validation belongs in a layered architecture?!?" Well, yes, but hopefully this will be a little bit of a different take on the subject.
I am a firm believer that validation takes many forms, is context-based and varies at each level of the ... |
I have a team that without a single common language among all of the team members. The team is split across two locations (though the geography isn't the main issue). All team members in each location speak the same language and there are members in both locations that can speak both. I'd like to introduce scrum, but a... |
We are about to hire 1-2 new engineers for the software team (consisting of 3 developers, 1 tester).
What are the steps to integrate them into the team?
My ideas are :
read documentation (coding standards, documents in development methodologies we use)
get them to read the existing code
assign them some simple tasks
a... |
We have three internal web applications we use at my company. Unfortunately none of my predecessors had the foresight of sharing tables amongst those apps.
It has become necessary to share some company data among the three internal web apps. As an example, each of the three websites have a companies table in their resp... |
The current sql server database is overloaded and many transactions are failing. The powers that be have a proposed solution to build a separate database to handle/store transactions and then asynchronously insert them into the current system. Specifically persist new transactions to a new database then build routines... |
The project I'm currently working on is using Trac, with SVN integration. It's worked great until now. Now, however, we've taken on some additional developers and we're running into issues with branching and merging. Because of this, I think a move to a distributed version control system is in order.
The problem is th... |
class A {
static int foo () {} // ok
static int x; // <--- needed to be defined separately in .cpp file
};
I don't see a need of having A::x defined separately in a .cpp file (or same file for templates). Why can't be A::x declared and defined at the same time?
Has it been forbidden for historical reasons?
My main... |
For a REST API that I am working on, I want to return JSON in a consistent layout:
{
"Data" : {
"Id" : 123,
"Email" : "charlie@somewhere.com"
"Firstname" : "Charlie",
"Surname" : "Brown",
},
"Error" : null
}
The payload will always contain "Data" and "Error", where one or the other can be null.... |
When you're kind of fresh with Git (and DVCS in general), and you start exploring history-rewriting changes, you're safe if the repository is only local, but you might run into problems if you work with remotes and try to push such changes.
A feature that I'd expect is the ability to enable a "safe mode" which would ba... |
We had an assignment for our class where we had to create a Tic-tac-toe game. People like to complicate themselves, so they wrote complex games which included menus. At the end of the game, you had to have the option to play again or quit the program. I used an int variable for that, but I noticed some classmates using... |
I have a WCF rest service that will be consumed by multiple clients. The information returned by the client requires me to know who they are, so that I can return information specific to them.
Is the best way to approach this type of design to authenticate them and return a token for their session, then pass this toke... |
Some programmers recommend logical seperation of layers over physical. For example, given a DL, this means we create a DL namespace not a DL assembly.
Benefits include:
faster compilation time
simpler deployment
Faster startup time for your program
Less assemblies to reference
Im on a small team of 5 devs. We hav... |
For CS undergraduate students working on a 2-semester capstone course without any prior exposure to revision control systems, what would be a good one to use?
Desirable qualities would be easy to use (ie this should be a tool they can use rather than spend a lot of time fighting it) and still be relevant for subsequen... |
Let me begin by first apologizing for the length of the post, but I really wanted to convey as much detail up-front so I don't take your time going back and forth in comments.
I am designing an application following a DDD approach and am wondering what guidance I can follow to determine whether an Aggregate Root should... |
So, I've been working for a bank for the past 4 years. My main responsibility has been online banking. Over the past year, we've been implementing the scrum methodology. We've also changed to domain driven design.
Now, my problem is regarding what management is planning on doing. They want to split the online banking t... |
I had an argument yesterday with one of my colleagues. He (a business-analyst, previously a programmer) thinks that he should be aware of the technology used to implement the system, so he can take better design decisions. In my opinion (I am a programmer), an analysis should not be coupled in any way to the technology... |
This strategy involves replacing the likes of this:
public class Politician
{
public const int Infidelity = 0;
public const int Embezzlement = 1;
public const int FlipFlopping = 2;
public const int Murder = 3;
public const int BabyKissing = 4;
public int MostNotableGrievance { get; set; }
}
Wi... |
I understand that the hierarchy, in cppcms for templates, goes skin (topmost, representing a namespace), then view (representing a class) and finally template (representing a function).
I want to know when I should use a skin and when I should use a view; would each page be a skin or would it be a skin per application,... |
I have a paid Android app that I made by myself this past summer and I've been working on it throughout the year. The app is geared toward a professional niche market (but there are people all around the world who would buy it,) so it's priced highly. It is
Mostly C++, some Java
Built heavily on Qt (in the C++ code)
1... |
I've been working with the Observer pattern in JavaScript using various popular libraries for a number of years (YUI & jQuery). It's often that I need to observe a set of property value changes (e.g. respond only when 2 or more specific values change). Is there a elegant way to 'subscribe' the handler so that it is onl... |
I have a rather simple app in .net which uploads images in fixed intervals in an ftp server.
The file name is specific.
I need to have a web page that refreshes but i want this to happen only when the upload finishes.
How i find a way to determine that the upload has finished? And if the solution has to do with renami... |
Possible Duplicate:
Why are interfaces useful?
Like most faculty, my java faculty introduced interface without explaining or even mentioning its practical use. Now I imagine interfaces have a very specific use, but can't seem to find the answer.
My question is: a class can directly implement the functions in an inte... |
This one I heard when I was recently interviewing a person and asked him why he was looking for a change within an year of joining his previous company. Particularly a company which is known to be in the business of processing high volume transactions, 100s of 1000s of orders flowing through the system every minute etc... |
I have a scenario where a local app is used to take snaps using the iphone camera and the local app can send the photo to a web server...
Now when the user visits a website or another web app using his iphone, then the website/webapp invokes the local app to do its work.
Do security/other restrictions on iphone prevent... |
Quite frequently, I use an Adapter-like design to expose different aspects of data objects.
For example, in a 3D modelling application I use an object hierarchy to represent the 3d models in the scene. This hierarchy contains lots of internal information and is quite complex to traverse.
For exporting the 3D model data... |
I need to get a list of valid addresses in 4 or 5 clusters (cities) in both the UK and US. It's to generate sample data for an application that will do geolocation and searching. At the moment I'm generating the addresses more or less randomly, which means I hit postcodes that don't exist and obviously the street and n... |
I am here to ask a question that has been asked many times before. What programming language should I learn to become a intelligent conceptual programmer?
Many people agree, you do not have to learn any one programming language; you need to learn programming as a concept itself (Most of us can become semi proficient... |
I'm currently running a start-up with a buddy and I noticed that some of my university assignments could be finished by simply copying some code from some of the programs we've developed. Are there any legal troubles I could run into? Or is this just a bad idea in general(as it is starting to feel right now)?
Sorry if ... |
I've spent 3 days debugging one very obscure bug in a library made by my colleague, this bug happens very infrequently. After all I found that this bug happens due to cross-thread access to an object without any lock. Actually this is not a first bug of this kind, there were similar bugs before. He just runs his unit t... |
Are there any actual business cases that have made any company move from a DVCS to a CVCS (regardless of whether they were on a CVCS originally)?.
Other than having a closed mind and rejecting the paradigm shift altogether (for the particular case of companies coming from a CVCS) I cannot think of any cause for this ha... |
I was wondering how safe is to say that —because developers are free to version and have better and more organic workflows— code will be delivered faster.
A big factor here is team size of course, and I'd say the team is big enough to see this benefit (10-15 core devs, and maybe 5 to 15 more contributors to the common ... |
In the blog post Don't structure data all the way down, the author discusses different ways to structure a circle datatype and how to implement the parameters to a Radius function.
area({circle, {point,0,0}, 17.4})
Kind of messy. What about a function to build a circle for us? Then we could do this:
area(make_circle(... |
I'm writing a compiler that uses the time-honored strategy of using a C compiler as the back end, and I'm trying to figure out exactly how to handle integer sign.
I'm using machine word integers as the default (translating into intptr_t and uintptr_t in the generated C), and while for myself I would prefer to make the ... |
Once when I was refactoring my code, I went up the IDE to the using section of my C# class, and cleaned unused namespaces and duplicate namespaces, and sorted them all.
My pair (pair programming) asked me the reason. I had no idea why I did that. I did it out of my habit to keep all of my code clean and tidy. I mean, I... |
I have been learning some Ruby recently and I had the following experience.
I had written a small tool of about 200 lines of code and, as an inexperienced Ruby programmer, I had used several loops to build arrays from other arrays.
E.g.
gs = ... # Some array of input data.
l = gs.size
i = 0
r = Array.new
while (i < ... |
I want to integrate Spring framework in my project especially into server side.
So, I don't want to put it within WEB-INF folder of war file.
Should I put an applicationContext.xml it into each layer (means each project since divided in distinct projects? (Services, Domain, and DAO)
What is the good practice ?
|
I was just wondering how API's can be shared between different Programming languages.
I mean, MS have .Net which uses VB.net C# and various other technologies.
I doubt .Net is written for each programming language.
How are structs and classes shared between languages?
Also the same for Unity3D - Javascript shares API'... |
I am a big fan of good coding style, producing clean, clear code that runs well and is easy to use and integrate into larger systems. I believe that we programmers are essentially craftspeople who should take pride in our work, every line. I am not fond of code that is inconsistently formatted, cluttered with commented... |
I have been running into this problem more and more: I am not happy with the current API, and end up making my own class that does what I wish the API did; however, I don't extend the 'super class' as I don't feel it fully fits. I can't imagine that this is good practice, so should I just extend the 'super class' or sh... |
Possible Duplicate:
Version control for independent developers?
I am not sure if I should use a code repository when I am the only one working on a project.
|
I've read a couple of definitions and discussion on REST and/or RESTful applications, but I still do not understand the real meaning of it.
I usually work with the apps which either fetch data via GET or send data via POST to some web service (usually a PHP script) which then either get data from the database or do wr... |
As we have a wonderful concept called hooking where we can create a reference to a function and connect another function In the same way can we create a reference to DOM objects. For example can we create a function and hook it to document.location so that whenever document.location is used the other function must be t... |
Is there any algorithm that works better than O(n²) to verify whether a square matrix is a magic one (e.g. such as sum of all the rows, cols and diagonally are equal to each other)?
I did see someone mention a O(n) time on a website a few days ago but could not figure out how.
|
I am trying to draw a use-case diagram for a software project.
Two requirements for the software I am trying to model in use-case diagram are:
A customer (i.e. Client) should be able to cancel its previous request. In this case, the client must select the relevant request from their list of request.
A travel agent sho... |
I have read that doing a select case is often a code smell. There are cases however where an interface cannot solve my problem.
For instance, I have a set of date filter objects (last 7 days, last year, ect.) that implement a IDateFilter interface. In another part of the code, I need to determine the type of date filt... |
I am trying to draw a UML use-case diagram to model requirements for a software project.
The two requirements I have issue to model are:
TravelAgent creates a booking for a [old] client who is requesting a home.
When a new client wishes to make a booking, the TravelAgent register him/her to the system before doing the... |
Are there screencasts on the Internet showing screens of programmers that decided to record their daily work and show their programming style?
I'm interested in seeing how other programmers effectively use tools like an editor with various features, debugger, looking for bugs, profiler etc.
Maybe such "crazy programmer... |
Many apps have a Free version and a Full version. How is it compared to, installing a single version, and use an in-app purchase of $0.99 or $1.99 to unlock to the program to make it a full version? It does have the advantage that the user doesn't have to go to the App Store and install the program one more time and ... |
I got interested in the Soviet space program and was interested to discover that the software on the Buran spacecraft circa 1988 was written in Prolog.
Does anyone know what languages might have been used in earlier missions, especially the Mars PrOP-M rover missions of the early 1970s which were somewhat autonomous ... |
I understand that threading is needed to get the maximum performance out of today's multicore processors but starting a thread is rather costly so you can't put every single calculation that can be done in parallel in an own thread. For example
answer = new thread(plus(1,2)) + new thread(plus(3,4))
will run much slowe... |
I just got a batch of LED matrix modules from Sure Electronics (http://www.sureelectronics.net/goods.php?id=1120) and a driver board (http://www.sureelectronics.net/goods.php?id=972).
I've got it wired up, and connected to my Mac. I found the right drivers, and I'm now able to send text to the displays using the virtua... |
I would like to know if the name of an open-source application can be trademarked by the original author and what it means when it comes to distributing it through major linux distros, that is, will they accept this kind of software?
|
I have a debug and a live server running a LAMP setup with some python scripts. By now I'm working with eclipse and Expandrive (via SSH) on the debug server. Whenever I want to release new code on the live server, I copy and paste the code via windows explorer from debugdrive to livedrive.
I think this environment real... |
A colleague of mine suggested using a factory class for creating viewmodel objects in our ASP.NET MVC solutions. The idea being that it can help with the design, and maintainability, of the way viewmodels are built in our apps.
I wanted to find out if anyone else has experience of this. I've done some research and foun... |
Please have a look at this link:
http://en.wikipedia.org/wiki/Maze_generation#Depth-first_search
Here, the theoretical algorithm given is:
Consider the space for a maze being a large grid of cells (like a
large chess board), each cell starting with four walls. Starting from
a random cell, the computer then selects... |
I'm looking for the term that applies to a certain kind of filtering behavior. It's often used in webshop-like interfaces, where large amounts of data are filtered based on a selection of filter criteria. The most distinguishing feature is that it's impossible to pick a filter criterium that leads to no results, as the... |
What would be the best approach to achieving private communication between my iOS app and its server component? Is having a single unchanging “secret key” baked into the app source enough, or do I need to set up generations of such “handshake” keys dynamically somehow?
The server by itself doesn’t have access to any se... |
Possible Duplicate:
Hand over source code to customer
I have developed a couple of form based windows application in vb.net for a client and they all work well and he paid me through a freelance site. I have handed over the executable and the setup to the client and all was well. Now the client wants the source code ... |
What do you think about SCM-based (subrepositories in mercurial, submodules in git) dependencies management?
Is it definitely a good way of managing dependencies? Or definitely bad way?
Should I prefer some build system (ant/phing/rake) over subrepositories?
Some particular example for you to have a context:
I have sev... |
I know this is kind of time-management question. I do well in short assignments, but fail miserably, when it comes to projects that require hours and hours of work to be done day after day.
I cannot code more than 10 minutes, unless there is a deadline. I kinda wander and come back and code. It takes me ridiculously la... |
We're implementing an adapter for Jaxen (an XPath library for Java) that allows us to use XPath to access the data model of our application.
This is done by implementing classes which map strings (passed to us from Jaxen) into elements of our data model. We estimate we'll need around 100 classes with over 1000 string ... |
C# style suggests using CamelCase in identifiers to delimit words. Lisp tradition suggests using-dashes-instead.
Has there ever existed a programming language where using spaces in identifiers was not only allowed, but a commonly used idiom when employing multi-word identifiers?
It's possible to have identifiers with s... |
We've probably all been in the situation where you'd like to alert your team members to some change ("I changed X, so now it's running every hour instead of every day"). But the change is non-urgent, and email can be disruptive - or get tuned out.
Anyone have any techniques where the team can have a running log of chan... |
I would like to know if it is possible to make an application to be sold on Apple AppStores that is linked (during compilation) to a BSD-licensed library.
|
Disclaimers (Please read before jumping to answer):
I've seen a number of questions similar to the one I would like to ask, so here are some similar questions.
IMHO They are neither completely what I'm asking, nor are they as thorough as I hope to be (I don't mean to brush off the answers to the below questions, nor am... |
In a interview I was asked,
Suppose we are going to create a software that runs on both desktop machines and smartphones. Name a software design pattern that could be used to enable the application to create different classes for display at runtime depending on the platform.
I know there are simple solutions to imple... |
Generally GC is not a good choice to get a soft real-time attribute. But Erlang is GC based language can be soft real-time.
Does it mean Erlang have almost no GC latency? How does it work?
|
Iam not sure if this topic is ok to ask, but we are talking about this since years in our Developer-"Shop". How to write concepts for Web- Applications?
We are using Zend Framework (MVC), OOP Based, Databases, LDAP and such stuff. But no one ive ever meet can show me an good example for some kind of "technical concepti... |
I am new to openGL C++ and what I wanted to know is if there was a pre-existing function in the OpenGL library that would allow me to import a 3d or 2d model?
For example, if I make a 3d image using photoshop, or a 3d model using 3ds max could I use a library in openGL example (not real function): glUse3dimage(3dmo... |
What is the fastest way to find the first (smallest) integer that doesn't exist in a given list of unsorted integers (and that is greater than the list's smallest value)?
My primitive approach is sorting them and stepping through the list, is there a better way?
|
I was thinking, is there a particular time in your coding where you verify that it works? Say, after coding a function, or an entire class, or an entire section of an app, or after every 'significant' block of code?
I ask this, because I tend to verify my app too often, sometimes after every 3rd or 4th change. This is ... |
I have been working for a couple of months now in a company that estimates (for the general population, not juniors specifically) tasks and then we are given the task, solve it, it goes through two tests and at the end the estimate should be somewhat met.
I am beyond stressed because some of the estimates are simply im... |
I have just begun development of a web application (that will be deployed using Google app engine), without going into the specifics, the web app will allow users to deploy a small website of their own, part of app allows the users to create a form to allow customers to sign up to the users website, however each user m... |
I'm not sure I have the correct verbage in my question, so let me explain:
What I mean by "software architectural design":
I have (what I believe) is a unique and useful design concept for an architecture that involves multiple clients, shared states, blah-blah, etc. etc.
This architecture would be used in multiplay... |
If I am not storing credit card info, do I have to be concerned with PCI-compliance?
I will be using a payment processor with a bank in my country. Literally just taking the credit card info and passing it to the gateway and processor. I would love to get an idea of the various technologies I might need to consider fro... |
This type of conditional statement is generally frowned upon
if(condition)
statement;
because if you add another statement, like this
if(condition)
statement;
statement;
it gives the impression that the second statement is part of the if block when it isn't.
That said, my IDE does automatic indentation, which I... |
I have spent some time studying Django and I've done some applications. But I really don't know what is the best approach while developing an application, I mean, there are several options: Make all the models, then all the urls, the views and then make all the templates.
Other people recommend using an agile approach,... |
I'm a member of my high school's robotics club, and am responsible for programming the robot. One suggestion I keep hearing from various adults is that I should be writing unit tests to help validate my code. The code base is getting a bit big, and I do agree that unit tests would be really helpful in helping me catc... |
I was wondering if I can use a Python script to test a C program automatically.
Suppose I have a very simple C program which reads data (numbers as test cases) from the console, calculates them, then outputs it to the console. Now I want to read data from a file then output whatever the program outputs into a file.
Sup... |
Should catch blocks be used for writing logic i.e. handle flow control etc? Or just for throwing exceptions? Does it effect efficiency or maintainability of code?
What are the side effects (if there are any) of writing logic in catch block?
EDIT:
I have seen a Java SDK class in which they have written logic inside the ... |
I work on some iphone/android apps and the “data stored on a centralized server” pattern seem fairly common.
So far, I have done one app like this, doing everything myself at a low level without using many libraries:
MySQL database
PHP/HTML web forms allowing the app manager to enter/update content with some validatio... |
I'm currently studying for an examination and one of the sample paper questions is to discuss the limitations of UML. Most of the material I'm finding on the net is relating to a specific UML implementation or language. I'm wondering from a generalists point of view what would you consider the limitations of UML to be?... |
I've recently forked a project on Github and made some modifications to it, pushed them back to the forked repository and asked the original developer to pull the changes. (I gather this is the preferred way of contributing on Github.) The project is licensed under GPLv3.
I am the author and the copyright holder of the... |
Short Version: What is the term/concept which describes the efficient design of programming the data layer for efficient data access and what are some sources/books/articles/website which discuss this concept?
Long Version: So I had a recent conversation with the senior developer at my small company about how and why w... |
If I am about to develop an Enterprise application, but as far as I understand from agile process, I break features into small chunks and develop them iteratively. I used to create the database and the core of the application first, then I extend these iteratively.
The question is: Do I have to keep what I used to do p... |
Is there a better way to compute cartesian product. Since cartesian product is a special case that differs on each case. I think, I need to explain what I need to achieve and why I end up doing cartesian product. Please help me if cartesian product is the only solution for my problem. If so, how to improve the performa... |
I am building a web app that manipulates fairly complex data: guitar tabs.
As a reference, guitar tabs look like this:
Eb|-------------------------------------------------------------------------|
Bb|-------------------------------------------------------------------------|
Gb|--5-5-5-5-----------------------------... |
I'm writing something on how iterative Fibonacci is substantially better than recursive Fibonacci - a few lines. The main reason of this I find, as do many prominent researchers I believe, is that you don't recalculate values - space vs time. From this I thought ah ha! caching! But I'm not sure if it is caching, memoiz... |
Many software companies preach in their Website Banners: "Global Delivery Model". Has it anything to do with Deployment?
|
Our app basically is a few forms that are filled out by people.. Then these forms are validated and reviewed and reports are created..
So I was thinking about DI and messing with a simple example of Unity + MVC
http://netmvc.blogspot.com/2012/04/dependency-injection-in-aspnet-mvc-4.html
So could it be useful for somet... |
Background
Looking to leverage an existing GIS system for exploring organizational data.
Architecture
The following figure represents a high-level overview of the system's desired features:
The most basic usage would be as follows:
The user visits a web site.
The system presents a map (having regions, cities, and bui... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.