1
vote
0answers
11 views

Alternative locking strategies

I'm having a problem with the design of my application, that neither optimistic nor pessimistic locking tends to solve. Here is a simplified/altered version of the problem that describes the ...
-1
votes
0answers
19 views

Using Turbo C++ For OS Development

I am working with operating systems , i have gone through several books , even osdev website but it is written that GNU is the latest compiler and best option for developing operating system . Now the ...
-2
votes
0answers
18 views

Choice: Flash Builder or Visual Studio for a simple application designed for Windows and Mac? [on hold]

I need to make a desktop application, a sort of survey. Requirements: A list of questions, long questions (multiline list item), checkboxes, radiobuttons Own font (font contains special characters) ...
2
votes
2answers
45 views

Algorithm for finding automorphisms of a string in O(n) time

I recently stumbled upon this problem, which requires a solution in O(n) time, and I'm struggling to find a correct one. The obvious, naive solution runs in O(n²) time. Any ideas? A string S = ...
4
votes
2answers
250 views

Should I accept empty collections in my methods that iterate over them?

I have a method where all logic is performed inside a foreach loop that iterates over the method's parameter: public IEnumerable<TransformedNode> TransformNodes(IEnumerable<Node> nodes) { ...
2
votes
2answers
284 views

How do big companies maintain their products' source code without it falling into wrong hands?

I am developing a web application by using ASP.NET. I would like to hire some developers to speed up my process but I am afraid what If my members take my code and go away? I am just wondering how big ...
0
votes
1answer
39 views

Coupling in OOP Contracts: Many simple values of few complex objects as arguments?

When designing an OOP-based application, should one prefer to transfer information between objects through complex objects that do a lot of handling work, or should I retrieve the data from the ...
0
votes
1answer
59 views

Should simple tasks be divided into separate functions?

If I have to write a simple program (25-35 lines), should I divide it even further, in functions which have a few lines and get executed max. 2 times, or to put it all im one? e.g. if I need to add ...
-2
votes
1answer
12 views

Finding repeated text in a string

I have a database with a column that stores CMS content. This content is stored as HTML and was created by a pretty flakey data import process. Unfortunately, in some cases the text has been imported ...
0
votes
0answers
12 views

Design architecture and software for webapp integrating with few other endpoints (Email Server, Jira, CRM system)

In my upcoming project, I need to integrate a webapp with few other endpoints. Main duty of the webapp will be some kind of thin-client for inner JIRA system for company. Moreover, I'll need to ...
2
votes
5answers
63 views

How to communicate software design efficiently between developers?

Recently I've come to understand that a serious problem at my workplace is the lack of communication between developers. It's odd, because we're a totally open sort of organization. Everyone can go to ...
0
votes
1answer
71 views

How to deal with product owner who refuses to follow UI design rules

We develop Android application. We base on old version of similar application developed in our company. This old application was designed by some noobs which didn't follow UI Android design rules. ...
2
votes
0answers
25 views

Database Design: Mutability vs Historical Data

Imagine a software for theater owners. You can accept reservations for the different cinema halls. Each hall has a different number of seats. Say the owner wants to know how many people visited the ...
-6
votes
0answers
29 views

Need help on a daily basis [on hold]

The Valutazione(){} function doesn't work, could you help me please? <html> <head> <title>Questionario</title> <link rel="shortcut icon" ...
2
votes
1answer
28 views

Proper MVC design and helper classes

I've been reading into Model-View-Controller and was wondering where something like a XyzClient class would fit into this design. Splitting up MVC is easy when all you have are some views to display, ...
0
votes
1answer
54 views

Does a create() method exist as part of a pattern?

Is there something special(i.e. a design pattern being related) to a method named create()? Background The case is, I often make some instances of objects (of the same class/prototype). These ...
-1
votes
0answers
15 views

Using Reflection to load dependent dll in Assembly

I am using reflection to load dll "A" and display collection of values using c# project. Assembly appAssembly = null; appAssembly = Assembly.LoadFrom("c:\App\A.dll"); But there are empty values ...
-4
votes
0answers
43 views

