You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The puzzle 51-55acd5db in src/main/java/com/jcabi/jdbc/JdbcSession.java (lines 141-143) has to be resolved: Refactor this class to avoid too much coupling. For instance, CRUD operations could be performed by another class. Don't forget to remove the suppressions that become obsolete afterwards.
The puzzle was created by amihaiemil on 17-Aug-16.
Estimate: 30 minutes, role: IMP.
If you have any technical questions, don't ask me, submit new tickets instead. The task will be "done" when the problem is fixed and the text of the puzzle is removed from the source code. Here is more about PDD and about me.
The text was updated successfully, but these errors were encountered:
@yegor256 I have a suggestion! What if we introduce new interface named Query. It will have only one method execute.
public interface Query<T> {
T execute();
}
So Query<T> will represent some sql (or maybe nosql) query that returns some result no matter what query it is: select, insert, update or anything else.
When Query will have all implementation to cover JdbcSession functionality, we can just delete JdbcSession
@catdog905 removing JdbcSession entirely sounds like a very dangerous change, since many users rely on this design. I believe, this particular puzzle is about refactoring of the class, to reduce its complexity.
The puzzle
51-55acd5db
insrc/main/java/com/jcabi/jdbc/JdbcSession.java
(lines 141-143) has to be resolved: Refactor this class to avoid too much coupling. For instance, CRUD operations could be performed by another class. Don't forget to remove the suppressions that become obsolete afterwards.The puzzle was created by amihaiemil on 17-Aug-16.
Estimate: 30 minutes, role: IMP.
If you have any technical questions, don't ask me, submit new tickets instead. The task will be "done" when the problem is fixed and the text of the puzzle is removed from the source code. Here is more about PDD and
about me.
The text was updated successfully, but these errors were encountered: