Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!eternal-september.org!feeder.eternal-september.org!mx04.eternal-september.org!.POSTED!not-for-mail From: markspace <-@.> Newsgroups: comp.lang.java.programmer Subject: Re: I need a different approach - suggestions please Date: Tue, 26 Jun 2012 14:10:32 -0700 Organization: A noiseless patient Spider Lines: 23 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Injection-Date: Tue, 26 Jun 2012 21:10:35 +0000 (UTC) Injection-Info: mx04.eternal-september.org; posting-host="IZQsHU8CwMUPnWgvh4wwWA"; logging-data="12164"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/zRlfRHsj1XOm1csC7NmWHClVrVGHWvCI=" User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:13.0) Gecko/20120614 Thunderbird/13.0.1 In-Reply-To: Cancel-Lock: sha1:vK1T1PUXcJSAuJRzACNhQQw1CTo= Xref: csiph.com comp.lang.java.programmer:15614 On 6/26/2012 1:24 PM, bilsch wrote: > > Many things are because I mimic what I see in other programs... I > hope I can finish this project without understanding threads Yeah, that's an issue. When teaching someone, is it better to let them do it the simplest, but wrong, way? Or should you teach them to write code they don't understand, but promise too "explain it later?" I'm actually in the latter camp at the moment. I'd rather see you copy and paste good code, than let you get into the habit of writing bad code that you feel you understand. It a style of learning thing, more than a programming thing, but I think it's better to get you into the habit of looking at correct code now, so it doesn't seem strange when you see the correct version later. OTOH, it's not going to adversely effect your small programs. The chance of you hitting a threading error in such a small program is virtually nil. Just be aware that: 1. the code really is wrong, and 2. you'll have to learn threads eventually.