Unanswered Questions
4
votes
1answer
68 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 ...
4
votes
1answer
250 views
Advantages and drawbacks of different ways using Either-types
I am writing software for compiling programs. Therefore have a Compiler that compiles a given sourcecode. It then returns a CompileResult that is similiar to an Either type (it is actually internally ...
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 ...
8
votes
3answers
233 views
C++: Should class own or observe its dependencies?
Say I have a class Foobar that uses (depends on) class Widget. In good ol' days, Widget wolud be declared as a field in Foobar, or maybe as a smart pointer if polymorphic behavior was needed, and it ...
5
votes
0answers
127 views
How can I go about testing this javascript?
I'm working on a project that has me responsible for testing out some software that scrapes a web-page representing an input form, and generates a mobile friendly version of that page. This is ...
4
votes
0answers
46 views
Can I whitelist user agents that will execute JavaScript?
I'm building a SPA (single page application) so that when a browser request a page from my server, it only receives a small HTML and a big JavaScript app that then asks the appropriate data from the ...
4
votes
0answers
61 views
What's best practice when putting an abstraction layer over an ORM?
When working with an ORM such as Entity Framework, I've fallen into a comfortable habit. Make an interface with get/add methods on it, put this on a "Repository" class then add a constructor to each ...
3
votes
1answer
183 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 ...
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
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 ...
1
vote
1answer
76 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 ...
0
votes
0answers
28 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 ...
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.
...
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 ...