Problem I implemented a resettable version of .NET Lazy (context: mostly to use it in a MemoryCache for auto refresh […]
Tag: lazy
Lazy Load for multiple entities at a time
Problem We have a system with a non standard database solution. All trips to the DB are rather expensive. We […]
Poor man’s lazy evaluation in Java 8
Problem I have an class that cheaply imitates a lazy evaluation scheme. The class is for representing a file and […]
Lazy loaded property readability
Problem I currently have code that looks like this private string _stringField; protected string StringField { get { if (_stringField […]
Singletons with eager and lazy instantiation
Problem I’ve found more than one implementation of the Singleton Pattern in Java (more like 5-6). I want to know […]
Swift protocol with lazy property requirement
Problem First question here on CodeReview. I was directed here from a question I asked on SO: Swift protocol with […]
How can I make a shorter binary rule in haskell?
Problem Here is a code I experimented with recently: let br = [0]:[n:(concat $ take n br) | n <- […]
Shorthand private field caching of public property [closed]
Problem Closed. This question is off-topic. It is not currently accepting answers. Lacks concrete context: Code Review requires concrete code […]
Taking n lines from a file which contains m lines, repeating the file lazily if necessary
Problem The desire for such a function came out of the necessity of generating a “source” of Lorem ipsum by […]
Unity Lazy Resolve Implementation
Problem I have been using Microsoft.Unity as my container and have decided that the approach for a lazy implementation causes […]