You Need a Tool to Search Inside Your Standard Library

Today, programming languages have so much big standard libraries that it’s a pain to know everything: one of my programming teacher (a C and C++ addict) told me that the thing that hurts him with Java and .Net was the huge standard library and the difficulty of having a good knowledge of these toolkits. Maybe he was right, and that documentation is sometimes a kind of unusable garbage, or even disappearing (for example when Oracle moved everything about Java to random locations).

However, it can be a bigger pain to re-write something that already exists than to learn and build easy tools to search for information inside the standard library. A tool that allow to search for common modules names (like URI manipulation or JSON or IO, anything). It’s sometimes too long to search on and on when you just need to use something in your code. This problem also comes from bad (human) memory, you can’t remember all these tools that you used only a few times. You can even less remember oneliners with more than 20 chars…

Continue reading “You Need a Tool to Search Inside Your Standard Library”

How to Log Easily With Log::Minimal and File::Stamped ?

We love logs because it helps us to debug during development. We also need a quick way to enable / disable logs because it’s not necessary for everybody :

  • you maybe want logs during the development of your module
  • people who will use it don’t necessary want to watch it

When testing a module and building a distribution, you maybe don’t want to inject dirt in your tests output. In the case of debuging, I think it’s a good thing to write it to a file and tail on it.

Continue reading “How to Log Easily With Log::Minimal and File::Stamped ?”