All Questions
0
votes
2answers
14 views
What would be a good approach to generate a tree of folders?
Say I have an array of strings, like this:
var folders = new[]
{
"Foo",
"Bar",
"Foo\Bar"
"Foo\Bar\Baz"
};
And that I have an object that represents a folder - something like this:
...
0
votes
1answer
26 views
Is there a standard way or standard alternative to packing a struct in c?
When programming in C I have found it invaluable to pack structs using GCCs __attribute__((__packed__)) attribute so I can easily convert a structured chunk of volatile memory to an array of bytes to ...
0
votes
0answers
10 views
Strategy for Public / Private API, Encrypted (or Hashed) Data, and Server Compromise
In this very simplistic but realistic scenario, I have 2 combo web/database servers (A) behind a load balancer and a single IP address. They also permit access only from one IP address -- the client ...
0
votes
0answers
16 views
Team structures for different stages of lean product life cycle [on hold]
I am trying to find examples of ideal software development team structures (real world companies preferred) for four different stages of lean product life cycle: introduction, growth, maturity and ...
0
votes
2answers
33 views
Where to put configuration constants?
Considering a small embedded C project, how to decide if certain constants belong to
a global configuration file
the header of the "module == compilation unit"
on top of the the actual C file
or ...
-4
votes
0answers
22 views
Smallish open source project with unit tests [on hold]
I need to do study on success of unit testing of some smallish open source application. I'm mainly used to Java so that's why I'd prefer it to be written in Java. Also it would be positive if that ...
0
votes
0answers
25 views
Designing Pricing table in MYSQL
I'm designing a pricelist table for my database.
It will include Customer, Model, Start_date, End_date, Price, Currency, RRP
When I update a new pricelist which is sent every now and then (maybe ...
0
votes
0answers
9 views
CakePHP 1.3 Location for Email Blacklist
I'm adding email validation with a blacklist for my CakePHP 1.3 application, and trying to figure out where the "right" place would be to put the actual list of blacklisted emails. Coming from Rails, ...
0
votes
1answer
27 views
How unit test service method that use repository method
For service methods that call repository methods to interact with database how could I unit test these service methods?
Example 1:
public function updateSlideshow($data){
// do some logic and ...
3
votes
0answers
30 views
Branching and Merging Business Data
We're working on a project wherein the business users operate on a set of data that is periodically published. We've labeled the publishing milestones as Versions, and, due to some business ...
0
votes
0answers
23 views
Scala - Reduced case class
I have a dessign problem, which I can't find a nice Scala way to solve it.
case class User(id: Int, name: String, email: String, cars: Seq[MiniCar])
case class MiniUser(id: Int, name: String)
case ...
1
vote
1answer
55 views
Suggestions for structuring complex json structures?
I can't find many tips for how to design complex json structures beyond the obvious tips of not trying to nest too deeply, using defined data types, etc.
For example, if I have a location that needs ...
6
votes
1answer
84 views
How do I unit test functions in anonymous namespaces?
Here is a typical C++ code:
foo.hpp
#pragma once
class Foo {
public:
void f();
void g();
...
};
foo.cpp
#include "foo.hpp"
namespace {
const int kUpperX = 111;
const int ...
-6
votes
0answers
20 views
Multiple image upload into database [on hold]
I got a situation, where i need to select multiple images and insert into database. what could be propre way to achieve it?
thanks in advance.
0
votes
0answers
58 views
C++ Virtual destructors used only when there are virtual functions
This is from Effective C++ (Meyers):
Classes not designed to be base classes or not designed to be used polymorphically should not declare virtual destructors
I don't understand why ...