Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!news.mixmin.net!news.albasani.net!.POSTED!not-for-mail From: BGB Newsgroups: comp.lang.java.programmer Subject: Re: How to develop without an IDE? Date: Sun, 29 Apr 2012 22:48:45 -0700 Organization: albasani.net Lines: 65 Message-ID: References: <4f94338d$0$295$14726298@news.sunsite.dk> <4f94765c$0$284$14726298@news.sunsite.dk> <4f949830$0$295$14726298@news.sunsite.dk> <4f9cb523$0$293$14726298@news.sunsite.dk> <4f9d8965$0$288$14726298@news.sunsite.dk> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Trace: news.albasani.net F3NEgKjPLGy6wN6j1UtBjjw4OZv0K3nZGPxy1bslvXmLAaKU1161L69aKDxx6IjAeosVMA/3ZXcpC2Q+jbB/dQ== NNTP-Posting-Date: Mon, 30 Apr 2012 05:50:48 +0000 (UTC) Injection-Info: news.albasani.net; logging-data="My6HwQWnOmzyvQW0j4qnMiniACNbCyK/7O7n0LkhKYwG5TLmDxUQazrwDiL69myeHzz8bwyScHbInqJU8Tk9i7SQQiNYjwE1pjgar5IeGy6CG2WszSQYK0F9QuClwl6m"; mail-complaints-to="abuse@albasani.net" User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:11.0) Gecko/20120327 Thunderbird/11.0.1 In-Reply-To: <4f9d8965$0$288$14726298@news.sunsite.dk> Cancel-Lock: sha1:5Ms4oTvo9QDHJglrkccgrC2xioI= Xref: csiph.com comp.lang.java.programmer:14048 On 4/29/2012 11:33 AM, Arne Vajhøj wrote: > On 4/29/2012 2:16 PM, BGB wrote: >> On 4/28/2012 8:27 PM, Arne Vajhøj wrote: >>> And let me quote something from the link you gave: >>> >>> >>> This is primarily due to the way the import directive works. Similar to >>> a #include in C, this directive is used to allow access to externally >>> defined symbols. >>> >>> >>> Java import is not similar to C include. >>> >>> And neither are used specifically to allow access to symbols. >>> >> >> I think it may depend some on "how does it look from afar?". >> >> the casual observer may not much think or care much about the >> differences between, say, "inlining big globs of text" and "gaining >> visibility into packages filled with classes" or similar. >> >> they may instead think "using this directive allows me to use the >> library", while paying little attention to the hows or whys. >> >> so, to them, "X looks like Y" may be more important than "X is Y" or "X > >> this seems to be more the type of people the quoted paragraph was >> intended for (vague wording more intended to give the basic idea than to >> be strictly accurate). > > It can be fine to come with an approximate correct explanation > if it is simpler to understand. > > But it is not good to come with a completely false explanation > just because it is simple. > > Java import and C include is not similar at any distance. > well, both are used to make use of a library, even if what they do and how they work is considerably different. both also have a word starting with the same letter and appear near the top of a source file, and are vaguely similar looking, also sort of making them "similar". I also did once see a person try to do something like (in C++): #include and then respond in their defense that "C++ and Java were basically the same thing"... (nevermind if they are not...). > Try ask a C++ programmer if he thinks that include and using > are similar! > well, there is an important difference here: you can't use 'using' to see a namespace which hasn't already been included, and also 'using' is typically used differently as well. so, it is more like comparing C / C++ #include and C# using.