This thread is my blog where I write about programming, originally it was mainly on C++. Currently I spend more time with Java, Python et al.. Alas ;-)
This post of kind of fun little HackerRank problem solved (in Java) using Dynamic Programming now should be a bit more readable than its first version. https://t.co/n9llAMJDA8
Cute little problem that leads to a natural and clean solution using a partial sum approach. I describe how to think to it and I provide the relative Java code https://t.co/49M3F6RReb
I reviewed my code and post for the HackerRank "medium" problem Java Dequeue, that is basically all about using an ArrayDeque to check a rolling window of data. https://t.co/mIIp4yRNmy
Conditionally disabling (or enabling) a test in JUnit 5 Jupiter using the new 5.7 DisabledIf / EnabledIf annotations with a use case example. https://t.co/2nJXzJhXqB #java
Added a few lines to clarify the algorithm I used to solve the Last Digit of Partial Sum of Fibonacci Numbers problem using the Pisano period (some python knowledge required) https://t.co/0mnYW58B67
Adding a manifest to a JAR to make it executable is an easy matter using Maven. A minor nuisance is that the non-executable one is still produced, at least if we don't explicitly suppress its creation. But that it's easy to do, too. https://t.co/PjJ21aUfj3
Another basic old blog post I rewrote from scratch. This is about adding dependencies in a Java app and how to let maven know that we want to put them too in the resulting jar. https://t.co/87mEDsVVWC
I just wanted to clean a bit an ancient blog post about creating a Java desktop app on Eclipse with Maven. I ended up rewriting it from scratch and refactoring the associated code on git from ground up https://t.co/U0xp4SApfo
Moving from JUnit 4 to JUnit 5 in a Spring Application is quite easy, given the native support. Just a matter of adjusting the POM and a limited tweaking in the Java code https://t.co/y3xdtl0Fbi
A basic comparison among Autowired (plain and with Qualifier), Resource, and Inject (plain and with Named) java annotations in the Spring framework https://t.co/ZSGOYF65LX
Firstly a naive solution to HackerRank array manipulation problem, then refactored using partial sum to get rid of performance issue. https://t.co/9gPVP535CS #python#problem
While reading Pro Spring 5 I felt pushed (by a warning) to refactor the provided Java code by using try-with-resource on Spring ApplicationContext https://t.co/1VQLZr6SKS
I've started reading Pro Spring 5. I had some minor issues to make their code working from GitHub to my STS IDE, some changes in a couple of gradle conf files required. https://t.co/PFy1NmHnRF #java#spring#book
Wrapping a swing DateFormatter in a ThreadLocal to make it thread-safe. However, when possible, it would be better to refactor the code to use the java.time DateTimeFormatter instead. https://t.co/urLkVsezND
Added a section in the post discussing my solution to Last digit of sum of Fibonacci numbers problem to demonstrate that the sum of the first n Fibonacci numbers equals Fibonacci(n+2) minus 1. https://t.co/addJ4e2ij6 #python#math
A hackerrank Java problem that should be centered on Deque, but I think is more interesting for the use of a hash map as cache. I used once Map.merge() in a bit too adventurous way, I swear I won't put it like that in production code https://t.co/uMjKT9USF6
Simple little Hackerrank problem about sorting object, meant to be solved in Java. It is almost a one-liner using stream functionality. Compact, fun, and, I think, easy to understand even if you are not that much into the matter. https://t.co/lUDNcCDtyY
Cute little HackerRank problem about a pawn that has to get out board using a limited set of moves and avoiding hurdles. I'm happy enough about my Dynamic Programming solution. https://t.co/vT5MDwHXgp #problem#java#dp