Lazy programmer to good programmer [on hold]

I'm a WPF/.net developer with 3+ years experience, I have hardly learnt the language (C#) and I'm not so good with SQL. I don’t feel motivated to learn the language, however now I want to learn the ...
-1
votes
0answers
7 views

Is there a issue in having a function with no arguments () within a grails controller?

I am facing a weird issue with an grails (1.3.7) application hosted in tomcat. While the application is in use continuously the application freezes at some point in time (hang state). While tracing ...
-3
votes
0answers
12 views

can I make the responsive menu bar without using ul and li tag in Html/Css [on hold]

Can I make the responsive menu bar without using <ul> and <li> tag in Html/Css? I have searched many time but not get any answer.
-1
votes
0answers
12 views

Style for multiline concatenation in PHP

Which style do you think is best (and why)? The single line: // single line $lok = sprintln("Everything changed when the fire nation attacked") . $cactusJuice . $numElements . $sharpnessLevel; ...
0
votes
0answers
14 views

Android Development: Styling the application

How do you approach theme and styling of an Android application? I have all the functionality and I'm now styling and dealing with colors, etc. This is my first big time Android app, and it seems like ...
-1
votes
0answers
17 views

How to use Extjs with Spring

I'm so sorry if my question seems to be so simple, but i'm stuck i'm starting to work in a project involving Spring MVC, Extjs 5 and ExtDirect for binding, the guides of extjs recommends using Sencha ...
-2
votes
1answer
69 views

Swift and PDF do they mix?

Couple of quick questions. First I have zero programming experience but somehow I have an app about 2/3 of the way done. The bulk of my app will be essentially a book to which I am adding one or two ...
-2
votes
1answer
51 views

How to make a mobile application that interacts with a website

I am looking to make a mobile application (iOS and Android app) that will interact with a website. The app will need to log in with a provided username and password and also get some information from ...
0
votes
2answers
56 views

Java Web Application in Cluster with Shared Database. How to Negotiate an Instance to do Updates? How to Notify Instances of Updates?

I have a Java web application, running in a cluster of Tomcat application servers and a shared SQL/JDBC database. Data from the database is cached in memory in each instance of the web app. My web ...
7
votes
5answers
946 views

Sharing development test cases (unit and development integration) with the QA (test) team?

