4
votes
1answer
66 views

Economics of scaling, denormalizing NoSQL for personalized content

I am using Cassandra for a data intensive app. With relatively little operations and deployment experience, the expertise I am looking for is someone that can read the example below and decide whether ...
0
votes
2answers
162 views

Why are Strings in StringPool considered insecure?

Passwords are recommended to be stored in char[] instead of String, as Strings are stored in StringPool. Read more here As per this question Strings in StringPool are not available directly. To ...
0
votes
3answers
408 views

How do I handle 3rd party search result data (via cache)

I have a search function on my site and it is taking data from 6 different 3rd party resources. The problem is, it takes too long requesting the data over and over again on the results page. I've ...
2
votes
2answers
75 views

How do I prevent attackers from duplicating submissions?

I want to create a polling website. A client requests to answer the poll using POST, and the server responds with the candidates. The client then sends a POST with the candidate information and the ...
3
votes
1answer
181 views

Why aren't Java Collections put in a dedicated package

Why do they just reside in java.util and not somewhere more specialized like java.collections or java.util.collections? It could contribute to mess up with different unrelated code. Couldn't it? Was ...
1
vote
1answer
48 views

How to handle singular and plural parameters for functions

Often when I'm writing a set of utility functions, I find myself wanting a function that applies some logic to multiple items, as well as a function that does the same with just a single item. There ...
0
votes
2answers
121 views

What should I do when using Golomb/Rice code for large values?

When using Golomb/Rice code in image compression, it is inevitable for us to meet large values. Golomb coding uses a tunable parameter M to divide an input value N into two parts : q, the result of a ...
0
votes
1answer
83 views

Linking stylesheets and scripts when using server side includes

I am working on a site where I want to have a header and footer on each page, so I thought about using server side includes for this. I have not used them before so I am a little bit unsure about best ...
2
votes
1answer
97 views

Best-matching comparative values using all items in array

I have two arrays of objects (items) in the exact same format. Each item represents a wager, and each array represents one of two outcomes for that wager (ex: Team A vs Team B). Both arrays look ...
-4
votes
0answers
29 views

Is bad to not deploy an application that you made? [on hold]

I'm learning the microservices architecture, and I planned an application which is not that conventional (blog, todo, etc) and it will be kinda huge about 19 microservices, the main propose is to have ...
5
votes
5answers
690 views

Why do we have to tell printf() the type of data in C?

Let's consider this C code: #include <stdio.h> main() { int x=5; printf("x is "); printf("%d",5); } In this, when we wrote int x=5; we told the computer that x is an integer. The ...
1
vote
1answer
75 views

Expert advice needed for a NoSql Database

At our company, I have been given the task to develop a Mobile Application (iOS, Android and in the future, maybe Windows). Given those devices, it's likely that we'll have a high number of ...
8
votes
6answers
4k views

Can you learn functional programming in C?

As a result of the comment discussion here, I wonder whether you can learn Functional Programming in C?
0
votes
1answer
59 views

In CI, should tests be run against src or dist?

I've had a dispute with a colleague about when to run JavaScript unit tests in a CI environment at one of two different times. Let's call the two parties PE (pro-early) and PL (pro-late). Early ...
2
votes
2answers
49 views

Storing persistent data that only has a single instance but can change

I'm creating a website CMS in Rails (for fun and learning) and I'm trying to figure out how I'm going to store the data for an "about" page. Due to the nature of this page, the data will only have one ...
-1
votes
2answers
80 views

3D array updating in C# [on hold]

I'm curious because I have read that once an array is declared it can not be changed. Maybe if I lay out my thoughts. Say, I have a cube with dimensions 5x5x5 and I have a viewport that can rotate ...
-1
votes
0answers
44 views

How does PayPal communicate with my website?

I have a website that will have services that need to be paid for. I was considering using PayPal as my payment merchant. What is/are the best approaches to informing my back end user account database ...
17
votes
19answers
9k views

