Unanswered Questions
288 questions with no upvoted or accepted answers
8
votes
0
answers
354
views
STTCL FSM framework based on the GoF State Pattern, Part I: The basic interfaces
Preface
I have decided to let my pet project created some years ago to undergo a code review here.
The review will be broken into parts according to meta question Multiple reviews or one big review?...
6
votes
0
answers
150
views
Replacing tags in email
I have multiple tables and multiple email templates which will need tags replacing. The data for the tags depends on the recipient id as the data will need to be fetched from different tables.
I have ...
6
votes
0
answers
167
views
Efficiently generate distinct subsets which sum to a particular value
Related: Find all distinct subsets that sum to a given number
This code is supposed to efficiently generate all subsets of a list such that the subset's values sum to a particular target value. For ...
6
votes
0
answers
453
views
Implementing recursive filters with Haskell/Repa
I recently learned Haskell, and I am trying to apply it to the code I use in order to get a feeling for the language.
I really like the Repa library since I manipulate a lot of multi-dimensional data....
5
votes
0
answers
322
views
Extending VBA classes with Behavioral Patterns
I want to learn about Design Patterns and be able to apply them in Excel VBA. So to learn about patterns I bought a book that seems promising: Head First Design Patterns; it presents the material ...
5
votes
0
answers
158
views
Prototype GameManager for game written in Unity
I am self taught, so I'm consistently seeking ways to code better, and more efficiently. If anyone has the time, please advise me on what can be done better with explanations as to why the old method ...
5
votes
0
answers
283
views
ATB strategy MVC architecture refactoring
NOTE: this question isn't as long as it appears to be. I added the comments to the code only to answer some possible questions that may appear.
I'm making an active time battle strategy. Its mechanics ...
5
votes
0
answers
78
views
Elegant way to alter datasets with explicit filters
I would like to write a small helper to filter datasets. Each dataset is a dictionary and some filters I want to apply are common to all the datasets.
That my needs, I wrote this following pattern:
<...
5
votes
0
answers
14k
views
Using the same RecyclerView.Adapter with a different ViewHolder
I would use the same RecyclerView.Adapter with two or more different fragments. Every fragment uses a different view items layout so I must use a different ...
4
votes
0
answers
130
views
Securely generate Token for authentication
In my experience i had the need that some application (both desktop and web) can excange data to authenticate users (even if the data for authenticating users are not reacheable form desktop ...
4
votes
0
answers
123
views
Sudoku sequence solver for non-standard constraints
This script is designed to help solve sequences in Sudoku puzzles with variant constraints (ex: Thermometer, Renban, etc.).
Summary
The user specifies the constraints they want applied as well as the ...
4
votes
0
answers
91
views
License-holder editing application
I am building a WPF (Windows Presentation Foundation) application. And I'm trying to use the MVVM (Model–View–ViewModel) design pattern. It's fascinating and rewarding, even though it seems overly ...
4
votes
0
answers
287
views
Creating Multiple Carousels by storing them in an Array with JavaScript
I created a code where I can add multiple carousels to a page. I did this by storing the carousel in an array and accessing it by clicking on the previous/next arrows.
I was trying to prevent any ...
4
votes
0
answers
59
views
How to split and refactor a large function so it would do only one thing?
I am learning about clean and maintainable code. I heard that functions should be no more than 20 lines long (preferably 5 - 10 lines). I have come across this Bob Martin quote where he said:
“The ...
4
votes
0
answers
62
views
Add VMs and corresponding replications to VMGroups in a Hyper-V cluster
I'm looking for input on how to improve a powershell script I wrote.
Im especially looking for suggestions, that I might be able to apply to future projects as well. Like (anti-)patterns I'm not aware ...