terminology

What does “href” stand for in HTML?

前提是你 提交于 2019-11-27 11:38:01
问题 I understand what the "href" attribute in the anchor tag ( <a /> ) is for, but what does the "h" stand for? 回答1: HREF stands for "Hypertext Reference". Source: https://www.w3.org/Provider/ServerWriter.html 回答2: Hypertext REFerence 回答3: the h stands for hypertext- in mathematics, hyperspace means greater than 3 dimensions. Got to love the superlative! 回答4: The official name is supposedly (H)ypertext (REF)erence, but I always liked to think of it as Hyperlink Reference. 来源: https:/

What are REST resources?

眉间皱痕 提交于 2019-11-27 11:20:17
What are REST resources and how do they relate to resource names and resource representations? I read a few articles on the subject, but they were too abstract and they left me more confused than I was before. Is the following URL a resource? If it is, what is the name of that resource and what is its representation? http://api.example.com/users.json?length=2&offset=5 The GET response of the URL should look something like: [ { id: 6, name: "John" }, { id: 7, name: "Jane" } ] The reason why articles on REST resources are abstract is because the concept of a REST resource is abstract. It's

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

∥☆過路亽.° 提交于 2019-11-27 11:14:51
问题 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"? 回答1: 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

Is Java really passing objects by value? [duplicate]

老子叫甜甜 提交于 2019-11-27 11:08:26
Possible Duplicate: Is Java pass by reference? public class myClass{ public static void main(String[] args){ myObject obj = new myObject("myName"); changeName(obj); System.out.print(obj.getName()); // This prints "anotherName" } public static void changeName(myObject obj){ obj.setName("anotherName"); } } I know that Java pass by value, but why does it pass obj by reference in previous example and change it? Eng.Fouad Java always passes arguments by value, NOT by reference. In your example, you are still passing obj by its value, not the reference itself. Inside your method changeName , you are

Is polymorphism another term for overloading?

旧街凉风 提交于 2019-11-27 10:49:35
问题 Is polymorphism another term for overloading? 回答1: 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

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

半城伤御伤魂 提交于 2019-11-27 10:32:57
问题 Closed . This question is opinion-based. It is not currently accepting answers. Want to improve this question? Update the question so it can be answered with facts and citations by editing this post. Closed 6 years ago . I wonder what would be a good definition of term "over-engineering" as applied to software development. The expression seems to be used a lot during software design discussions often in conjunction with "excessive future-proofing" and it would be nice to nail down a more

What exactly is the difference between “pass by reference” in C and in C++?

一笑奈何 提交于 2019-11-27 10:32:20
The phrase "pass by reference" is used by C and C++ developers alike but they appear to be used to mean different things. What exactly is the difference between this equivocal phrase in each language? Joseph Mansfield There are questions that already deal with the difference between passing by reference and passing by value . In essence, passing an argument by value to a function means that the function will have its own copy of the argument - its value is copied. Modifying that copy will not modify the original object. However, when passing by reference, the parameter inside the function

What's the difference between a Resource, URI, URL, Path and File in Java?

被刻印的时光 ゝ 提交于 2019-11-27 10:19:00
I'm looking at a piece of Java code right now, and it takes a path as a String and gets its URL using URL resource = ClassLoader.getSystemClassLoader().getResource(pathAsString); , then calls String path = resource.getPath() and finally executes new File(path); . Oh, and there are also calls to URL url = resource.toURI(); and String file = resource.getFile() . I'm totally confused right now - mostly because of the terminology, I guess. Can someone please walk me through the differences, or provide a few links to Dummy-proof material? Especially URI to URL and Resource to File ? To me, it feels

The Difference Between Deprecated, Depreciated and Obsolete [closed]

笑着哭i 提交于 2019-11-27 10:15:34
There is a lot of confusion about this and I'd like to know, what exactly is the difference between depreciated , deprecated and obsolete , in a programming context, but also in general. I know I could just look at an online dictionary, and I have, even at many, but they don't all agree, or there are differences in what they say. So I decided to just ask here, considering I also want an answer in a programming context. If I understand right, deprecated means it shouldn't be used anymore, because it has been replaced by a better alternative, or just because it has been abandoned. Obsolete means

What do you call the entire first part of a URL?

泄露秘密 提交于 2019-11-27 10:15:33
问题 If I have a URL like: http://www.example.com:9090/test.html Then I know that www.example.com is the host name, but what do you call http://www.example.com:9090 ? Is there some kind of established name for that? 回答1: I don't know the name for when it has the scheme, but the hostname with the port is collectively known as the Authority . A nice explanation here. 回答2: It is called the origin . More generally speaking, here are the different parts of a URL, as per window.location. (So at least