terminology

DAO and JDBC relation?

泪湿孤枕 提交于 2019-11-28 18:58:09
I know that Hibernate implements ORM (Object Relational Mapping), what type of mapping does JDBC implement? Does it implement DAO? I don't totally understand how/if DAO is related to JDBC...? BalusC DAO isn't a mapping. DAO stands for Data Access Object. It look something like this: public interface UserDAO { public User find(Long id) throws DAOException; public void save(User user) throws DAOException; public void delete(User user) throws DAOException; // ... } For DAO, JDBC is just an implementation detail. public class UserDAOJDBC implements UserDAO { public User find(Long id) throws

What does “href” stand for in HTML?

淺唱寂寞╮ 提交于 2019-11-28 18:31:10
I understand what the "href" attribute in the anchor tag ( <a /> ) is for, but what does the "h" stand for? Serplat HREF stands for "Hypertext Reference". Source: https://www.w3.org/Provider/ServerWriter.html Hypertext REFerence the h stands for hypertext- in mathematics, hyperspace means greater than 3 dimensions. Got to love the superlative! The official name is supposedly (H)ypertext (REF)erence, but I always liked to think of it as Hyperlink Reference. 来源: https://stackoverflow.com/questions/3586169/what-does-href-stand-for-in-html

What is the definition of an implementation detail? [closed]

僤鯓⒐⒋嵵緔 提交于 2019-11-28 18:17:00
I see this term on the internet a lot (in fact, typing it on google returns a lot of results). What is the exact definition of an "implementation detail"? It's a behavior produced by code which may be relied on by consuming code, though that behavior is not specified by the spec the code is written to. Hence, other implementations of the same spec may not exhibit the same behavior, and will break that consuming code. That's why it's bad to rely on them. For instance, if you were to write some code against a list interface which specified an array sort but not the algorithm it used, and you

Why does GitHub call foreign submissions, a “Pull Request”?

旧巷老猫 提交于 2019-11-28 18:16:07
问题 I'm curious why GitHub calls submissions to merge, "Pull requests." From my understanding, git pull will pull all changes, from a remote repository, into a current working branch. Then merge those changes with FETCH_HEAD . (Git Pull) So taking a look at git push ... a push would actually push committed changes to a repository. And isn't that what you are doing with a Git repo? Submitting a "request" to merge your code? So why isn't it called a "Push request"? 回答1: The term “pull requests”

What does '# noqa' mean in Python comments?

天大地大妈咪最大 提交于 2019-11-28 18:04:36
While searching through a Python project, I found a few lines commented with # noqa . import sys sys.path.append(r'C:\dev') import some_module # noqa What does noqa mean in Python? Is it specific to Python only? jimf Adding # noqa to a line indicates that the linter (a program that automatically checks code quality) should not check this line. Any warnings that code may have generated will be ignored. That line may have something that "looks bad" to the linter, but the developer understands and intends it to be there for some reason. For more information, see the Flake8 documentation for

What is 'Facet' in JavaEE?

半世苍凉 提交于 2019-11-28 17:44:34
I wonder not only what is Facet but also what is Facet 'in physical level' (as I understand it's not a separate jar, but what?)? I also wonder how can it affect my application after deploying. I'll explain on real example: I had 2 facets (which were created by IDE): Spring Facet and Web Facet (for jsf). I deployed it to Tomcat and my application worked fine. Then I added (by means of IDE) one more facet - JPA Facet. I redeployed application and.. it still worked fine :) So, I'm just curious what is that and why do we need it? This is not Java EE related. This is IDE related. The term is at its

Use of the terms “queues”, “multicore”, and “threads” in Grand Central Dispatch

你。 提交于 2019-11-28 17:36:08
I am trying to get my head around the concepts of Grand Central Dispatch. I want to understand these quotes from Vandad's book on Concurrent Programming. The real use for GCD is to dispatch tasks to multiple cores , without making you the programmer, worry about which core is executing which task. and At the heart of GCD are dispatch queues. Dispatch queues are pools of threads . and finally You will not be working with these threads directly. You will just work with dispatch queues, dispatching tasks to these queues and asking queues to invoke your task. I have bolded the key terms. Are

Is polymorphism another term for overloading?

大城市里の小女人 提交于 2019-11-28 17:35:30
Is polymorphism another term for overloading? No; overloading is creating a method with the same name with a different amount of parameters, or with parameters which are of another type. Polymorphism is about changing the implementation / functionality of a specific method across various types (which all have the same 'base-type'). Overloading: public class TestClass { public void DoSomething( int a, int b ) {} public void DoSomething( int a, int b, string x ) {} } Polymorphism: public abstract class Base { public abstract DoSomething(); } public class A : Base { public override DoSomething()

What are the differences between a compiler and a linker?

风格不统一 提交于 2019-11-28 17:27:56
What is the difference between a compiler and a linker in C? 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, your code could call sprintf , which is a routine in the C standard library. Your code has nothing that does

What's the best way to define the words “class” and “object” to someone who hasn't used them?

Deadly 提交于 2019-11-28 17:04:40
My neighbor is taking "Intro to Java", and asked me to help explain a few of the first-day concepts. I realized that since I do this everyday, I don't have the beginner's mind, and it's hard to relate some of this stuff from scratch. The one that's actually not trivial for me to explain is "what the heck is a class?" Best I have so far: A variable holds some kind of data; one variable might be a first name, another variable might be your weight in pounds. A method is a function, it does stuff, and can do stuff with those variables. A method might display your name on screen, or tell you how