Author Topic: I hate to ask  (Read 4633 times)

0 Members and 5 Guests are viewing this topic.

Offline lucid

  • #Underground
  • Titan
  • **
  • Posts: 2683
  • Cookies: 243
  • psychonaut
    • View Profile
I hate to ask
« on: January 29, 2014, 04:37:52 am »
Ok, I really REALLY hate to do this, but yes, I am starting a thread asking for recommendations on which scripting language to learn. The debate is between Perl and Python. I've done all sorts of research on pros and cons of both, but I can't really decide. Here's some general info on what I want to do with it:

- Coding servers
- Coding back connect scripts
- Coding GUIs(eventually)
- Pretty much general networking stuff

Now, I have always been avoidant of Python because of a few reasons. One of those reasons is that everyone codes everything in it and all I ever see is Python scripts, and I'm sort of a hipster in that regard. I know that shouldn't matter, but it does. Another reason for avoiding Python is that I want to avoid getting stuck using Python for everything because it's easy, which seems to happen to a lot of people. Yet another is, well, syntactic whitespacing.

Perl, on the other hand, does indeed have some pretty ugly syntax, and sigils are defintely a thing to get used to. I've also jumped between many languages due to some SEVERE language ADD and I'm tired of it. I could be so much farther then I am if it weren't for that. So, one reason I find Python attractive is because it is simple and I want to get to coding useful applications sooner then later. Seems Python would be better then Perl in that regard.

I'm aware that it's mostly a matter of taste considering that they are both scripted languages and can mostly do the same things, but there are certainly differences. For example I hear that Python is better for coding GUIs. I hear Perl is better for *nix tasks. I hear Perl is better for web server-side stuff. I don't know which language would be better for networking related tasks, but I've heard Python would be better for this.

I can already guess that most people here will recommend Python because it is there favorite language and because it is easy to learn, but please try and be objective about this.

Oh and no, I will not appreciate anyone recommending Ruby instead of either of these. I'm having enough trouble with my indecisiveness as it is thank you.
« Last Edit: January 29, 2014, 05:56:40 am by lucid »
"Hacking is at least as much about ideas as about computers and technology. We use our skills to open doors that should never have been shut. We open these doors not only for our own benefit but for the benefit of others, too." - Brian the Hacker

Quote
15:04  @Phage : I'm bored of Python

Offline vezzy

  • Royal Highness
  • ****
  • Posts: 771
  • Cookies: 172
    • View Profile
Re: I hate to ask
« Reply #1 on: January 29, 2014, 05:13:47 am »
Try Ruby, if for no other reason, to stand out from the rest of EZ which basically churns out nothing but Python.
Quote from: Dippy hippy
Just brushing though. I will be semi active mainly came to find a HQ botnet, like THOR or just any p2p botnet

Spacecow

  • Guest
Re: I hate to ask
« Reply #2 on: January 29, 2014, 05:29:00 am »
Try Ruby, if for no other reason, to stand out from the rest of EZ which basically churns out nothing but Python.
Then you can fit in with the cool kids on github who churn out nothing but ruby and node. :P

Offline iTpHo3NiX

  • EZ's Pirate Captain
  • Administrator
  • Titan
  • *
  • Posts: 2920
  • Cookies: 328
    • View Profile
    • EvilZone
Re: I hate to ask
« Reply #3 on: January 29, 2014, 05:34:00 am »
I'd personally go with python but knowing me I'd get thru the hello world tutorial and be done with it like I did with c++ lmfao
[09:27] (+lenoch) iTpHo3NiX can even manipulate me to suck dick
[09:27] (+lenoch) oh no that's voluntary
[09:27] (+lenoch) sorry

Offline lucid

  • #Underground
  • Titan
  • **
  • Posts: 2683
  • Cookies: 243
  • psychonaut
    • View Profile
Re: I hate to ask
« Reply #4 on: January 29, 2014, 05:37:10 am »
Try Ruby, if for no other reason, to stand out from the rest of EZ which basically churns out nothing but Python.
-_-

I'm definitely going to pick either Perl or Python. Ruby doesn't interest me in the slightest for whatever reason.

