5
votes
2answers
2k views

Objective-C class cluster pattern

I have many sublcasses of one class. I choose concrete class based on type (simple enum). I like idea of class cluster. Should i use it or just create factory class (but each class in objective-c is ...
7
votes
5answers
536 views

How to deal with warnings in a legacy project

I work on a C++ project that generates bajillions of warnings. Most of the warnings appeared after the code was written: Initially the project used Visual C++ 8, soon switching to 9, but there is ...
1
vote
1answer
1k views

How to write unit tests without mocking data

My design doesn't allow me to mock the data so I am using sqlite as test database that has minimum data to run the unit tests. Below is the pseudo code //Method to be tested public IList<Funds> ...
3
votes
3answers
3k views

Reuse MVC4 codebase / deploy MVC4 as standalone desktop application?

We have an MVC4 application that we would also need to distribute as a standalone (no network connectivity) desktop application. Rather than rebuild the HTML/JS front-end we would like to reuse that ...
2
votes
1answer
228 views

Using a development language (Python) before putting it into C++ [duplicate]

I'm kinda having a debate here with my friend, whether it's OK to have a development language before putting the idea into C++. When I say development language I mean a language to try ideas out ...
1
vote
1answer
887 views

VB.NET: Two tiers for three layers or three tiers for three layers

I asked a question on StackOverflow in November about separating a very large application into layers and tiers: http://stackoverflow.com/questions/13342626/net-divorcing-layers. The previous ...
2
votes
1answer
1k views

Possible to Comment on a storyboard?

I recently started working for a company that has me making mockups for an app they'd like to see converted to an iPhone app. I have not been informed as to how all the boards fit together, but I do ...
2
votes
1answer
359 views

Criteria for selecting MigLayout for GUI code?

It seems to be easier to use and more feature rich than standard swing layouts. It looks like a do it all replacement for all standard layouts. If you are making simple code to just show the time in a ...
1
vote
1answer
2k views

Performance overhead of standard containers and boost [closed]

Adap.TV has chosen C++ to develop their software. However, they've decided not to use the standard containers1 and boost for performance reasons, as they've blogged about it in the following article: ...
0
votes
1answer
524 views

Is it possible to integrate MS Project Server with SVN

We have been using Hosted SVN + Fogbugz for our source control and task/issue tracking. Our developers are very comfortable with SVN and we are hesitant to switch source control (e.g. TFS) providers ...
2
votes
2answers
226 views

What should be in my model and what should be in my controler?

We are writing a system with a sort of quasi-MVC structure (it was never stated as that, but that's what it is). I'm building up a full knowledge of the system and the controller will have to make ...
3
votes
1answer
811 views

Changing the license in a fork from GPL to GPL compatible? [duplicate]

I have forked a project that was released under the GPL and made substantial modifications, however there are still some parts and general ideas that are the same as upstream. Due to user interest I ...
26
votes
8answers
14k views

How safe & trustworthy are hosting sites such as sourceforge, github or bitbucket for closed-source projects? [closed]

I am considering using sourceforge, bitbucket or github for managing source control for my business. I have open projects and I participate in open projects such as gcc. But I also have a business ...
12
votes
5answers
971 views

Time required to start coding at a new company [closed]

I am a software engineer for 4 years, and I just changed my company for the first time. Company works with pair programming, and it's been 3 days, I couldn't even write a single line of code. It's so ...
2
votes
2answers
144 views

Architecting related products for different markets: MEF?

Hopefully, this question is not too open-ended... I have been tasked with taking a 3 year old application (.NET 4.0, WPF, WCF, EF 4, SQL 2008) that was designed for a very specific market X and ...
0
votes
3answers
971 views

Models structure in PHP/MVC

I have some classes that are composed with ORM generated Models. example1: For example the Report.php (Model) is using a Document.php Model generated with ORM. Based on the document object a report ...
0
votes
2answers
1k views

Ext JS licensing issue

First of all I'm not asking for legal advice but just checking if anyone agrees with my suspicions. That might help in convincing Sencha to change their license. Their commercial license says: ...
7
votes
2answers
6k views

Is it a bad habit to (over)use reflection?

Is it a good practice to use reflection if greatly reduces the quantity of boilerplate code? Basically there is a trade-off between performance and maybe readability on one side and ...
5
votes
3answers
751 views

How to make support for bindings for a scripting language

Main I'm making a scripting language using C++. I plan to use it with a simple test game editor. But I have to make a support for bindings to call game engine's nodes' methods to update positions, ...
0
votes
1answer
164 views

Functional document from code

I am a Sr java Developer and have recently joined a new team. Here I have been asked to create a functional document looking at the code of a legacy application. This application was written about ...
3
votes
3answers
287 views

Bothering to cater to non-JavaScript clients? [duplicate]

Considering that it's April, 2013; do I still need to worry about non-JavaScript capable/enabled clients? Note: This question excludes having helper text with: JavaScript is required to view this ...
4
votes
7answers
887 views

Is (1/(1/x)) always a perfect round trip?

Is the following guaranteed to return true for all numerical and non-zero values of x? bool IsRoundTrip(double x) { double y = 1 / (1 / x); return x == y; } What conditions would cause a ...
2
votes
3answers
351 views

Design patterns: Extract instance types into different buckets

I have the following type hierarchy: interface I: ----+class B implements I ----+class C implements I ----+class D implements I I have another class Consumer1 that supports types C and ...
4
votes
2answers
1k views

What is the netiquette for forking other people's open source projects? [duplicate]

I started to get more and more engaged in open source development and I was wondering if there are any guidelines on how to properly document and maintain a fork? For example, let's say you fork a ...
3
votes
3answers
5k views

Is the following diagrams correct for RAD and Agile methodologies?

I do not know if this would be the right stack exchange site to ask this question but I have been researching on RAD (Rapid Application Development) and Agile methodologies and was trying to find ...
2
votes
1answer
281 views

Application Architecture

first of all I am new here and I hope that this is the right place for my question. I have a question about the recommended architecture of a project. IDEA: Automate some calculations concerning to ...
0
votes
2answers
606 views

Communication between View and Model

I have a basic issue with the MVC architecture. I am aware that the View usually listens to the Model. But how are user requests propagated to the Model? Currently I do it like this, when the user ...
0
votes
3answers
643 views

What tools can I use for professional document-creation and -printing in PHP? [closed]

I'm in the process of building a new pledge management system for one of my clients, a charity foundation. I have already built one for them (it was done using Delphi), but its feature-set is a little ...
3
votes
3answers
724 views

What is a Service Locator?

I've heard the term pop all around. I've read various articles regarding the subject and heard two main definitions to the term "Service Location": A glorified Registry - Bad practice, global ...
1
vote
2answers
647 views

JavaScript codes complexity and maintainability [closed]

I am trying to make my way back to JavaScript (been there last time some 7 years ago) with the help of lovely "Eloquent JavaScript" book. While I admire author's capabilities and approach, I have ...
3
votes
1answer
245 views

Ambiguous use of “Controller” in MVC

I have heard two separate uses for the term controller when speaking of the Model View Controller methodology. An intermediary section of code that communicates between the Model and View, tying ...
3
votes
2answers
268 views

How can you provide a public writeable API and not get spammed?

So say you had a site like StackExchange. Now imagine you created a machine-writeable API capable of posting questions and comments and doing everything your browser can do. Of course, about 5 ...
1
vote
1answer
162 views

Format text in a generic and reusable way

I would like to write some long text in some structure to allow a set of operations on that text. The question is which structure or format should I use, which suits best the use that I plan to do of ...
0
votes
1answer
142 views

I'm not sure what this license allows me to do

I'm using the BigRational class from bcl.codeplex.com. It will be opensourced when it's finished, and it's modified. However, I don't get legal jargon, so even though it's quite short, could someone ...
11
votes
3answers
809 views

Byte code weaving vs Lisp macros

I have been reading about the libraries people have written for languages like Java and C# that make use of byte code weaving to do things like intercept function calls, insert logging code, etc. I ...
8
votes
1answer
1k views

Are “normal order” and “call-by-name” the same thing?

I was studying the book Structure and Interpretation of Computer Programs and in section 1.1.5 The Substitution Model for Procedure Application the author explains the concepts of normal order and ...
4
votes
2answers
490 views

Efficient way to create a code estimation/technical specification in a fast-moving environment

To better understand my question, let me elaborate the background of the subject matter. I work in a financial institution where the business module (credit finance) is constantly changing. In the IT ...
1
vote
1answer
522 views

Implement a file system for ios devices

I've read that ios apps can communicate via unique urls. An online tutorial on tutsplus says Communication between apps provides your application with an opportunity to take advantage of other ...
8
votes
1answer
1k views

Best practice for handling asynchronous inter communication?

Recently completed a project for handling credit card processing. One of the difficulties I faced was handling the delay / possible failure of notification messages. The most complex example was: an ...
1
vote
3answers
2k views

The best way to store dictionary from file

I'm working on a translator in C++. Basically I want to parse the file with translations and store it in my program, so I can perform search through the words and simply access the corresponding word. ...
0
votes
1answer
615 views

What stage of development do activity network diagrams belong to?

Activity network diagrams are used to determine the forward and backward paths for a project, and consequently to determine the critical path or maximum time to development. I'm already familiar ...
1
vote
3answers
3k views

Is path in Set-Cookie URL encoded?

I'm writing some code that sets cookies and I'm wondering about the exact semantics of the Set-Cookie header. Imagine the following HTTP header line: Set-Cookie: name=value; Path=/%20 For with path ...
13
votes
1answer
2k views

Best practise is not to poll…but isn't polling happening internally anyway when a thread calls wait()?

Say we have some thread that wants to check when another thread is finished its task. I have read that we should call a wait() type function that will make this thread wait until it receives a ...
89
votes
12answers
8k views

Best practices for sharing tiny snippets of code across projects

I always try to follow the DRY principle strictly at work; every time I've repeated code out of laziness it bites back later when I need to maintain that code in two places. But often I write small ...
5
votes
1answer
3k views

The Service class in MVC

From time to time I find there is a need to build a service class. Something I can't really attach inside a model in order to respected GRASP and SOLID. So I created a class called ...
3
votes
2answers
327 views

Bayes filtering and data storage with expansive data sets

I am looking to write a Bayes filter that will act as an indicator of topic for a number of topics with a variable number of sources. Given a really big number of RSS feeds and here really big might ...
1
vote
4answers
533 views

Randomness in Acceptance-Tests

I've got a simple authentication solution, where a user can log in with either email or username. Since I want to show the little feature in the acceptance tests but don't want to pollute them, I ...
0
votes
1answer
87 views

How does the ETVDX model fit in with project management?

In a lecture, the lecturer described the following model : E - entry (the preconditions to a task). T - task - doing the task V - verifying the tasks quality D - Delivering the tasks X - Exit. ...
1
vote
2answers
10k views

How are effort estimations and duration estimations distinct?

How are effort estimations and duration estimations distinct? At present my understanding is that effort is related to the amount of work required for one person to complete a task, and duration is ...
5
votes
2answers
4k views

How do the Application and Database Interface Layers interact at their boundary?

I was watching one of Uncle Bob's videos and he brought up the Database Interface Layer. He had this diagram showing it: These arrows show that the DB Interface Layer is aware of and calls the ...

15 30 50 per page