Path: csiph.com!usenet.pasdenom.info!aioe.org!.POSTED!not-for-mail From: =?UTF-8?Q?Arne_Vajh=c3=b8j?= Newsgroups: comp.lang.java.programmer Subject: Re: Recommendation for a good Android programming book? Date: Mon, 27 Jul 2015 22:22:22 -0400 Organization: Aioe.org NNTP Server Lines: 57 Message-ID: References: <54d7e90b-302b-45ef-8f55-22eb38e8c60d@googlegroups.com> <7c1d9qow7tvt.1hllzvzp9zig2.dlg@40tude.net> <556fa92c$0$295$14726298@news.sunsite.dk> <5573bfa2$0$302$14726298@news.sunsite.dk> <4f7c6df1-f3cb-4087-a170-97acf40dd9a5@googlegroups.com> <5590a27b$0$301$14726298@news.sunsite.dk> <55912d99$0$300$14726298@news.sunsite.dk> <559189a1$0$301$14726298@news.sunsite.dk> <55918bea$0$304$14726298@news.sunsite.dk> NNTP-Posting-Host: bLmKSxgyEsD8qtT7wjgUDQ.user.speranza.aioe.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit X-Complaints-To: abuse@aioe.org User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:38.0) Gecko/20100101 Thunderbird/38.1.0 X-Notice: Filtered by postfilter v. 0.8.2 Xref: csiph.com comp.lang.java.programmer:32171 On 6/29/2015 5:00 PM, Martin Gregorie wrote: > On Mon, 29 Jun 2015 14:18:15 -0400, Arne Vajhøj wrote: >> On 6/29/2015 2:08 PM, Arne Vajhøj wrote: >>> On 6/29/2015 11:01 AM, Martin Gregorie wrote: >>>> On Mon, 29 Jun 2015 07:35:50 -0400, Arne Vajhøj wrote: >>>>> I have never seen anything for awk nor can I google anything. >>>>> >>>> Strange, since its a standard file manipulation scripting tool for >>>> UNIX/ >>>> Linux but I notice that its supported by SlickEdit. >>> >>> I think AWK is a bit too old fashioned for the Eclipse crowd. >>> >>> I believe Python would be used for some of that work. >>> >>> Sure - it is not as specialized. >>> >>> But I know a lot of scripting guys that have switched to Python for the >>> majority of their work. >> >> Public example: >> >> http://fylz.com/awk-or-python >> > Interesting, and fair comment in its comparison of C and Python, except > for one point: if you're parsing a file (could be a configuration file) > and want to find and report each error in it by giving a line number and > error text, I don't think that exceptions help a lot with simplifying the > error handling code, though of course, if you're allowed to stop after > the first error that using a try..catch structure makes life a lot easier. > > However, I thought his comparison of Awk and Python missed the point > quite badly in that much of the power of Awk is provided by not having to > bother about reading the file, splitting it into words, worrying about > writing code that does the same as 'next' or 'nextfile' verbs. IIRC > you'd also have to add code to handle line selection in Python to handle > the selection logic implied in awk by simply writing a > > /regex/ { action } > > pair. The same can be said about RPG3 (shudder) or any number of 4GL > report generators. > > I don't particularly dislike Python: IMO its preferable to Perl, but if > you're ripping a log or other sequential text file apart, I think awk > beats both of those hands down. And, when it comes to OO programming, I > much prefer Java to Python I believe you that it may not be a perfect technical fit. But it seems to be a common choice. And actual popularity of tools do have an impact no matter how well founded or not the popularity is. Arne