Kotlin- naming convention for boolean returning methods

Something about naming convention for properties in Kotlin, I know it’s not for methods. But it’s related: From book Kotlin in Action (by Dmitry Jemerov & Svetlana Isakova) – section 2.2.1 Properties: In Kotlin, properties are a first-class language feature, which entirely replaces fields and accessor methods. Listing 2.5. Declaring a mutable property in a … Read more

What does .dist used as an extension of some source code file mean?

.dist files are often configuration files which do not contain the real-world deploy-specific parameters (e.g. Database Passwords, etc.), and are there to help you get started with the application/framework faster. So, to get started with such frameworks, you should remove the .dist extension, and customize your configuration file with your personal parameters. One purpose I … Read more

How is the `*var-name*` naming-convention used in clojure?

It’s a convention used in other Lisps, such as Common Lisp, to distinguish between special variables, as distinct from lexical variables. A special or dynamic variable has its binding stored in a dynamic environment, meaning that its current value as visible to any point in the code depends upon how it may have been bound … Read more

The abbreviation impl is used in a lot of libraries; What does it mean? [closed]

It stands for Implementation. It’s a Java convention. Often in java (particularly J2EE) you will get an object from some factory, and then use it. That object’s type is often given to you as an interface, so that you don’t need to know the actual class, just its methods. An impl class is usually a … Read more

Naming convention and structure for utility classes and methods

I believe there is a continuum of complexity, therefore corresponding organizations. Examples follow, choose depending of the complexity of your project and your utilities, and adapt to other constraints : One class (called Helper), with a few methods One package (called helper), with a few classes (called XXXHelper), each class with a few methods. Alternatively, … Read more

Object persistence terminology: ‘repository’ vs. ‘store’ vs. ‘context’ vs. ‘retriever’ vs. (…)

As noone has yet answered the question, I’ll post on what I have decided in the meantime. Just for the record, I have pretty much decided on calling most data store classes repositories. First, it appears to be the most neutral, non-technical term from the list I suggested, and it seems to be well in … Read more

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