I used to wake up 7 AM last year. However, recently, I wake up later
than I did. Since my wife retired her previous job, the starting time
for my doughter’s nursery has changed from 8:30 to 9:00. My doughter
often hates changing her pajamas and brushing her teeth. We are likely
to be late. But as she was relatively good girl today, I went to the
dentist in time after brought her to the nursery. At the office, after
finish dental care, I wrote some code in Java. I’m not so familiar with
Java, but Spring Boot’s DI mechanism is interesting for me. Writing a
REST API server in Rust/Rocket as personel project, I have little bit of
a problem in switching database backend between SQLite. In Java
framework, databases are replasablable if they have same interface. Rust
has trait object that behaves like interface as a Type in Java. But I’m
not able to judge which is better solution, using &trait
, or using
Box<trait>
.