Do good project managers need a programming background? [closed]

Sometimes I can't stand it when project managers ask me to estimate time to complete for various tasks. An estimate is a guess, and guesses can be wrong. Generally, bad requirements and ...
0
votes
3answers
140 views

Client-Server Application Object with child Objects

Actually I'm going to build an Client Server Application, at the Login I recive the User Object from the Server. An user has a List of tasks, but I don't want to load them at the Login. So what would ...
0
votes
0answers
27 views

Declare data in HTML

When working with Angular, jQuery or other Javascript frameworks, I often want to build components to which I can reference and pass data from my HTML. I work with e-learning, so an example relevant ...
1
vote
2answers
65 views

Etymology of (function) overloading

Where does the phrase "overload" come from? It's interesting to see the translation of the term in different languages (e.g. list of Wikipedia articles about overloading), some languages translate it ...
3
votes
1answer
88 views

Oscillations detector: how to effectively detect oscillations of a variable?

I monitor a variable in real-time where new value is generated every 1/25 second. Depending on the conditions, this variable may either be stable, i.e. fluctuate a little (+/-1%) around some value ...
6
votes
3answers
1k views

Is it good to define a variable inside a loop? [on hold]

My instructor once told me that I should not define a variable inside a loop, but I honestly still do not understand why. What are the disadvantages of that? Could any body explain that to me?
-8
votes
0answers
66 views

In Java, where is an object created in memory: heap or somewhere else? [duplicate]

When we write a statement like Employee emp = new Employee();, we are creating an object of type Employee. Where is this object created?
0
votes
0answers
44 views

How does the Same Origin Policy protect users?

When I first learned about CORS and Same Origin Policy, I thought it was an honor system (enforced by browsers) to protect a website's resources from being stolen, bootstrapped, by other websites. ...
1
vote
1answer
45 views

Loading Aggregate Root from Database with Validations

Here is a similar question Where to validate domain model rules that depend on database content? I am asking this new question because I have more descriptions and I don't want to change the ...
2
votes
0answers
32 views

PHP: when to use arrays, and when to use objects for mostly-data-storing code constructs?

PHP is a mixed paradigm language, allowing to use and return non-object data types, such as arrays. I pose a question to try to clarify some guidelines for selection of arrays vs objects when deciding ...
-2
votes
2answers
138 views

Difference between O(N^2) and Θ(N^2)

What is the difference between O(N^2) and Θ(N^2)? I know that O is the upper bound and Θ is tight bound. Could someone explain me this concept with an example.
-5
votes
0answers
48 views

Pattern searching in a utility like notepad [on hold]

I was asked this question in an interview. How does a utility like notepad ++ search for patterns. My answer was a suffix tree. However, the space required for the tree would be proportional to the ...
-9
votes
0answers
29 views

Free to use but not to re-upload [on hold]

I like many sites like codepen and bootsnipp but they both are missing features I would like to include. I am working on my own project to handle these missing features. I am almost done but have hit ...
-7
votes
0answers
28 views

Count and Cin - Issue of programming code [on hold]

I began a course of programmation C++, and my code doesn't work properly. #include <iostream> using namespace std; { int n = 12; char c='a'; cout << '' Give an integer and character ...
22
votes
11answers
3k views

Is there a language offering LISP-like macros with a more complex syntax? [on hold]

LISP's macros are extremely powerful constructs, and the inability to introspect and modify the program itself beyond the method signature level has always struck me as a limitation. Yet I favour ...
0
votes
1answer
57 views

Why are 1-day stories given let's say 1 story point when something like “5” would be better?

I know story points are for comparing sizes of stories to each other, not for measuring time. But I've noticed the tendency in my shop and for authors to use 1 story point for small stories that ...
9
votes
5answers
2k views

Why do we have to wait for I/O?

It's always been known that Disk operations are slow and we know the reasons why they are slow. So the question here is why do we have to wait for I/O or why is there such a thing as IOWait, etc.? I ...
1
vote
2answers
368 views

