A
A
Alexander2014-01-06 03:41:57
Programming languages
Alexander, 2014-01-06 03:41:57

Which programming language to choose to learn with a minimum entry threshold for writing a TCP server?

Gentlemen, I am not a programmer in the truest sense of the word, I consider myself to be an amateur. I know a little php, which I use not only in web programming, but also in UNIX server administration scripts. Somehow it happened ...
Now the task is to write a TCP server, which requires approximately the following functionality:
1. Working with the file system (creating, deleting files and directories)
2. Working with the database (mysql)
3. Performing telnet requests
Finally, the code must be compiled to run under UNIX and listen for client connections on specific ports.
Not a holivar for the sake of which language is better, but there are a lot of them that make your eyes run wide, but still.
For example, from what Google gave out, some people do not recommend learning C ++ if you are not going to write applications at the driver level and so on. There were recommendations to look towards Haskell. Heard about languages ​​like python and ruby. Perl and Bash do not compile, we do not consider them. I don’t have anything personal against Java, but in my entire life, everything I saw on it was very slow, or I was so lucky with iron, I don’t know.
Please share your experience and advice. If possible, then briefly why this language, what is the plus in your opinion. Thanks in advance!

Answer the question

In order to leave comments, you need to log in

5 answer(s)
Y
Yuri Yarosh, 2014-01-06
@savio

Take python, Gevent, Flask with sqlalchemy and don't bother.
You need to use the latest PyPy for gevent, otherwise there are no special nuances.
PS Don't forget about MVC and user input filtering.

I
Ilya Evseev, 2014-01-06
@IlyaEvseev

python and ruby. Perl and Bash do not compile, we do not consider them.

Not considering interpreted languages ​​for solving this problem is mistake number one.
At least for Perl there are compilers in C and in bytecode - these are two.
Python and Ruby, as well as Pearl, are bytecode interpretable - that's three.
What you have listed in any of the popular languages ​​(Perl, Python, PHP, Ruby) is written in one or two days.

A
afiskon, 2014-01-06
@afiskon

Try Perl or Python

K
KEKSOV, 2014-01-06
@KEKSOV

Why a socket server? There are a large number of ready-made libraries, both for writing a server and for writing clients. Describe your task in a little more detail - what are the clients? What does "Performing telnet requests" mean?
If not for the sake of holivar, then FreePascal + INet is very suitable for you

A
Alexander, 2014-01-09
@savio

Thank you all, I will learn Python

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question