Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!us.feeder.erje.net!feeder.erje.net!eu.feeder.erje.net!news-1.dfn.de!news.dfn.de!fu-berlin.de!uni-berlin.de!news.dfncis.de!not-for-mail From: =?ISO-8859-1?Q?Sven_K=F6hler?= Newsgroups: comp.lang.java.programmer Subject: Re: lectures about "programming methodology" Date: Tue, 07 May 2013 13:45:14 +0300 Lines: 21 Message-ID: References: <51885ce2$0$32110$14726298@news.sunsite.dk> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit X-Trace: news.dfncis.de us7/X31PLzL+kwzk8tE1QgBMShRZWotSk24PoLMTj6uv/hQ/DLOnlYGEWB Cancel-Lock: sha1:Ilb+79mF0hdI4LaOCUB007vaZu8= User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130404 Thunderbird/17.0.5 In-Reply-To: <51885ce2$0$32110$14726298@news.sunsite.dk> Xref: csiph.com comp.lang.java.programmer:23884 On 05/07/2013 04:46 AM, Arne Vajhøj wrote: > I really don't see that as software engineering. I assume, Stefan is worried that these ideas could stick - regardless of whether you consider that software engineering or not. Let "lifetime of a variable" be an attempt, to describe scope "in layman's terms". However, it gives the students the wrong idea - especially because there is an actual lifetime of a variable and it is not identical with the scope. Later on in the lecture, when students will have to understand object orientation, this wrong idea might make it difficult for the students to understand important things. BTW: It is also possible to defend his description of the scope, namely if you limit it to local variables only (Stefan's counter example was a field). However, I don't know the lecture. It might be the case, that fields haven't even been introduced. Regards, Sven