Problem I know using a UnitOfWork/Repository pattern in a normal class should work fine without any issues but how about […]
Tag: static
Could my object use static methods? Anything I need to do to make the code better?
Problem With the Zend coding convention in the back of my mind, I have set this up. It lets you […]
Unit testing legacy code with static classes
Problem I am adding new functionality into a legacy application. For my new classes I have introduced Unit Testing. I […]
`Static inheritance` pattern
Problem I have an abstract class Entity in my code, which requires a reference to an instance of EntityData to […]
Overriding static method with different static variable in java [closed]
Problem Closed. This question is off-topic. It is not currently accepting answers. Missing Review Context: Code Review requires concrete code […]
Remove all occurrences of a digit from a number
Problem I need to remove all occurrences of a digit from a number in a recursive function with this prototype: […]
Equivalent of C-style “Static Local Variable” in Swift
Problem I’m porting some Obj-C code to Swift, and I’ve written the following code to allow me to deal with […]
feedback for exercise 4-11 in K&R
Problem I know that there is one more topic about the exercise 4-11, but the difference is that I solved […]
PHP get minDateTime from array
Problem I’ve written a function to get the smallest date from an date[ ] and check for null. If null […]
Could my object use static methods? Anything I need to do to make the code better?
Problem With the Zend coding convention in the back of my mind, I have set this up. It lets you […]