What does “semantically correct” mean?

Labeling correctly It means that you’re calling something what it actually is. The classic example is that if something is a table, it should contain rows and columns of data. To use that for layout is semantically incorrect – you’re saying “this is a table” when it’s not. Another example: a list (<ul> or <ol>) … Read more

Difference between parameters, features and class in Machine Learning

Let’s use the example of classifying the gender of a person. Your understanding about class is correct! Given an input observation, our Naive Bayes Classifier should output a category. The class is that category. Features: Features in a Naive Bayes Classifier, or any general ML Classification Algorithm, are the data points we choose to define … Read more

About first-,second- and third-class value

Oh no, I may have to go edit Wikipedia again. There are really only two distinctions worth making: first-class and not first-class. If Michael Scott talks about a third-class anything, I’ll be very depressed. Ok, so what is “first-class,” anyway? Well, it is a term that barely has a technical meaning. The meaning, when present, … Read more

What’s the difference between “class method” and “static method”?

So my question is why are they called class methods instead of a static method? What is the difference between a static method and a class method? From Wikipedia: Static methods neither require an instance of the class nor can they implicitly access the data (or this, self, Me, etc.) of such an instance. This … Read more

Java pass by reference

Java always passes arguments by value NOT by reference. Let me explain this through an example: public class Main { public static void main(String[] args) { Foo f = new Foo(“f”); changeReference(f); // It won’t change the reference! modifyReference(f); // It will modify the object that the reference variable “f” refers to! } public static … Read more

‘method’ vs. ‘message’ vs. ‘function’ vs. ‘???’

I’ve found this to be a language and programming-paradigm thing. One paradigm — OOP — refers to objects with member methods, which conceptually are how you send messages to those objects (this view is reflected in UML, for example). Another paradigm — functional — may or may not involve classes of objects, but functions are … Read more

Where is the difference between “binaries” and “executables” in the context of an executable program?

An executable file is one which can be executed; you would run it on the commandline by writing the name of the file itself as the command. On Unix systems, the file’s “executable” flag must also be set. On Windows, the file’s extension must be one of a fixed set of executable file extensions, including … Read more

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