Managing non-domain application behaviour in CQRS

Here's a scenario. I am building QueueUnderflow, a community-edited Q&A site for people who haven't yet grasped the basics of data structures. My users don't like it when people edit their posts ...
7
votes
4answers
27k views

Best practice to query data from MS SQL Server in C Sharp?

What is the best way to query data from a MS SQL Server in C Sharp? I know that it is not good practice to have an SQL query in the code. Is the best way to create a stored procedure and call it ...
3
votes
2answers
41 views

Computing and returning a sub-object where the sub-object is stored in the object

I have a complex object which routinely needs to compute a sub-object representing various aspects of the parent's state as a bundle. For example, imagine the object represents information about an ...
-6
votes
0answers
34 views

Shared Library problem [on hold]

I'm new in Android Development especially in NDK and I've got an android .so shared libray and I need to get calls from it. Is there any program or sth that can do this, and do I need object files(.o) ...
0
votes
1answer
51 views

Is this the correct way to think about the client/server socket relationship?

I'm designing a distributed application, very basic for now. The idea is that once the application is active on all machines (about 5 vms), you can initiate a grep on all log files from all machines ...
4
votes
1answer
160 views

Importing plain javascript libraries in an AngularJs application

I am working on an AngularJs project which is getting bigger very fast. Currently I need to store some user data, so I was using $localStorage for Angular. But I had a problem, as the application is ...
-2
votes
2answers
141 views

What's the difference between “Dynamic programming”, “Memoization” and “In-Place”? [on hold]

I'm a bit confused about the terms or even the difference between: Dynamic programming 1.1. Memoization Dynamic Programming can be realized as Memoization 1.1.1. Tabulation Memoization could ...
0
votes
1answer
95 views

Can I do commercial web development with the Community edition of Visual Studio?

A friend of mine has a small company that needs a new website, and I am interested in helping him, since I have worked a bit with Asp.net MVC. However, I am not sure if I'm allowed to sell or give ...
-7
votes
0answers
31 views

Ajax not working [on hold]

With web help I use this code in one page, now I want use it again and doesn't work! I tried everything and is stupid. Let me show you: ****************************index.php******************** ...
3
votes
1answer
60 views

Code licensing injection and version control history

Are there licensing ramifications to having GPLed code in a public git history, but not a released version of the distributed software? Could a repo owner be obliged to changing their licensing ...
2
votes
1answer
40 views

Storing an all day event in database

I have an event table that should store events (dt_start, dt_end, all_day,etc). I saw that .ical files stores dt_start and dt_end as the same day (without time) for an "all_day" event. Question: ...
27
votes
13answers
1k views

Sales Manager: “Why is time-estimation so complex?” [duplicate]

A few days ago a sales manager asked me that question. But at this moment I didn't know a answer which he can understand. He isn't a programmer! At the moment I work on a product which is over 8 ...
4
votes
2answers
214 views

How do you get complete manual testing by QA in a git/hg flow development process?

I have a question about working with independent testers doing manual testing (not about automated unit and regression testing.) In a flow process I do my work on a feature branch until I'm confident ...
7
votes
3answers
17k views

UML class diagram notations: Differences between Association, Aggregation and Composition

I'm confused about some of the notations of UML class diagrams. Pretty sure I know what Association means. Any relationship between instances of two classes, where an instance of one class needs to ...
-4
votes
0answers
32 views

PHP OOP: Code design for RESTFULL webservices or web application [on hold]

I am trying to build a web app for "Private loan provider" using PHP OOP and MySQL. I am done with DB with tables for Customers, Investors/Partners, Loans, Cashbook and Installments. I would like to ...
1
vote
1answer
396 views

How to test model binding within an MVC controller when Bind attribute with Include list is used?

Auto-generated action methods in MVC5 make use of the BindAttribute with an Include list that contains the field names in a string literal. Example: // POST: MyTable/Edit/5 // To protect from ...

15 30 50 per page