0
votes
1answer
22 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
8 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
26 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 ...
-2
votes
0answers
7 views

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

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
9 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
11 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
15 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
61 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
45 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
0answers
33 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 ...
5
votes
5answers
727 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
117 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
162 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 ...
7
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
31 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
127 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
95 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
179 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
75 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
61 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
5 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
57 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
69 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
57 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
49 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
90 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
52 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
19 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
127 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
74 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 ...
2
votes
0answers
37 views

String comparison equivalence between mysql database and php code

I wonder if it is possible to compare two strings using mysql and php and obtain the same results. In mysql I have a = b collate utf8_general_ci For PHP I found a promising way to do it with the ...
3
votes
1answer
45 views

Conveniently sorting and (binary?) searching an array of pairs of numbers?

So I have an array of distinct pairs of positive integers. That is, my array looks something like this (for instance): { (1,5) , (6,4), (5,3), (2,3), (2,4) } And my task is, for a given pair (a,b) ...
-2
votes
0answers
27 views

How do you write to a second console? (C++) [migrated]

I had the idea of using a second console in my programs for the purpose of logging programming activity. I looked around on msdn for related functions/examples and tried to put together a simple ...
2
votes
1answer
196 views

What is this pattern called? Run finally?

Is there a name for this pattern? I've written this kind of thing a few times in JavaScript and recently found myself writing it in C#. Thing is, I expect this has already been implemented in a ...
2
votes
2answers
107 views

Finding shortest path between nodes with a twist

Note: if you feel that I should include code, please tell me. I am solving a problem of finding shortest path between nodes. I am given the vertices between nodes, however they are one sided (ie you ...
5
votes
6answers
289 views

I'm confused about which is the correct way to work with TDD

I'm trying to grasp what's the idea behind TDD and how a team is supposed to work with it. I have the following test case with NUnit + Moq (just writing by memory, it is not assured the example ...
0
votes
2answers
136 views

Bad Practice using Auto Generated Classes for Data Access

I've seen this before but haven't found concrete reasons. When you add Entities to your EF model, EF auto generates classes for these entities. In terms of DataAccess, why is it preferred to not ...
3
votes
2answers
240 views

Should an object load itself?

although I'm programming in C++ for some time now, I'm always faced with design decisions (probably due to the language's flexibility). One such problem is deciding if a method should be part of the ...
-4
votes
1answer
73 views

how much does bs in computer science differ from ms in computer science? [on hold]

I'm currently a senior with a bs in cs, and contemplating on whether attaining a ms in computer science is worth it. Currently, I feel as though I only touched a surface of computer science, and ...
-1
votes
0answers
95 views

How to leave my first job? [on hold]

So I've decided to leave my job. There's a number of reasons, but I suppose the final straw was when I came back to my desk to overhear my manager trash talking about me to a co-worker. She was ...
-1
votes
0answers
36 views

What is the best project Architecture to a social network - ASP.NET MVC [on hold]

I'm very interested to know what is the best path to take when we started the structure of a social network design within an ASP.NET MVC application. We use a DAL layer (Data Access Layer)? We must ...
2
votes
7answers
454 views

Why are self-hosting compilers considered a rite of passage for new languages?

I've heard in a number of places now that people expect languages to use, or at least have, a self-hosting compiler in order to deserve respect. I'm curious as to why this is. A compiler seems like a ...
-1
votes
3answers
98 views

Objects in smalltalk and c++

I have a question based on SmallTalk and C++. In one of the programming languages books, there is a question like: "Does an object in Smalltalk require its own private stack? What about in C++?" ...
2
votes
2answers
53 views

Method for all objects for checking conditions which also includes method chaining and avoiding variables

(I am currently using groovy but it should apply to most OO languages so I also put the langauge-agnostic tag) I try to program in a function style which also includes method chaining and avoiding ...
0
votes
0answers
43 views

Find 'Connected Components' in undirected, unweighted graph coded as a 2d array

Given an undirected, unweighted graph coded as a 2d array, how can I find the number of different connected components? Example There is the following 2d array (I'm not putting any brackets to ...

15 30 50 per page