Related Posts
Fuck the Python Borg, I like Singleton Better
I’ve read in parts of the web (and on the Martinelli’s Python Cookbok) that it’s better to do the Borg pattern over singletons, they say something alongs the lines of: “who cares about identity, care about shared state” Coming from the Java world, I just can’t understand that, why waste memory and cpu to address […]
[CODE/JAVA] Scanner – read a full line
I was solving problems at HackerRank to teach a friend how to code in Java and to process the input data it’s convenient to use Java’s built in Scanner class. However, in one of the problems we wanted to read a whole line at once and we noticed that the Scanner’s API is geared towards […]