-3
votes
0answers
14 views

Which is better? C++ Primer or Programming principles and practices? [on hold]

I am a third semester computer science student. I have learned C++ but I often can't form a solution to a programming problem. I think the reason for that is my lack of practice and learning c++ from ...
0
votes
0answers
5 views

Arrays in MASM Assembly (very confused beginner) [migrated]

I have a pretty basic question: How do you populate arrays in assembly? In high level programming languages you can use a for-loop to set a value to each index, but I'm not sure of how to accomplish ...
1
vote
0answers
19 views

Sending home JavaScript errors for later analysis

I had the idea of sending home the details of a JS error in case they should occur. For this I thought subscribing to window.onerror event would be a good place to start. Add some simple code to ...
-2
votes
0answers
16 views

how to link boost thread with Xcode [on hold]

I have built Boost from the website using ./bootstrap.sh ./b2 install I think all are installed properly. I am trying to use Xcode to include the library of boost:thread.My code links to the ...
0
votes
0answers
9 views

Should I have a queue with SMS requests to picked up by a separate process or connect directly to the API?

I created an email queue where I put the requests for emails to be sent. If the SMTP server is unavailable, the requests are not lost. When the SMTP server gets back online, the background service ...
-5
votes
0answers
25 views

App Development minimal knowledge [on hold]

I want to create some mobile and web applications quickly. I am aware of the 'full stack' but I do not know any of its associated technologies. If I were to use 'back-end as a service' what is left ...
0
votes
1answer
25 views

How to minimize networking cost of distributed game database?

We've been working on a networked online game project which will run in near future and looking for a satisfying solution for our distributed game database. We didn't take networking costs into ...
-4
votes
0answers
22 views

keyboard layer for easier cursor movement? [on hold]

I am happy with my QWERTZ keyboard layout for typing characters: I touch type, keeping the pointing fingers on "F" and "J" and the eyes on the screen. But I am not happy with Pos1 End Return ...
1
vote
2answers
2 views

Databases: Where should the application logic run?

http://highscalability.com/blog/2010/11/9/facebook-uses-non-stored-procedures-to-update-social-graphs.html talks about how Facebook moved logic out of the database into the application in order to ...
0
votes
2answers
54 views

Unit test private method in c++ using a friend class

I know that this is a debated practice, but let's suppose that this is the best option for me. I am wondering about what is the actual technique to do this. The approach that I see is this: 1) Make a ...
-2
votes
0answers
82 views

got a promotion but I am not happy! [on hold]

I am a java web developer with 2 years experience in the web development. I got promoted last month to associate engineer but not really happy. currently I'm working on a new and important project ...
-2
votes
2answers
50 views

Comparing doubles

I need to compare to double variables like this if (distance <= radius) both distance and radius are doubles and I remember in class how to use epsilon comparisons for checking equality but how ...
0
votes
2answers
86 views

Is there a programming pattern, design pattern, or naming convention for moving data between related schemas?

I'm working on a web application that is publicly accessible. (Really) Long story short, we have two sets of tables in the database with relatively the same names and relatively the same data. The ...
-1
votes
1answer
39 views

Custom Sync process and how to prevent Man in the middle attacks and sql injection

I have a custom sync process where I need to ensure that there's no possibility of SQL injection. For background, the device stores records in a Sqlite database, whereas our central server is Sql ...
0
votes
0answers
18 views

Naming schema for config files that generated and not for human editing?

Some configuration files have warning: automatically generated, don't edit! I have one that hold build number and VCS tag (Java .properties file). What name pick for such file? Currently I stuck to ...
2
votes
1answer
50 views

Third Party web controls and tight coupling

Disclaimer: I am not against third-party controls because I believe it's for productivity I have used Telerik asp.net controls, especially the RadGrid because it makes it easier to do CRUD. They ...
-2
votes
3answers
52 views

Best Class Design Practise, should foreign key “roomID” of a Table “Event” become an embedded Class “Room” in class Event?

