N
N
neodekvat092015-08-28 09:26:28
Google
neodekvat09, 2015-08-28 09:26:28

What is the Go language, and where can it be hosted?

Hello, express your attitude to the 'Go' language from google, I'm asking this question, because somehow there were no holivars on it and you really don't know how people relate to this language.
And, is it worth learning as the first server language? And how to host it (on which hosting, for example (except for vps))?

Answer the question

In order to leave comments, you need to log in

5 answer(s)
A
Alexander Shpak, 2015-08-28
@neodekvat09

It always seemed to me that according to him, hollivars are just darkness. What is the last radio-t. I write small services with a web face for work. I do like it. Since childhood, I have been feeling unwell when looking at php, now I am happy to write in golang.

S
Sintanial, 2015-09-02
@Sintanial

Why does everyone say that go as a first language is not suitable?!
For me, it’s very suitable (of course, I can’t judge exactly, because I have already tried many languages ​​​​before it), BUT, there are many facts that make it worth starting with it.
1. It is very easy to learn, unlike the same js that everyone advises - but js is not the easiest language, at first of course yes, it is simple. But when you start using closures and prototypes, all beginners and not only begin to have problems and misunderstandings. I am generally silent about php and its mess with versions and standard either. Java is pure hell, you want to spit on it, especially from a huge amount of writing :).
2. A very large standard library, so at first there is no need to immerse yourself in npm, maven, composers of all sorts.
3. Yes, it is compiled, yes it is with static typing, but there are many advantages from this, you get used to working with types, there are fewer errors, the compiler immediately tells you that this is not possible and why + you work at a low level.
4. It has a very convenient OOP, different from the classic one :). There are no OOP frills that java is filled with, pluses, and to which php will come soon. Because of this "nastiness", the programmer drowns in abstraction instead of solving specific problems (he himself was like that, he sat for days thinking over the interactions of objects, any abstraction, inheritance, etc.), and go weaned from this. Everything is concise, short, and simple.
5. Go teaches you to write briefly, to divide the system into many small methods, structures. As a result, all this turns out to be flexible, and sooo readable :).
6. Excellent system for working with concurrency
In short, I personally encourage you to learn go.

K
Kirill, 2015-08-28
@kshvakov

And, is it worth learning as the first server language?

If you don't want it to be the last one - no)
In fact, Go is not very suitable as a language in which you can learn, Go is not really a language, it's an infrastructure
. If we talk about developing web / schedulers / converters etc ... then, over time, in Go it will be faster and easier for you than in scripting languages, the main thing here is to "get involved";)
Wherever you can run your binaries

O
Oleg Shevelev, 2015-08-29
@mantyr

You can host anywhere. But purely sharing hosting is not fully suitable.
1. on sharing hostings, it is almost never possible to open a port for incoming connections (you can’t start a web server in Golang anymore, more precisely, it will work, but it won’t open the port)
2. on sharing hostings, it is often impossible to call fork() create processes so that Golang does not crash spontaneously - you need to deliberately prohibit the fork () call in the code, look at the description of the runtime library
3. Golang can be launched on sharing hostings like any other binary, it is enough to have access via the console, the ability to run something via cron or allowed exec call and its analogues in PHP
On the other hand, the cost of an excellent VPS with a 22 GB SSD, a full-fledged processor core and 512 MB of RAM costs $ 5 in DigitalOcean ...
As a first language, it is worth looking at the school curriculum:
1. Turbo / Borland Pascal
2. C / C + +
3. Logo Worlds
4. Delphi
5. Nothing prevents Golang from being added to this list, it fits perfectly, because the main components are there.
Plus, learning to program is also algorithms and approaches, and not frameworks and hello world pages on the Internet ... So Yii, Drupal and other pleasures of the PHP world are clearly not the topic here.

P
Pryada, 2015-08-31
@Pryada

Started looking at Go after js.
Go is very brain-teasing. Strict typing really sets the brain. At the same time, it is simple and stable. Channels and goroutines do the magic. If you lack magic, learn Go.
An option, as a language for bydlokoding, so that tomorrow a slap-slap and in production for 3 kopecks will not work. Php is king and god here.
As a language to learn and then work in a good company for a good salary - great.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question