What is “over-engineering” as applied to software? [closed]

Contrary to most answers, I do not believe that “presently unneeded functionality” is over-engineering; or it is the least problematic form. Like you said, the worst kind of over-engineering is usually committed in the name of future-proofing and extensibility – and achieves the exact opposite: Empty layers of abstraction that are at best unnecessary and … Read more

Forward declaration of lambdas in C++

You can’t separate declaration and definition of lambdas, neither forward declare it. Its type is a unique unnamed closure type which is declared with the lambda expression. But you could do that with std::function objects, which is designed to be able to store any callable target, including lambdas. As your sample code shown you’ve been … Read more

C++ global variable initialization order

The issue is a little bit subtle; please refer to C++11 3.6.2 for details. What matters for us is that there are two phases of initialization of “non-local variables with static storage duration” (or “global variables” in colloquial parlance): the static initialization phase and the dynamic initialization phase. The static phase comes first. It looks … Read more

Is is a good practice to put the definition of C++ classes into the header file?

The answer depends on what kind of class you’re creating. C++’s compilation model dates back to the days of C, and so its method of importing data from one source file into another is comparatively primitive. The #include directive literally copies the contents of the file you’re including into the source file, then treats the … Read more

Difference between list, sequence and slice in Python?

You’re mixing very different things in your question, so I’ll just answer a different question You are now asking about one of the most important interface in Python: iterable – it’s basically anything you can use like for elem in iterable. iterable has three descendants: sequence, generator and mapping. A sequence is a iterable with … Read more

What is a PowerShell NoteProperty?

NoteProperties are generic properties that are created by Powershell (as opposed to properties that are inherited from a specific dotnet object type). Properties of PS custom objects will be NoteProperty, as will the properties of objects created with Import-CSV, or created by using Select-Object and specifying properties to select.

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