Ok, in Db i have a Table Event & a table Room. Each room can has many Event. Room table roomID-roomName 1 - cafe102 ... Event table eventID- Time -type -roomID 1 - 11:20 - 1 - 1 ... ...
2
votes
0answers
174 views

Accuracy of “calculator algorithms”

I am building a library class that provides functionality for mathematical operations on BigDecimals (and a few on BigIntegers). Now, BigIntegers are quite easy to master and pleasant to use. ...
-2
votes
0answers
32 views

Code beautifier converting const int -> int const and training return type [on hold]

Is there any beautifier that can do more than just indent and add braces? I would like to convert C++ code to use the Type const style rather than const Type use C++11 trailing return types ...
-1
votes
0answers
25 views

Optimize Array interleaving in PCM memory

Problem: PCM memory is phase change memory which read opertions are a little bit more costly than DRAM but writes are comparatively costlier than writes in DRAM. I need some possible directions to ...
2
votes
2answers
384 views

Is there a name to this coding practice shown in the example? [on hold]

Take a timer in your hands, then have a look to the following code. What is it doing? foreach (var summaryOdd in odds) { var category = new PlacedCategory(); var eventId = ...
0
votes
3answers
184 views

C++ Chess board design and smart pointers

I wrote a Chess engine in Java and I am porting it over to C++. I am new to C++. The idea: I have a Board object which holds a 2-dimensionnal array of Piece objects. Queen, Rook, Bishop, etc are ...
-3
votes
1answer
44 views

Distributivity and Associativity for 32/64bit signed integers [on hold]

I'm looking into 32/64bit signed integers and their algebraic properties. I am quite sure that the the three operators +, - and * fulfill the distributive and associative property (integer division ...
0
votes
0answers
34 views

Functional dependencies diagram

I'm searching for the correct type of diagram in which I can see all dependencies between the functions, classes and files of my Python program (multiple files). It's for cleaning purposes. So my ...
2
votes
1answer
24 views

Patterns for creating adaptive web crawler throttling

Im running a service that crawls many websites daily. The crawlers are run as jobs processed by a bunch of independent background worker processes, that picks up the jobs as they get enqueued. Now ...
5
votes
1answer
80 views

Is there something like Creative Commons licenses for privacy policies?

I've recently read Reading the Privacy Policies You Encounter in a Year Would Take 76 Work Days and was pretty shocked that it was that bad. So I thought how this could be improved. Creative Commons ...
0
votes
0answers
18 views

How should I design an application using Ember.js to suit a given scenario?

I am going to develop an application in ember.js which is kind of a small CRM through which customer representatives can answer to queries of customers. The layout is pretty simple, I have a 3 column ...
-4
votes
0answers
21 views

How to design a self-host VS Extension system, like MS Test Framework/NUnit? [on hold]

I want to write a VS Extension acting just like the built-in unit test platform, but very simple one. So that you have a custom window in which you choose an item (like a method) to run and debug. I'm ...
2
votes
9answers
626 views

Is it better to have separate functions or add more arguments to a function? [on hold]

Which is the better style to follow for say, changing the voltage on a 4 channel PSU: setChannelOneVoltage(voltage) setChannelTwoVoltage(voltage) setChannelThreeVoltage(voltage) ...
0
votes
0answers
16 views

Populate faked context for unit testing WPF ViewModels using entity framework

We're developing an entity framework based application which has about 20 different entities, with quite a lot of connections of various types (one-many, many-many etc) between them. Each entity also ...
0
votes
0answers
49 views

Why should i use a framwork to make a website if i can make it using a CMS? [duplicate]

Codeigniter it self is way lightweight compared to the wordpress. But with wordpress we are getting so much by default. We are having option to change theme, simple drag and drop from the admin panel ...
-4
votes
4answers
148 views

Why are for loops needed? [duplicate]

It seems to me that a while loop with the appropriate break statements can replace them entirely. I understand that a break statement may not feel as "smooth" as a for loop that does something a ...
-3
votes
0answers
26 views

c++ Need help with arithmetic operations [migrated]

I need to make a program that basically reads the 2 numbers that the user inputs and then displays each number by adding, diving, subtracting, and multiplying it all at the same time. This is what i ...
1
vote
1answer
50 views

Is JBPM the right tool for this? [on hold]

We have a utility for monitoring directories and taking actions when files appear in those directories. It's in java and takes the form of a standalone jar which launches several threads when started: ...
2
votes
1answer
54 views

Derive subset with sum between two values

I have a set S of size n whose members each have associated with them a number in the range 0.00 to 1.00 inclusive. I want to select a subset T of size m with this property: the average of the ...
1
vote
1answer
36 views

How to effectively split jobs into groups for multiprocessing when the job sizes are unknown

With K processor cores, how to optimally split N jobs into groups, with each group to be processed sequentially by one processor core, when the time to process each job is unknown ahead of time and ...
-3
votes
0answers
51 views

Opinions on careers in mainframe systems? [on hold]

I'm still in school but I've had a chance to work with mainframes full time in a professional environment working with COBOL, JCL, Assembler (at school), mainframe extensions, all in all, I've been ...
3
votes
2answers
61 views

Do I have to include the license text when I GPL a web page?

I want to GPL some standalone web pages containing my Javascript/D3.js source code. How to use GNU licenses for your own software says that to distribute source code under the GPL, I should "include ...
0
votes
1answer
40 views

SaaS model, 1DB per client

The context we're building a web-based system and one of the design decisions (database related) was whether to have 1 main DB manage all client data VS having 1 DB per client. After reading a lot ...
1
vote
1answer
88 views

Progress in PHP web application design [on hold]

I have created an easy database-driven web application (with PHP+MySQL). It's written procedurally with a few controllers (index.php) in a few directories and a few template files and one stylesheet. ...
-4
votes
0answers
38 views

Development and workings of DLL Injection [on hold]

I was planning on doing a thesis on DLL Injection and the social, and ethical impacts along with the technological side of it (how it works, example of it working) and I have created multiple ...
2
votes
3answers
76 views

recalculation model for GUIs

I often come across this problem. Say to have a form with some controls: A B C = A + B D E = C * 2 ONLY IF D==TRUE F G = A - F The user fills A, then B. The system calculates C. The user fills D ...
-2
votes
0answers
41 views

should i use a framework(codeigniter) or a CMS(wordpress) in these situations? [on hold]

It is better to not build websites from scratch using native php. We should use something which is already there , used , tested by many people. For me i have only two options, for framework(MVC/HMVC) ...
0
votes
1answer
22 views

How do rails project know about rake tasks from other repositories

We have a rake task called db:sanity_check which exists in a 'core' repo. Other repositories that we have also show this rake task. But they do not define the rake task. It 'comes' from core' How ...
-2
votes
1answer
70 views

Base Class, with method that returns Derived Class. design flaw?

I'm writing a Math equation solver in python (for fun). The first design that came to my mind: Expression: base class for every item in an equation (maybe bad name). BinaryExpression extends ...
0
votes
3answers
143 views

Java Serialization for long-ish-term storage

I have an application that uses a database of about 15,000 Java objects, which I have to read every time the application starts. Originally I've been using JSON to store the data, but that has a few ...
-4
votes
0answers
41 views

How to make software gifts [on hold]

We will be at a very important international art & culture congress. The guys there are very high grade and very NON-geek. We want to give them as a gift our application (Windows, Android and, ...
0
votes
2answers
63 views

What is the normative (best) use of Javascript arguments object [on hold]

JS offers the 'arguments' object inside of functions to represent all passed arguments. Is there any broadly accepted concept for when/where this should be used? I've seen items like this in the ...
6
votes
4answers
483 views

Does internal state “leak” when it influences externally-visible behavior?

I have a method (in C++) which generates a value based on a parameter and the parameters from previous calls. Calling it more than once with the same parameter may generate different values each time. ...
27
votes
8answers
3k views

Is creating subclasses for specific instances a bad practice?

Consider the following design public class Person { public virtual string Name { get; } public Person (string name) { this.Name = name; } } public class Karl : Person { ...

15 30 50 per page