• 0 Posts
  • 5 Comments
Joined 2 years ago
cake
Cake day: July 25th, 2023

help-circle
  • Apologies for being too cryptic/jargon. Pro tip: a real-life mentor can adapt to your level on-the-fly, if available.

    Maybe this introduction helps a bit to get an overview - from the context I expect you are on JavaScript or related.

    It’s often hard to grasp why packages or techniques exist unless you ran into the problems that motivated the solution yourself.

    In this case, it’s all about filtering by the severity of log messages (debug level). If the level is high, your app will show tiny bits of information. These do not need to show for every user, except if they want to enable it (via techniques like a switch/flag, environment variable or a config file).

    Config files or profiles are often used to enable/disable code parts in production or to configure how often scheduled jobs should be triggered and so on.

    Depending on your level of expertise logging stuff via the console may be just fine for the moment. In particular if you are the sole developer. Once you’re annoyed by your own logs, incrementally replace the ‘prints’ with a library that feels comfortable or well-documented.





  • I always found the actual challenge to decide what to get rid of once the duplicates where found.

    Some tools I tried would also ask file-by-file, which I found a bit useless for thousand of files. Yet, I cannot even express a set of rules to decide this in general, so I’m not blaming the tools.

    In particular, with picture collections I also came to the conclusion that some redundancy is probably ok rather than accidentially deleting data that I duplicated on purpose and simply forgot why.