terminology

What are the differences between a compiler and a linker?

南笙酒味 提交于 2019-12-17 17:39:18
问题 What is the difference between a compiler and a linker in C? 回答1: The compiler converts code written in a human-readable programming language into a machine code representation which is understood by your processor. This step creates object files. Once this step is done by the compiler, another step is needed to create a working executable that can be invoked and run, that is, associate the function calls (for example) that your compiled code needs to invoke in order to work. For example,

Functional Programming Vs Declarative Programming Vs Imperative Programming

自闭症网瘾萝莉.ら 提交于 2019-12-17 17:34:15
问题 I have been too used to Imperative Programming which is the usual way of telling the computer to perform step by step the procedure to get the final result. On the other hand, declarative programming just passes the input and expects the output without stating the procedure how it is done. The one I am confused about is Functional Programming. I know Functional Programming is a programming paradigm that treats computation as the evaluation of mathematical functions and avoids state and

What does `precision mediump float` mean?

大城市里の小女人 提交于 2019-12-17 17:34:02
问题 In the learningwebgl tutorial1 I've found an interesting line in the fragment shader. precision mediump float; I've found an article about it here, but I still can't understand what does it mean? And if I remove this line, nothing changes. Everything is the same. So what does precision mediump float mean? 回答1: This determines how much precision the GPU uses when calculating floats. highp is high precision, and of course more intensive than mediump (medium precision) and lowp (low precision).

What does it mean by buffer?

ε祈祈猫儿з 提交于 2019-12-17 17:24:00
问题 I see the word "BUFFER" everywhere, but I am unable to grasp what it exactly is. Would anybody please explain what is buffer in layman's language ? When is it used? How is it used? 回答1: Imagine that you're eating candy out of a bowl. You take one piece regularly. To prevent the bowl from running out, someone might refill the bowl before it gets empty, so that when you want to take another piece, there's candy in the bowl. The bowl acts as a buffer between you and the candy bag. If you're

What is an anti-pattern?

只愿长相守 提交于 2019-12-17 17:23:19
问题 I am studying patterns and anti-patterns. I have a clear idea about patterns, but I don't get anti-patterns. Definitions from the web and Wikipedia confuse me a lot. Can anybody explain to me in simple words what an anti-pattern is? What is the purpose? What do they do? Is it a bad thing or good thing? 回答1: Anti-patterns are certain patterns in software development that are considered bad programming practices. As opposed to design patterns which are common approaches to common problems which

What is the purpose of a Data Access Layer? [closed]

送分小仙女□ 提交于 2019-12-17 15:48:13
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed last year . I started a project a long time ago and created a Data Access Layer project in my solution but have never developed anything in it. What is the purpose of a data access layer? Are there any good sources that I could learn more about the Data Access Layer? 回答1: In two words: Loose Coupling To keep the code you use

Perfect forwarding - what's it all about? [duplicate]

醉酒当歌 提交于 2019-12-17 15:22:51
问题 This question already has answers here : Closed 7 years ago . Possible Duplicate: Advantages of using forward Could someone please explain to me what perfect forwarding is about? 回答1: http://www.justsoftwaresolutions.co.uk/cplusplus/rvalue_references_and_perfect_forwarding.html Why is this useful? Well, it means that a function template can pass its arguments through to another function whilst retaining the lvalue/rvalue nature of the function arguments by using std::forward. This is called

Difference between classification and clustering in data mining? [closed]

杀马特。学长 韩版系。学妹 提交于 2019-12-17 15:04:39
问题 Closed . This question needs to be more focused. It is not currently accepting answers. Want to improve this question? Update the question so it focuses on one problem only by editing this post. Closed 6 months ago . Can someone explain what the difference is between classification and clustering in data mining? If you can, please give examples of both to understand the main idea. 回答1: In general, in classification you have a set of predefined classes and want to know which class a new object

What is an SDL renderer?

怎甘沉沦 提交于 2019-12-17 14:58:59
问题 I'm starting with SDL2 and having some trouble trying to understand what an SDL_Renderer is. What is it? What does it do? What's the difference between SDL_Renderer, SDL_Window, SDL_Surface and SDL_Texture and how they are related? I had issues with this when trying to understand this introductory code: #include <iostream> #include <SDL2/SDL.h> int main() { /* Starting SDL */ if (SDL_Init(SDL_INIT_EVERYTHING) != 0) { std::cout << "SDL_Init Error: " << SDL_GetError() << std::endl; return 1; }

What is the origin of the term “heap” for the free store?

心已入冬 提交于 2019-12-17 09:33:29
问题 I am trying to find the official (or a good enough) reason that the free store is commonly referred to as the heap. Except for the fact that it grows from the end of the data segment, I can't really think of a good reason, especially since it has very little to do with the heap data structure. Note: Quite a few people mentioned that it's just a whole bunch of things that are kind of unorganized. But to me the term heap physically means a bunch of things that are physically dependent on one