From owner-freebsd-questions@freebsd.org Fri Jul 1 15:07:48 2016 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id D4259B8EF0B for ; Fri, 1 Jul 2016 15:07:48 +0000 (UTC) (envelope-from wblock@wonkity.com) Received: from wonkity.com (wonkity.com [67.158.26.137]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "wonkity.com", Issuer "wonkity.com" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 88F842F53 for ; Fri, 1 Jul 2016 15:07:48 +0000 (UTC) (envelope-from wblock@wonkity.com) Received: from wonkity.com (localhost [127.0.0.1]) by wonkity.com (8.15.2/8.15.2) with ESMTPS id u61F7Zmj072652 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Fri, 1 Jul 2016 09:07:35 -0600 (MDT) (envelope-from wblock@wonkity.com) Received: from localhost (wblock@localhost) by wonkity.com (8.15.2/8.15.2/Submit) with ESMTP id u61F7ZFE072649; Fri, 1 Jul 2016 09:07:35 -0600 (MDT) (envelope-from wblock@wonkity.com) Date: Fri, 1 Jul 2016 09:07:35 -0600 (MDT) From: Warren Block To: Allen cc: freebsd-questions@freebsd.org Subject: Re: "Simple" Languages in FreeBSD In-Reply-To: <20160630175243.063e07a7@KoggyBSD.org> Message-ID: References: <20160630175243.063e07a7@KoggyBSD.org> User-Agent: Alpine 2.20 (BSF 67 2015-01-07) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.4.3 (wonkity.com [127.0.0.1]); Fri, 01 Jul 2016 09:07:35 -0600 (MDT) X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 01 Jul 2016 15:07:48 -0000 On Thu, 30 Jun 2016, Allen wrote: > Hi, > > I've been using FreeBSD on and off since 4.0-CURRENT, which seems like > almost a lifetime ago now, heh. I'm currently using FreeBSD > 10.0-RELEASE and even though I've gotten my latest order from the > FreeBSD Mall (Which I bought 10.3-RELEASE on DVD along with a bunch of > other stuff for myself and my Wife) I'm not ready to upgrade yet since > I've gotten my system working how I like (Got WindowMaker set up, and > FVWM2, and some other stuff set up) so I'm using it for now. > > Anyway, in all these years that have passed using FreeBSD and a bunch > of Linux distros, I never had time or patience enough to learn > Programming Languages, and I'm getting more and more to the part where > I'm thinking it's a good idea more so now than before. > > I have the book "Learning Perl" that I bought a while back, and I've > also downloaded a bunch of stuff for Perl, Python, Ruby, and others, so > I'm just curious on basically what Languages anyone here would > recommend. Practically speaking, it's worth knowing the basics of all three. Perl is a mishmash of a lot of different things, so it's not particularly consistent. But it is very expressive. Ruby is kind of like a nicer, cleaner Perl. They got rid of the sigils at the start of variable names, which to me is the ugliest part of Perl. Ruby has other interesting features, like nearly everything being an object. However, it has seemed to stagnate a little over the last few years. Python is the mainstream "scripting" language of choice. It has good features and is widely used. It leans toward the strict side of languages ("there should be only one way to do things") and that appeals to a lot of traditional programmers. As a background, it is worth knowing sh. However, sh is extremely weak compared to any of these. Doing anything nontrivial (that is, anything) takes a lot of code. Still, a lot of constructs in other languages descend from it or at least make a little more sense in light of it.