The testing team (the so-called QA team in some organizations) insists that the development team should share their (the development team's) test cases with them. Their arguments are that the ...
0
votes
3answers
126 views

URLs in javascript in the browser

We are trying to continually improve our source code base and a question came up recently which throws open a new area to improvement. Where best to put URLs that are needed in JavaScript? Do we put ...
0
votes
4answers
197 views

How to ensure objects unique by equality?

I frequently have this problem but didn't find it as an established programming pattern. I have some Class C whose equality is determined by some key k and I want to prevent time-consuming ...
12
votes
3answers
2k views

Why is it so bad to read data from a database “owned” by a different microservice

I have recently read this excellent article on the microservice architecture: http://www.infoq.com/articles/microservices-intro It states that when you load a web page on Amazon, then 100+ ...
1
vote
1answer
36 views

Domain models with properties not always set

I don't know if to have domain models with properties that not always are set, it's a some kind of code smell or design error. I put an example: I have an app that lets read internet magazines using ...
4
votes
3answers
143 views

How to prevent race conditions in a web application?

Consider an e-commerce site, where Alice and Bob are both editing the product listings. Alice is improving descriptions, while Bob is updating prices. They start editing the Acme Wonder Widget at the ...
-1
votes
0answers
11 views

Is there any limit for customer groups in magento enterprise or community version? [on hold]

Has any one tried going for say 500 price variations for a given product in magento enterprise edition? or for that matter even in community version? One of my client have about 400 to 500 price ...
2
votes
2answers
103 views

Should I use relational or noSQL databases for this problem

I'm working on a project where one part is to save data of different people. A typical person might have the following structure: Email: Multiple values possible City: Multiple values possible ...
3
votes
2answers
190 views

Why Do B+ Trees Have a Minimum Occupancy of 50%?

As far as I can tell, the basic operations (add, delete, search) on a B+ Tree would function the same if minimum occupancy was 1, or 1/3, or any other function on node size. All the sources available ...
-1
votes
0answers
3 views

convert string to integer does not work for nagative case C programming [migrated]

I have some homework in which the first step is converting the input string into an integer. Example when I input "1 2 3 4" then its output is : 1 2 3 4, or input is: a1b3c 4 then output is 1 3 4. ...
-3
votes
1answer
77 views

What license is this source code published under?

Could someone help me determine the license under this source code is published? And what obligations I have if I want to use the code. ...
-2
votes
0answers
62 views

I'm a vietnamese teen, how do I find friends who are programmers or gamedevs? [on hold]

I'm near 14 years old now. I learned HTML/js when I was 9. Now i know some programming language: Python, Ruby, Perl, C++, C#, Java ME, Android, Php, HTML5,... I can make RTS game by myself. But i ...
0
votes
0answers
7 views

Strange Behavior - Intellisense Stops Working, Keyboard Input Not Accepted [on hold]

I'm having some very strange issues lately with Visual Studio 2012. The Intellisense has been very finicky - sometimes it stops working altogether and I have to restart the program. Other times, my ...
0
votes
0answers
5 views

Complex Data Type in C Producing Trouble in Algorithm [migrated]

I'm trying to perform a calculation which involves the following C-function: long double complex* tridiag_thomas(long double complex *a, long double complex *b, long double complex *c, long double ...
-2
votes
0answers
63 views

How does artificial intelligence work? [on hold]

I am a first year IT student. I am very curious about artificial intelligence and how it works? Can someone tell me what the basics are for artificial intelligence that can learn itself to do ...
-5
votes
0answers
70 views

Is it worth investing time will it be easy to get a job [on hold]

so basicly im intrested in coding im only 16 at the moment and im really intrested in doing those things ,first of i think i will start with python and actually make a project that i wanted for a long ...
0
votes
1answer
58 views

What programmable system can provide persistent scheduling? [on hold]

I want to write an application that creates scheduled events at specific times. When the delay elapses the event notifies the application. The scheduled events must not be stored in the application's ...
-3
votes
0answers
50 views

Problems in a distributed C++ team [on hold]

While I've successfully cooperated with distributed web development teams, I'm having a hard time finding a remote job as a C++ software developer. What are the disadvantages of a distributed team ...
1
vote
2answers
95 views

Can I use US-ASCII and UTF-8 encoding interchangeably for an XML file without a XML root declaration?

My source XML does NOT contain the root declaration i.e. <?xml version="1.0" encoding="utf-8" ?> And when I run the file command on it, I get: ASCII text, with very long lines, with CRLF ...
-3
votes
0answers
53 views

Trusting Trust - down to the hardware [on hold]

Even beyond the source/binaries - couldn't this hack go further than the code down to the actual hardware. Perhaps not a full-on hardware hack, but hardware designed/incorporated into the system to ...
-1
votes
0answers
20 views

Information extraction script [on hold]

Can one write a computer script that will search in a place like Tripadvisor, Yelp, Facebook or Youtube for certain phrase-related entries, and extract this information? I know only Basic and html, to ...
-2
votes
0answers
15 views

encryption and decryption with python [migrated]

This is my code for encryption and decryption when the key = 'a'. I'm just a little confused on how to make it work when the key contains multiple characters, key = 'abc' for example. If anyone could ...
4
votes
1answer
132 views

Why is the use of JavaScript in HREF attributes discouraged?

Disclaimer: I came to Programmers.SE to ask this question because I understand this is the place to ask this type of question, and not necessarily stackoverflow. If I am wrong, please close the ...
-1
votes
0answers
77 views

Why are there few C++ remote works? [on hold]

I'm a C++ software engineer who, for personal reasons, would prefer to work remotely (telecommute). I can find a huge variety of telecommute and remote works for javascript, html, php, C#, java and ...

15 30 50 per page