Ask questions and see you on April 7th at 8pm CET: youtube.com/c/bienadam
Also check out the latest episode:
Please keep the questions as short and as concise as only possible. Feel free to ask multiple, shorter questions. I will also answer some questions in my "shorts" youtube.com/@bienadam/shorts between the shows.
Upcoming airhacks.tv events will also be announced at meetup.com/airhacks
New: The airhacks.tv discord server: discord.gg/airhacks
Hey!
I wanted to ask about property vs constructor injection. I noticed that in https://github.com/AdamBien/ebank/blob/165fa400b48d4b3e7f73853e93d2113f3fbb4661/ebank/src/main/java/airhacks/ebank/accounting/boundary/AccountsResource.java#L33 it's injected as a field and everywhere one searches online it's said that it's "bad and don't do it due to it becoming hard to test". Which way is better?
Is there a similar wrapper or a modern approach to using jdbc as in spring with JdbcClient: https://docs.spring.io/spring-framework/docs/6.2.x/javadoc-api/org/springframework/jdbc/core/simple/JdbcClient.html
I found it quite a good alternative to JPA since it has similar ergonomics and ease of use as the JDK 11 HttpClient which replaced HttpURLConnection.