Does functional programming mandate new naming conventions?

In a functional programming paradigm, people usually construct abstractions not only top-down, but also bottom-up. That means you basically enhance the host language. In this kind of situations I see terse naming as appropriate. The Haskell language is already terse and expressive, so you should be kind of used to it. However, when trying to … Read more

Elegant way for verbose mode in scripts?

As you noticed, you can define some log functions like log, log_debug, log_error, etc. function log () { if [[ $_V -eq 1 ]]; then echo “$@” fi } It can help increasing your main code readability and hide show\nonshow logic into logging function. log “some text” If _V(global variable) is equal 1 “some text” … Read more

How can I make Elixir mix test output more verbose?

To print the names of the passing tests, you can pass –trace argument to mix test. For example, here’s the output of mix test –trace on the current master branch of httpoison package: $ mix test –trace HTTPoisonTest Starting HTTParrot on port 8080 Starting HTTParrot on port 8433 (SSL) Starting HTTParrot on unix socket httparrot.sock … Read more

How to determine what log level to use? [closed]

I don’t think there are any hard-and-fast rules; using the log4j-type levels, my ‘rules of thumb’ are something like: FATAL: the app (or at the very least a thread) is about to die horribly. This is where the info explaining why that’s happening goes. ERROR: something that the app’s doing that it shouldn’t. This isn’t … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)