Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.programming > #6976
| From | David Brown <david.brown@hesbynett.no> |
|---|---|
| Newsgroups | comp.programming |
| Subject | Re: Perl or C++ better |
| Date | 2016-10-17 22:50 +0200 |
| Organization | A noiseless patient Spider |
| Message-ID | <nu3dik$e8f$1@dont-email.me> (permalink) |
| References | <ntu6p5$uig$1@dont-email.me> <nu254e$lsv$1@dont-email.me> <nu2q1m$2np$1@dont-email.me> <nu2qn9$4e8$2@dont-email.me> <nu2v0d$m0s$1@dont-email.me> |
On 17/10/16 18:42, Bill Cunningham wrote: > "David Brown" <david.brown@hesbynett.no> wrote in message > news:nu2qn9$4e8$2@dont-email.me... >> On 17/10/16 17:17, Bill Cunningham wrote: >>> "David Brown" <david.brown@hesbynett.no> wrote in message >>> news:nu254e$lsv$1@dont-email.me... >>> >>> ... >>>> Try Python. It will be simpler and clearer than C, C++ or Perl, and far >>>> more flexible than Bash. Since it is interactive and interpreted, it >>>> can easily be used in a "trial and error" style that lets you see what >>>> is happening (and what is going wrong). >>> >>> Would it be good for scripts? >>> >> >> Yes. >> >> Python is used for scripts, and for big applications. It is a very >> flexible and popular language. Personally, I use it for most of my PC >> and server programming, with C mainly for embedded systems. >> > > OK I see theres a 3.5.2 and a 2.x.x version. Or version 2. Should I go > ahead and look at 3? THis would be better than Java too then right? > You might as well start with Python 3, since you are new to it. But be aware that there is a lot of code around (and tutorials, books, etc.) that is Python 2. For most purposes, Python 2 and 3 are compatible but there are a few key points. In particular, "print" in Python 2 is a special statement - you can write "print 1 + 2". In Python 3, "print" is a function - you write "print(1 + 2)". Conveniently, the second form works fine in both versions. IMHO, Python is "better" than Java for many uses - including your usage. But "better" depends on what you are doing with the language. Still, my advice stands - of all the languages I am familiar with, Python seems to me the best for you to learn here.
Back to comp.programming | Previous | Next — Previous in thread | Find similar | Unroll thread
Perl or C++ better "Bill Cunningham" <nospam@nspam.invalid> - 2016-10-15 17:24 -0400
Re: Perl or C++ better David Brown <david.brown@hesbynett.no> - 2016-10-17 11:20 +0200
Re: Perl or C++ better "Bill Cunningham" <nospam@nspam.invalid> - 2016-10-17 11:17 -0400
Re: Perl or C++ better David Brown <david.brown@hesbynett.no> - 2016-10-17 17:29 +0200
Re: Perl or C++ better "Bill Cunningham" <nospam@nspam.invalid> - 2016-10-17 12:42 -0400
Re: Perl or C++ better David Brown <david.brown@hesbynett.no> - 2016-10-17 22:50 +0200
csiph-web