abstraction
Simple way to unit test a lazy load property
I\'m somewhat of a newbie in unit testing. Stumbled upon a problem of unit testing a lazy load property and wondering if there is a simple solution to that:[详细]
2023-02-26 07:51 分类:问答Should we avoid repetitive code in C++ in order to be "Pythonic", and how?
I am in larval stage with Python and pre-egg stage in C++, but i am trying to do my best, specially with the \"Don\'t Repeat Yourself\" principle.[详细]
2023-02-25 10:00 分类:问答package visibility [closed]
Closed. This question needs to be more focused. It is not currently accepting answers. 开发者_开发知识库[详细]
2023-02-20 07:35 分类:问答Abstraction and abstract in java
I am a java developer with good u开发者_JAVA技巧nderstanding of Object orientation concepts(or maybe, I think like that). And right now I am learning design patterns (From Head first design patterns).[详细]
2023-02-19 18:28 分类:问答Good way to get values from Database
is there a best practise to get values from a database in java? my special questions are: how can i access the database from whole programm (i use static class with init method which is called once[详细]
2023-02-19 06:29 分类:问答Should em.flush be used in EJB 3.0 DAOs to abstract persistence layer?
Say I have following generic dao deployed as a local SLSB: public interface CrudService { public <T> T create(T t);[详细]
2023-02-18 15:47 分类:问答Is there a provider agnostic way of getting up to date cache statistics in Spring framework?
Spring provides a useful feature of Cache Abstraction But what I could not find is a provider agnostic way to get live cache statistics. Essentially I just want to show a list of all the cache names a[详细]
2023-02-17 13:04 分类:问答Abstracting DB away from applications
I have a database that is accessed by several Java applications. I want to enca开发者_开发问答psulate the DB away from the applications, so that whenever there is a change in the DB schema, the change[详细]
2023-02-14 02:46 分类:问答Starting new project: database abstraction in Python, best practice for retaining option of MySQL or PostgreSQL without ORM
I want to retain the flexibility of switching between MySQL and PostgreSQL without the awkwardness of using an ORM - SQL is a fantastic language and i would like to retain it\'s power wi开发者_如何学运[详细]
2023-02-13 10:13 分类:问答C# Abstracting methods
I have a set of methods, that take in dates and a bool. These methods then use some SQL then pass it on to another method and return a list. Each method is pretty much the same with the exception of t[详细]
2023-02-13 09:49 分类:问答