Unanswered Questions
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 ...
9
votes
0answers
345 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
1answer
903 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
0answers
184 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 ...
6
votes
1answer
176 views
Heuristic Approach for Flexible DIFF Implementation
I have created a DIFF implementation to compare document revisions at work. It is based on An O(ND) Difference Algorithm and Its Variations.
One thing that has become important is to take the list ...
5
votes
1answer
683 views
Attachment handling for web application with Jackrabbit
I need to manage attachments on my Spring web application and I thought to use an open source repository.
My app it's a job approval system using J2EE / SPRING 3 Framework and Postgress DB to allow ...
4
votes
1answer
114 views
Reducing dependency cycles and reducing coupling
I'm trying to learn how to produce quality object-oriented code and have been studying concepts like SOLID. I'm currently working on an entity-component-process system for a small game engine.
...
4
votes
0answers
134 views
“Middle ground” architecture for client-server iOS apps?
I see two obvious approaches to the architecture for an iOS app which needs to talk to a server to do its job.
Pretend to be a web browser
Under this approach, the app fetches a chunk of data ...
4
votes
0answers
153 views
Why does the new ADT create a static inner class Fragment by default?
Honestly, I can't help but feel that this is done merely to confuse newcomers. Most of the errors on Stack Overflow by complete Android newbies mostly stem from that they have a static inner class ...
4
votes
0answers
127 views
How to represent hard-to-calculate “properties” of “objects” in functional code?
I have a polyline "class" in my Clojure program, which is represented by a vector of points. (It's not really a class or anything.)
The polyline's length (in the geometric sense) is something that is ...
4
votes
2answers
1k views
Visitor stability vs instanceof flexibility
I am working on a GUI application which generates a configuration file. I have a class hierarchy for the configuration model and I use an object tree of that hierarchy in several different contexts. ...
4
votes
1answer
3k views
using dbus on Android
I would like to know if it is possible to use DBUS on Android using Java. From what I have been searching till now it appears like there is no DBUS programming support on Android. But then bluetooth ...
4
votes
1answer
477 views
Is there an effective way to test XSL transforms/BizTalk maps?
Creating repeatable tests for BizTalk maps is frustrating. I can't find a way to handle testing them like I'd do unit testing, because I can't find ways to break them into logical chunks. They tend to ...
3
votes
0answers
68 views
Is it possible to programmatically attach custom metadata to phone calls?
I'm trying to determine if it should be possible for a cell phone app to relay custom data along with a phone call. By "should be possible" I mean that I'm not trying to learn how to do it in ...
3
votes
0answers
85 views
Java 8: Does it make sense to split up an existing multi-method interface into several single method interfaces just to take advantage of lambdas?
Say I have an existing callback interface that has multiple methods. To illustrate my point I use a callback the likes that you would see in code that performs some HTTP client operations:
public ...