Oh and no, I will not appreciate anyone recommending Ruby instead of either of these. I'm having enough trouble with my indecisiveness as it is.
I've seen quite a bit of applications regarding networking use Python. I've also seen quite a lot of back connect scripts and malicious things written in Perl. Perl seems to be used more for malware, which is what I'm really interested in.

EDIT: Ok maybe not malware(I know compiled is better for malware), but various utilities that are used for nothing good like back connect scripts. I've seen botnets and things of that nature as well written in Perl. However I don't see too much of this stuff in Python.

Would love some pro coder's opinions.
« Last Edit: January 29, 2014, 05:58:07 am by lucid »
"Hacking is at least as much about ideas as about computers and technology. We use our skills to open doors that should never have been shut. We open these doors not only for our own benefit but for the benefit of others, too." - Brian the Hacker

Quote
15:04  @Phage : I'm bored of Python

Offline RedBullAddicted

  • Moderator
  • Sir
  • *
  • Posts: 519
  • Cookies: 189
    • View Profile
Re: I hate to ask
« Reply #5 on: January 29, 2014, 07:09:17 am »
Hi Lucid :) I would recommend, well I think you know it.. lol. I am by far no expert but as you maybe know I am using nagios at work very excessively and I use a lot of snmp based checks with some custom plugins. The net-snmp implementation of perl and the performance it provides made me write some of it in perl. There are purposes for both languages. Sure I do use python more often because I can write my scripts faster with it. (because I am not really good with perl). It all depends on the task at hand. Its not bad to know a bit about both of the languages :)

Hope that helps at least a bit
Deep into that darkness peering, long I stood there, wondering, fearing, doubting, dreaming dreams no mortal ever dared to dream before. - Edgar Allan Poe

Offline Fur

  • Knight
  • **
  • Posts: 216
  • Cookies: 34
    • View Profile
Re: I hate to ask
« Reply #6 on: January 29, 2014, 08:01:24 am »
1) Learn the basics of both.
2) Use whichever one you're more comfortable with (or both).

That said, I personally use Perl. It's very flexible and powerful, but OOP support is shit (even with Moose it hurts) and isn't as simple as Python. Oh, and CPAN has about 120000 modules, so that's nice too.
« Last Edit: January 29, 2014, 08:01:51 am by Fur »

Offline lucid

  • #Underground
  • Titan
  • **
  • Posts: 2683
  • Cookies: 243
  • psychonaut
    • View Profile
Re: I hate to ask
« Reply #7 on: January 29, 2014, 08:25:59 am »
Oh, and CPAN has about 120000 modules, so that's nice too.
Indeed.

I guess my requirements in the first post could be fulfilled in either language.
« Last Edit: January 29, 2014, 08:26:47 am by lucid »
"Hacking is at least as much about ideas as about computers and technology. We use our skills to open doors that should never have been shut. We open these doors not only for our own benefit but for the benefit of others, too." - Brian the Hacker

Quote
15:04  @Phage : I'm bored of Python

Offline Kulverstukas

  • Administrator
  • Zeus
  • *
  • Posts: 6627
  • Cookies: 542
  • Fascist dictator
    • View Profile
    • My blog
Re: I hate to ask
« Reply #8 on: January 29, 2014, 09:03:15 am »
I dunno... just gonna refer you to this post: http://evilzone.org/ebooks/modern-perl/msg73951/#msg73951

Offline Phage

  • VIP
  • Overlord
  • *
  • Posts: 1280
  • Cookies: 120
    • View Profile
Re: I hate to ask
« Reply #9 on: January 29, 2014, 09:21:02 am »
I see Python used a lot of server side scripting and network tools (and many other). There's a reason to anything and I believe there's a reason why Python is much more popular than Perl these days. The main one probably being the syntax and the libraries in Python. I will agree though that Perl is more widely used for malecious activity than Python is. My personal believe is that it's like that because Python writes pretty code and is meant for creation and Perl writes ugly code and is meant for destruction :P (personal opinion).

But well, a long way of the road it's all about personal matter. Pick the language you feel best programming in and stay with that. They are pretty similar in what they are used for, even though, afaik, Python is more widely used for server side programming/network programming/management scripts than Perl is.
"Ruby devs do, in fact, get all the girls. No girl wants a python, but EVERY girl wants rubies" - connection

"It always takes longer than you expect, even when you take into account Hofstadter’s Law."

