Unanswered Questions
3
votes
0answers
33 views
At what granularity are events recorded in Event Sourcing?
I'm growing my understanding of event sourcing. My understanding is that it provides a means of recording events as they happen so that given a common beginning state and an audit log of recorded ...
2
votes
1answer
113 views
Using streams as method parameters and/or return types
So let's say I have a 'Transformer' interface that can transform one file-type to another. Let's say I also wish to use streams to provide the data to the Transformer. Which is the approach that is ...
1
vote
0answers
33 views
Feature Toggling for apps (for a/b testing)
I have a published app (Android/iOS) and I'd like to instrument the next version so that I can remotely enable/disable or adjust features, through a web interface. This could facilitate a/b testing ...
1
vote
1answer
108 views
Implementing a Username Class
I am attempting to encapsulate several features about a user in a single class. Although the main use for this class would be to initialize it once and never have to call set any variables again, I ...
0
votes
0answers
43 views
Design Logging architecture in application
So I think this question about logging will be different to the often asked questions.
First things first: I have an application that is doing some stuff. While the stuff is beeing done, some ...
0
votes
2answers
30 views
Efficient database access for related data
As an example for this question, consider a content management system that has a content database table which contains things like the page title and location as well as the content itself which could ...
0
votes
1answer
48 views
A “Composite API” layer
We are giving services a complete overhaul at work: Swapping soap for rest, resculpting the domains to give better separation of concerns, etc.
These new services will be publicly available. During ...
0
votes
1answer
91 views
What is the best way to store multilingual data in MongoDB?
I want to save/serve multilingual data in my CMS application using Mongoose.
Is this the correct way?
name: {
global: {
type: String,
default: '',
trim: true,
...
0
votes
1answer
179 views
How to design a scriptable communication emulator?
Requirement:
We need a tool that simulates a hardware device that communicates via RS232 or TCP/IP to allow us to test our main application which will communicate with the device.
Current flow:
...
28
votes
0answers
2k views
Why (or why not) are existential types considered bad practice in functional programming?
What are some techniques I might use to consistently refactor code removing the reliance on existential types? Typically these are used to disqualify undesired constructions of your type as well as to ...
11
votes
0answers
453 views
How to implement a branch-and-bound in a functional programming language?
I am trying to write a branch and bound search on the set of all functions f: D -> R, where the domain size is small (|D| ~ 20) and the range is much bigger (|R| ~ 2^20). Initially, I came up with the ...
7
votes
0answers
271 views
Does the games industry use automated testing for visual parts of games/rendering? How?
Some parts of a game are easy to test in an automated way (logic, maths, input handling); but there's also a lot that's purely visual and not easily testable.
I would be surprised if the games ...
7
votes
0answers
197 views
Using uniqueness types to implement safe parallelism
I've been interested in uniqueness types as an alternative to monads in pure functional languages for some time; unfortunately, this is kind of an esoteric area of CS research and online resources ...
7
votes
1answer
956 views
Useful design patterns for working with FragmentManager on Android
When working with fragments, I have been using a class composed of static methods that define actions on fragments. For any given project, I might have a class called FragmentActions, which contains ...
6
votes
1answer
124 views
In ASP.NET MVC, should the view models have an ID?
When developing an ASP.NET MVC application that allows the model to be updated, you need some way to know how to take the updated view model and match it back to the model that is now updated. There ...