Questions tagged [helper]
Additional functionality not defined in a class that the helper operates on.
23 questions
2 votes
1 answer
945 views
Replacement for EnsureSuccessStatusCode
I like the simplicity of EnsureSuccessStatusCode for HttpResponseMessage after a call using ...
5 votes
1 answer
146 views
Locating an image file in a pyGame [closed]
I am writing a simple game with pyGame. Structure-wise, I have separated my game into several files: main.py # the main runner, it loads up the environment ...
3 votes
3 answers
113 views
Simple boolean gate with two TriState inputs
As part of a code review I came across this isDummy(a,b)-Method and the question, whether it is more readable as a conjunction, or a disjunction: Original snippet: ...
9 votes
1 answer
474 views
Security Helper Class According To NIST SP800-63B Guidelines
I've created a security helper class that attempts to adhere to the National Institute of Standards and Technology (NIST) "Digital Identity Guidelines" SP800-63B [June 2017] specs. These guidelines ...
5 votes
1 answer
84 views
Utilities for Various Builtins #2
This is the final iteration of an iterative review. The previous iteration can be found here: Utilities for various builtins #1 This code solves the following issue: ...
1 vote
1 answer
66 views
Utilities for various builtins #1
This is an iterative review. The next iteration is located here: Utilities for Various Builtins #2 This code puts several builtins (And a few non-builtins) into the base classes. ...
3 votes
2 answers
2k views
JSON Schema Validation helper method
This is what I wrote to validate JSON to the given schema. ...
3 votes
1 answer
2k views
Static helper function to set a property on another object
A situation has come up in which we have a block of code that will be repeated in multiple files, and this block of code has to: Create some object based on the values of other controls/properties. ...
2 votes
2 answers
5k views
Log4net helper class for unit tests
The class helps to determine the exact output log message, taking in account the conversionPattern that log4net uses for layout. Current usage is you have to attach the listener, then call your BL or ...
3 votes
1 answer
241 views
Tracks the number of calories consumed throughout the day
Tracks the number of calories a person consumes in a given meal it has helper method to get the day's total. The check method Tries to find any duplicate meals within the given list. The assumption is ...
4 votes
4 answers
436 views
Helper function to format-output any type of variable
This question has already got some reviews, so I could partially improve my code: please look at my self-answer below, which also contains comments about the review. I'm frequently interested to ...
4 votes
3 answers
439 views
Facebook helper class
This is my initial Facebook helper class. Is this code efficient or is there a way to improve this code? ...
5 votes
1 answer
4k views
Managing users and profiles in Rails
I am building a Rails marketplace application using TDD. I would like to get advice on the way in which I have built the User associated ...
5 votes
2 answers
20k views
A set of Razor HTML helpers for disabling elements
I am developing a huge form with a lot of elements in it. The purpose of this form is editing one domain entity. Now, I finished developing the whole form and it just shows the bunch of text boxes, ...
2 votes
2 answers
780 views
Performance of MySQL helper class for VB.NET
I have inherited this code from my company. It is acting as a helper class for a database and written in VB.NET until date. It is working properly and almost 5 to 10 commercial packages I am ...