instruction stringlengths 34 19.9k |
|---|
Code Exploration (CE) is quite a new term and I wonder if there already any successful examples of implementing this techniques in terms of Continuous Integration principles?
In short, Code Exploration can be described as the process of testing your code using different parameters to achieve high code coverage. The one... |
I have a big database of data which we can consider today's system. The data has a web front-end which allows my users to update the data. Let's call this "original solution"
When new users come in they come as a set of new users. These users need their own data and their own web front-end. Let's call this a "solution"... |
Is there a common name for the practice of keeping a version number on your data, so that different versions of your program can identify, for example, "current", "legacy", and "too-old-to-deal-with" versions of the same type of object?
As discussed here: Strategy for backwards compatibility of persistent storage.
|
I like how "Introduction to Algorithms" by Cormen et al. conveys knowledge. One reason is that everything has to do with programming problems and the book is not implemented in any particular programming language. This language independency provides focus on the ideas in general.
So my question is, as it says in the ti... |
I am confronted with the problem of migrating a huge monolithic java web application towards a more service oriented approach. The application has grown for years from what it was originally desinged for and is still growing. That means a lot of changed customer requriements where development under time pressure with f... |
What's the difference between the RPL licence and the AGPL licence?
Which one is more restrictive?
|
I have two client types, an "Observer"-type and a "Subject"-type. They're both associated with a hierarchy of groups.
The Observer will receive (calendar) data from the groups it is associated with throughout the different hierarchies. This data is calculated by combining data from 'parent' groups of the group trying t... |
Google's Dart language is not supported by any Web Browsers other than a special build of Chromium known as Dartium. To use Dart for production code you need to run it through a Dart->JavaScript compiler/translator and then use the outputted JavaScript in your web application.
Because JavaScript is an interpreted langu... |
When looking at examples of definitions of done in various sources, they usually include points like
code completed
unit tests run
code peer-reviewed or paired
code checked in
documentation updated
…
In our team, we have a similar list, but nobody ever looks at it because those points seem so blatantly obvious that i... |
I'm writing documentation for some interactive Ajax user interface but instead of writing everything in words I would rather provide diagrams that are faster consumed than whole paragraphs of text. I did provide page navigation flow diagram but that's very high level before you drill down to individual pages and their ... |
I'm currently contemplating writing an OS X version of my Windows software. My Windows application still supports Windows XP, and I know that if I drop support for it now, our customers will cry bloody murder.
I'm new to OS X development, and as I learn the technology, APIs, etc., I realized that if I'm going to provid... |
Would this be considered dependency injection, or delegation or object collaboration?
https://gist.github.com/3428071
|
Dear fellow programmers,
We're developing software which simulates vehicular traffic.
Part of the process called "assignment" is concerned with assigning vehicles to their routes and has to use some kind of shortest-path-finding algorithm.
Traditionally, people do this with Dijkstra's, and certain scientific literature... |
I'm reading Skiena's Algorithm Design Manual and there is a problem on page 5, "Robot Tour Optimisation", where he says this about the sample problem:
"Suppose we are given a robot arm equipped with a tool, say a soldering iron. In manufacturing circuit boards, all the chips and other components must be fastened onto t... |
I'm designing a software as a service project which will only be accessed online. I may have a hard dependency on an executable which is covered by GNU GPL (v2 or later).
I understand that my code, if I were ever to distribute it, must be distributed under the GPL terms as well. I am pretty sure that running the servic... |
So a client comes to me and says it needs some work done. Basically 4 tasks, which I agreed to perform for a certain price. The customer creates the job offer (a fixed time and price job) on ODesk, I accept it, but it took some days and constant reminding for the customer to initiate a contract based on that job.
The p... |
For an upcoming XCode iOS project I'm planning on writing my views and view controllers in Objective-C. My model will be provided to me in C++.
I am aware of 2 ways of using C++ in an objective-c project. They are described below. What are the pros and cons of each method. Is there any other recommended way, and what a... |
This is just a consideration for a site am creating and for other big sites out there.
I am using Identity Column to store the ID of some of my tables and I have classes whose Id are decorated with Int32 to hold the value of the ID retrieved from database.
My worry is that as the site grows bigger, some tables that gro... |
I am referring to the article Mocks aren't Stubs by Martin Fowler. When naming cases when he think "mockist" TDD will be advantageous, he said
It's particularly worth trying if you are having problems in some of
the areas that mockist TDD is intended to improve. I see two main
areas here. [...] The second area is... |
Is there a term for a 24-bit (3-byte) integer?
I know uncommon bit counts (such as a "nibble" or "nybble" for 4 bits) have names, and having 24-bits in both video and audio technology, for instance, is very common.
|
For the sake of readability I often find myself defining temporary variables while calling functions, such as the following code
var preventUndo = true;
doSomething(preventUndo);
The shorter version of this to this would be,
doSomething(true);
But when I come back to the code I often wonder what true refers to. Is th... |
I'm quite new to working in Agile and with user stories and scenarios in the BDD tool Cucumber and ideally I'll need to go on a course of all of this. I have a set of user stories that need to be edited for an upcoming release.
As an example one of the user stories is:
'As a user
I want a visual indicator on entry in... |
I come from a background of making MVC websites and HTML5 applications, and have recently decided to dive into the sort of stuff i wasn't taught at university, namely the things most people would learn on a computer science course.
I've been reading a book on algorithms, and the first one it mentions was the Insertion ... |
I am an intern for a health company (unpaid), let's call it Company A and I noticed that they are using a lot of paper form for things that can be done on the computer. Excel files for things that shouldn't be in Excel. So I wanted to improve on my programming and figured that it was the best opportunity to do.
I devel... |
I've got a bit of an argument at my workplace and I'm trying to figure out who is right, and what is the right thing to do.
Context: An intranet web application that our customers use for accounting and other ERP stuff.
I'm of the opinion that an error message presented to the user (when things crash) should include as... |
Up to now I have always worked with imperative languages like Pascal, C, C++, Java in a production environment, so I have experience with debuggers for these languages (Turbo Pascal, Turbo C, GDB / DDD, Visual Studio, Eclipse).
A debugger for an imperative language normally allows to
Set break points on statements, an... |
Problem I'm trying to solve, apologies in advance for the length:
Given a large number of stored records, each with a unique (String) field S. I'd like to be able to find through an indexed query all records where Hash(S) % N == K for any arbitrary N, K (e.g. given a million strings, find all strings where HashCode(s)... |
We have some back end processes that runs* on our sql server (SQL Server), they involve processing claims. This requires both data manipulation (biz logic) and data read/write to tables. The biz logic contained should never be used by any of our end user (web/fat client) applications, just for this (runs once, nightl... |
I'm looking at backbone.js and noticed that it supports various templating systems (they specifically refer to Mustache.js, Haml-js, and Eco, but I understand it can support even more)(like Pure and dust.js)
Why are there so many of these? What makes one better or different to the others? Can anyone shed light on what ... |
I realise that this question may be down to personal preference but I'm pretty new to Bash / shell scripting so thought it'd be worth some research to see if there's some sort of standard/best practise or agreeable consensus.
I'm working on a few scripts that I'd eventually like to release open source (probably MIT lic... |
What is the process for leaving a company (or even a group/division) in terms of code support?
Is it best to handle all questions? Do you give the remaining developers access to yourself as a future resource? If so, is there a way to not give full access?
I've experienced first hand where answers about the general soft... |
I am trying to find a piece of hardware that will signal a program to start a timer when it is moving and stop when it stops. The hardware can just be a ball that moves and is connected to the computer through USB, I was thinking of something similar to the way a mouse would work. For the programing I would like to use... |
Suppose we have two peer nodes: the first node can send a connection request to the second one, but also the second one can send a connection request to the first one. How to avoid a double connection between the two nodes? To resolve this issue, it would be sufficient to make sequential the operations performed for cr... |
I am the Lead Developer for a small software company. Over the past two years, my team has grown from one developer (me) to a group of about nine people. Most of us are very capable, senior engineers (20+ years of experience building software per person), so very little hand-holding is generally necessary. We use Scrum... |
Assume we are developing a REST system for an enterprise company to expose the companies resources in a Java based application. Ultimately you have one web application, and domain libraries. My question is to where components and services should live in these domain libraries and what should exist in the application it... |
I have found a need for a standardization for storage and recording of data relating to diabetes information (I don't think there's any, but I may have missed it).
To that end I made this github project because I want to create one.. but I don't really know how to go about it, or even for sure what I want to create is ... |
In asp.net webforms I have a home aspx page that has a “Go” button. [This is the only control in this page]. When this button is clicked, the user is redirected to “UserProfile.aspx” page. How can we represent this redirect action in sequence diagram? Any reference articles/blogs for this?
|
In the past few months, I recognized a big excitement about client-side scripting in web development. But while server-side technologies are mature, stable and well accepted by backend-developers, client-side technologies are immature (i.e. compared to big server-side framework) and disliked by many long-established de... |
TL;DR
Sort of brainstorming: why integrating systems by means of exchanging loosely-structured files (as opposed to XML web services integration) is a bad idea?
TL Part
We're offering an online solution for enterprise customers (big ones) and in implementing this we often need to integrate with their internal systems (... |
I have a sequence diagram for the following operation. The Activity class uses method present in ActivityBL class. The method is:
GetActivities(ActivitySearch objt)
The result message is a collection of Activity objects. (Colletion in C#). How do we represent the return message in the sequence diagram? At present... |
I'm just wondering if we should assign story points to bug fixing tasks or not. JIRA, our issues-tracking software, does not have story point field for Bug type issues (it's only for Storys and Epics).
Should we add the Bug issue type to the applicable issue types of the Story Points field? What are the pros and cons... |
Last time I tried to use C++ several years ago I remember having to include different libraries between different IDEs even though I was using the same operating system, which left me somewhat confused about the C++ language.
Are there different standardizations of the C++ language? And if so, what branches of the lang... |
So in a GUI program I have multiple events that trigger a update of a workspace. This update call is costly so I would want it to not happen very often.
A user might pick something from a dropdown ( triggers a refresh ) and then put a check in a checkbox (also triggers a refresh ). If he does this in a short time inter... |
I was considering taking up the challenge of learning C++ for designing Metro apps and that's when I came across C++/CX.
Can Metro apps be coded in C++ 11? Do they require C++/CX to work? And what exactly is C++/CX? Is it possible to create a Metro app using only C++, or is C++/CX required? Also, how does C++/CLI tie i... |
Many years ago, I wrote a small Access 2003 database for a non-profit to track the donations they received. They recently wrote me asking for some new features (I was shocked it was still in use, honestly) and I'm wondering if I could rewrite the application with a newer technology/framework. Here are the machine specs... |
Some (at least Mono's and .NET's) garbage collectors have a short term memory area which they scan often, and a secondary memory area which they scan less often. Mono calls this a nursery.
To find out which objects can be disposed of, they scan all objects starting from roots, the stack and the registers and dispose al... |
I'd never heard of this before, so shame on me, but programs like UPX can compress my files by 80% which is totally sweet, but I have no idea what the the disadvantages are in doing this. Or even what the compressor does.
Website linked above doesn't say anything about dynamically linking DLLs but it mentions about... |
This is my first time choosing a hosting company. It is for a web site made in asp.net mvc3.
So I was thinking choosing a provider would be easy since I found this page
http://www.microsoft.com/web/Hosting/Home which contains hosting offers.
Now hours later, I am still searching.
The reason is that as soon as I start i... |
When we think about maintaining a software solution holistically, we have to think about things like non-code change control and configuration management, in addition to the actual source code. For example, for maintaining a large web application, tracing:
"Make the following (manual) configuration change to the farm,... |
I'm currently thinking about an interface to a class I'm writing. This class contains styles for a character, for example whether the character is bold, italic, underlined, etc. I've been debating with myself for two days whether I should use getters/setters or logical names for the methods which change the values to t... |
I have been working on an open source Museum Collections Management web application that is to be used to keep track of a museum's accessioned, donated, loaned or otherwise acquired artefacts.
This involved designing and creating a rather large database (in relation to my previous experiences), which stores all kinds ... |
I'm trying to come up with a personal workflow. I've put together a flowchart of the hypothetical lifespan of a release: one developer pushing to a public github repo + a friend helping with some feature and fixing a bug.
Is this a reasonable approach to version control?
The main idea is to keep the public repo tidy: ... |
In C and C++, it is very easy to write the following code with a serious error.
char responseChar = getchar();
int confirmExit = 'y' == tolower(responseChar);
if (confirmExit = 1)
{
exit(0);
}
The error is that the if statement should have been:
if (confirmExit == 1)
As coded, it will exit every time, because the... |
Linux OS developers : do they unit test their code ?
If yes :
since this OS is coded in C, how do they manage to write effectively unit tests in this language ?
what are the "zones" in OS where unit testing is easier to write ? where is it harder ? where is it valuable ?
|
While I'm a professional programmer, I've never been formally trained in software engineering. As I'm frequently visiting here and SO, I've noticed a trend for writing unit tests whenever possible and, as my software gets more complex and sophisticated, I see automated testing as a good idea in aiding debugging.
Howeve... |
In real world networking software following c/s model, there are always proxy server processes between clients and server processes dealing with business logic, why we need proxy to isolate the logic part and clients? What's the benifit of this architecture?
|
I had an idea for a website. After much coding and thinking out the idea, I've got it to a decent stage.
If I were someone else, potentially a more commercially-minded person, I might want to sell it, or slather it with ads. However, I've fallen somewhat in love with open-source, and I'd like to host the project on Git... |
With the some most common languages (Java, C#, Java, etc) it sometimes seems that you are working at odds with the language when you want to fully TDD your code.
For example, in Java and C# you will want to mock any dependencies of your classes and most mocking frameworks will recommend that you mock interfaces not cla... |
In our CI environment we build all the cs projects and then build the deployment projects. The deployment projects do an extra step of compiling the aspx & ascx files and often catch errors that would normally be caught at run time.
1) Is there a name for this step or process?
2) Can I get it in the regular project b... |
I've always liked physics, and I've always liked coding, so when I got the offer for a PhD position doing numerical physics (details are not relevant, it's mostly parallel programming for a cluster) at a university, it was a no-brainer for me.
However, as most physicists, I'm self taught. I don't have broad background ... |
Joel Spolsky characterized C++ as "enough rope to hang yourself". Actually, he was summarizing "Effective C++" by Scott Meyers:
It's a book that basically says, C++ is enough rope to hang yourself, and then a couple of extra miles of rope, and then a couple of suicide pills that are disguised as M&Ms...
I don't have... |
I have grown into using a principle for designing and consuming interfaces that says basically, "ask for only what you need."
For instance, if I have a bunch of types that can be deleted, I'll make a Deletable interface:
interface Deletable {
void delete();
}
Then I can write a generic class:
class Deleter<T exte... |
I work in c++ mostly as a hobby (I'm still in school and therefor don't have a real job). The IDEs generate the makefile for me and so I'm wondering if it's worth learning how to make them myself. By "worth learning" I mean, should I drop everything and learn how to write them before continuing to learn c++? Is learnin... |
What are the conventions for item batch identifiers in inventory management systems?
For example:
A retail supermarket can order 'Item X' from either 'Supplier A' or 'Supplier B'. When it completes an order for the item from either supplier, it needs to store the record of the receipt. Inventory quantity for the item i... |
I'm working with a local file which I always extract from a password protected archive (RAR), do some modifications/additions to it and overwrite the old file inside the archive with the new file (I don't overwrite the archive. I overwrite the file inside it). The RAR is password protected for certain confidentiality r... |
function select($select = '*')
{
if( is_string($select) ) {
$select = explode(',', $select) ;
}
foreach($select as $s) {
$s = trim($s) ;
if($s != '') {
$this->aSelect[] = $s ;
}
}
return $this ;
}
In PHP,... |
In a production web application, my fellow programmers used StringBuffer everywhere. Now I am taking care of application development and corrections. After reading StringBuilder and StringBuffer I have decided to replace all the StringBuffer code with StringBuilder because we don't need thread safety in our data beans.... |
I have a following method to find index of a book object which have a book name:
+(NSInteger)indexXXX:(NSString *)bookName XXX:(NSArray *)books
{
for (NSInteger i = 0; i < books.count; i++) {
NSDictionary *book = [books objectAtIndex:i];
if ([[book objectForKey:@"bookName"] isEqualToString:bookName]) {
... |
I'm working on a rails application, and I've been pulling functionality out of my rails code and into pure ruby classes in lib/. I've found myself often writing classes like this:
class MailchimpIntegration
def subscribe_email(email, fname, lname)
Gibbon.list_subscribe(:id => NEWSLETTER_LIST_ID, :email_addres... |
Assume you are presented with an embedded system application to program, in C, on a multi-core environment (think a Cavium or Tilera) and need to choose between two environments:
Code the application under Linux in SMP mode or code the application under a thin bare metal executive (something like a very minimal RTOS), ... |
I've been programming C++ for a year now. I've gone through the language features and I've written good programs with it, so I decided to move on to OpenGL. At first it seemed confusing. As I kept going through tutorials it appeared to be easier, but I can't remember the names of classes, methods, arguments, etc.
In fa... |
I've read several articles on SRP and cohesion, and they seem to contradict each other as far as low coupling is concerned.
Articles on cohesion argue that putting closely related responsibilities together in a class Highly_Cohesive_Class reduces coupling, while articles on SRP would argue that we'd reduce coupling by... |
I started building an app in 3 layers (DAL, BL, UI) [it mainly handles CRM, some sales reports and inventory].
A colleague told me that I must move to service layer pattern, that developers came to service pattern from their experience and it is the better approach to design most applications. He said it would be much ... |
I'm trying to learn implementing TDD with mocking/fake objects. One of the questions I have is how to initialize a dependency in an application which implements TDD? An example from this article
Beginning Mocking With Moq 3 shows:
public class OrderWriter
{
private readonly IFileWriter fileWriter;
public Orde... |
Currently I'm working as a freelancer, and for the first time a faced a client who wants the source code too.
This client owns a software development company, and wants to have rights over the source code, but that I keep my rights too. That means that they can use my code to make similar applications using my code for... |
Could older C++ compilers (e.g. VS2008 and gcc3.4) link with external libraries written in C++11?
My thought is that the C++11 .lib files are just byte code at this stage, and it shouldn't bother the older compilers how it was generated, as long as it is somehow resolvable and callable.
I'm developing a small library w... |
While writing a Perl statement like if ( $foo >= X && $foo <= Y ) yet again, I wondered why many programming languages do not support the more comfortable form if ( X <= $foo <= Y ) and what this is called. I came up with "3-legged comparison" but no results when searching for it. By the way there is also the "element... |
We have a C program which uses a .h header file to describe the custom-made data structure we use. The data structure must follow the design in the functional specification. There is some diagram to describe the member of the data structures and it would be described a ANS.1 abstract syntax, and then the asn file would... |
I am trying to assign scores to phone's specifications to calculate a final rating score for each phone.
However, when I was scoring based on megapixels, I found that one of the phones 'A' has a 41MP camera. But all other phones have 8MP or less, which is pretty good for a phone. Right now, when I grade relatively wrt... |
It seems to me it would be very useful to use Javascript for general server side scripting tasks as it has more or less the same features as Perl and Python. But AFAIK there are no generally available Javascript interpreters for the major machine architectures. I guess the other problem may be lack of libraries but sur... |
If I have a function in my code that goes like:
class Employee{
public string calculateTax(string name, int salary)
{
switch (name)
{
case "Chris":
doSomething($salary);
case "David":
doSomethingDifferent($salary);
case "Scott"... |
Using the Repository pattern, is it proper to return an IQueryable of a data set (table), for generic usage?
It is very handy in many cases, especially when using external libraries that leverage that interface, for example some plugins that sort/filter and bind to ui elements.
However, exposing an IQueryable sometimes... |
I currently have the following HTML code
<time datetime="2012-08-23">
23. August 2012
</time>
I have that because I felt the "23. August 2012" format was easier for website visitors to read than
<time>2012-08-23</time>
Both of those HTML5 examples validate at w3, but the first one is obviously redundant, and ... |
We already have a WCF API with basichttpbinding.
Some of the calls have complex objects in both the response and request.
We need to add RESTful abilities to the API.
at first I tried adding a webHttp endpoint, but I got
At most one body parameter can be serialized without wrapper elements
If I made it Wrapped it was... |
Is it Ok if Domain Object cross Service-Boundary?
Everyone recommend that only DTO should be returned by Services.
I am creating simple CRUD application.
Is it ok if my service methods return Domain object instead of flat DTO objects.
It will save me from lots of mapping related setup. Is there any alternative approa... |
I have been reading up on memento pattern from various sources of the internet. Differing information from different sources has left me in confusion regarding why this pattern is actually needed.
The dofactory implementation says that the primary intention of this pattern is to restore the state of the system.
Wiki s... |
I began work at a company 2 months ago as a PHP developer. I stepped in to somewhat of a kludge, but I've yet to find a company that isn't... The development stable is currently two developers (including myself) who will act as the interim CTO while the company seeks out a replacement CTO.
The company is a news site th... |
I'm doing a function point count for a large website. Does the main website menu count as an External Input?
I'm doing a function point count as described in this article.
If so, since you only click on one menu item at a time, I assume the number of DETs == 1?
|
I'm new to OpenGL and found that there are a lot of libraries to do that in C,
and I also found that glx is most friendly with Linux X Server, I just want to do basic stuff, and I cannot find any tutorials for GLX.
Is GLX a bad thing? I just want to do some small graphical things without installing many libraries and g... |
I'm the admin assistant of the CTO and our organization has recently experienced a lot of growth. Within six months, we have merged with another organization and our Dev team has grown from 8 to 16, with another 8 people in QA.
What we're dealing with now is a highly technical individual, with little patience, man... |
This is something I'm having a hard time getting my head around. I think I might be making it more complicated than it is.
What I'm trying to do is develop a method to store users in a database with varying levels of access, throughout different applications. I know this has been done before, but I don't know where to... |
Watching all those screencasts (and listening all those podcasts) with more-or-less famous hackers/programmers I hear that many of those use emacs/vi(m) for their daily work.
Now, I myself tried using both emacs and vim, and I honestly cannot understand why would anybody use these for any kind of serious development.
T... |
I have been having problems wrapping my brain around how to properly utilize the modular extension for Codeigniter. From what I understand, modules should be entirely independent of one another so I can work on one module and not have to worry about what module my teammate is working on. I am building a frontend and a ... |
I have these classes
class Match
{
int MatchID,
int Team1ID, //used to reference Team
int Team2ID,
... other fields
}
Note: Match actually have 2 teams which means 2 TeamID
class Team
{
int TeamID,
string TeamName
}
In my view I need to display List<Match> showing the TeamName. So I added another field
... |
I have an unpaid internship for a very new startup company with little tech experience that's trying to be a Groupon clone. They're currently using Wordpress and I've been trying to decide what web framework to push them towards, since I'll have to learn that language and implement it as well.
Is ASP.Net MVC a realisti... |
How many bytes an array occupies in Java? Assume It's a 64bit machine and also assume there are N elements in an array, so all these elements would take up 2*N, 4*N or 8*N bytes for different types of array.
And a lecture in Coursera says that it would occupy 2*N+24, 4*N+24 or 8*N+24 bytes for a N element array and the... |
I am using the combination of spring, spring-security, struts and iBatis in my application. Now I am looking to migrate the struts UI to GWT.
The new combination must be spring, spring-security, GWT and iBatis.
I applied a layered approach to develop my application. In Controller/UI layer i am using Struts. I want to r... |
I see lots of SOA books surrounding Java and have always had the subliminal notion that Java is the "right" language for robust/enterprisey SOA, even though I know what SOA involves and that it is perfectly possible using other languages & frameworks.
What exclusive traits Java has that other languages/platforms don't... |
Given that programmers are authors and write code to express abstract thoughts and concepts, and good code should be read by other programmers without difficulties and misunderstandings, should a programmer take writing lessons to write better code?
Abstracting concepts and real world problems/entities is an important ... |
So the project I've been working on is now going to be frozen indefinitely. It is possible that if and when the project unfreezes again, it won't be assigned to me or anybody from the current team. Actually, we inherited the project after it had been frozen before, but there was nothing left by the prior team to help u... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.