Offline vezzy

  • Royal Highness
  • ****
  • Posts: 771
  • Cookies: 172
    • View Profile
Re: I hate to ask
« Reply #10 on: January 29, 2014, 05:14:56 pm »
Actually, Perl has always been the go to language for server-side, network and system administration and CGI scripting. Python is dominating, but Perl is still deeply ingrained.

The reason I recommended Ruby is because it's kind of a middle ground between Perl, Lisp and Smalltalk. It used to be that hipsters on HN used it, but most of them are now migrating to languages like Go. Ruby is pretty mature by now.
Quote from: Dippy hippy
Just brushing though. I will be semi active mainly came to find a HQ botnet, like THOR or just any p2p botnet

Offline lucid

  • #Underground
  • Titan
  • **
  • Posts: 2683
  • Cookies: 243
  • psychonaut
    • View Profile
Re: I hate to ask
« Reply #11 on: January 29, 2014, 06:02:16 pm »
I dunno... just gonna refer you to this post: http://evilzone.org/ebooks/modern-perl/msg73951/#msg73951
I love that. I knew it was only a matter of time before someone posted that. Thanks for the input everyone. I've decided I'm going to try each for a week(even though I've had a tiny bit of experience with both in the past already) and decide that way.

Please though, don't consider this thread to have served it's purpose. I'd still love more input.

EDIT: Where the hell is Deque?
« Last Edit: January 29, 2014, 06:04:37 pm by lucid »
"Hacking is at least as much about ideas as about computers and technology. We use our skills to open doors that should never have been shut. We open these doors not only for our own benefit but for the benefit of others, too." - Brian the Hacker

Quote
15:04  @Phage : I'm bored of Python

Offline Kulverstukas

  • Administrator
  • Zeus
  • *
  • Posts: 6627
  • Cookies: 542
  • Fascist dictator
    • View Profile
    • My blog
Re: I hate to ask
« Reply #12 on: January 29, 2014, 06:25:00 pm »
EDIT: Where the hell is Deque?
She's coding a robotic arm to feed her baby.

Offline flowjob

  • Knight
  • **
  • Posts: 327
  • Cookies: 46
  • Pastafarian
    • View Profile
Re: I hate to ask
« Reply #13 on: January 29, 2014, 07:29:37 pm »
I'd recommend python, as you can use it for a lot of different things pretty well.
Python itself can be used as object-oriented, imperative and functional language, depending on the needs. A small script might be coded in imperative, a large project in object-oriented style.
Well-known things coded in python:
 - Blender, 3D art and animation program
 - Various bittorrent clients
 - Dropbox client
 - Battlefield 2, plugins and a lot of other stuff
 - Civilization IV


Python can be used for pretty much everything you need to do, but as always with things that can do a lot of stuff, it may not be the best at certain things. It isn't really suited to code malware in it for example, for hardware-related and low-level stuff you'll need to write your own module in C wich can be used in python later on.
Also there's almost always a python interpreter on linux or os x.
Also there's an implementation in java called jython, wich allows you to import any java code into your python script. Modules written in C aren't well supported by jython yet though. But as a jre is installed on most windows computers, jython is useful when developing for windows. There isn't really a good way to compile python scripts to native code, so you always depend on an interpreter on the maschine the script is run on.


Finally,it is easy to learn the basics, but a lot of more complexe stuff can be done with some more experience too.

Quote
<phil> I'm gonna DDOS the washing machine with clothes packets.
<deviant_sheep> dont use too much soap or youll cause a bubble overflow

Offline lucid

  • #Underground
  • Titan
  • **
  • Posts: 2683
  • Cookies: 243
  • psychonaut
    • View Profile
Re: I hate to ask
« Reply #14 on: January 29, 2014, 08:19:53 pm »
Thanks for your explanation. Will take it into consideration.
The reason I recommended Ruby is because it's kind of a middle ground between Perl, Lisp and Smalltalk. It used to be that hipsters on HN used it, but most of them are now migrating to languages like Go. Ruby is pretty mature by now.
I hadn't realized this thanks.
"Hacking is at least as much about ideas as about computers and technology. We use our skills to open doors that should never have been shut. We open these doors not only for our own benefit but for the benefit of others, too." - Brian the Hacker

Quote
15:04  @Phage : I'm bored of Python