I am a professional PHP developer and want to learn another language. GO or Python for later transfer. Which one is more suitable?
Reply content:
I have answered this before, and it is recommended to learn GO. Python and PHP are also dynamic languages, and there are many overlaps. The GO language is a static language, and the programming experience is completely different from PHP. The learning process can allow you to achieve greater improvement, and the Go language can also complement the advantages of PHP and combine dynamic and static.
Many foreign masters recommend Python as the language for entry into programming, and Python itself has a wide range of commercial applications. When it is necessary to complete some fragmented tasks, this widely popular scripting language is the best choice.
But when it comes to future career prospects, transitioning from PHP, if you develop websites, at least domestic PHP employment prospects are better. In addition to PHP's thousands of templates and frameworks, there are also various cloud service providers whose support for PHP is more reliable than other languages and the price is relatively low.
If you are developing a game server or something else, I think it might be better to switch from PHP to C/C++ and then to something else. The Go language is a strongly typed language that is closer to the underlying language and has higher basic requirements for data control. It may be easier to get started with C/C++ first. There is countless information on C/C++, while the Go language is relatively less. For example, if you encounter the same topic and search in the direction of Go language, you may get nothing, but there is a lot of detailed and professional information on C/C++.
It is recommended to learn Go. It is much newer than Python. The design is simple and clean, there are few historical problems, and the standard library is of high quality. Many important open source projects have emerged in the past few years. It will be very comfortable to use it as a language to learn after work.
Switch to JS, you will find that you will never finish learning, so you don’t have to worry about what to learn in the future.
Use golang for interface development and python for data analysis.
I also use PHP and am currently learning C and C++, which is pretty good.
I also develop in PHP and have encountered this problem. I finally chose JS and developed from back-end to full stack.
You can take a look at F#. (Haxe was developed with Ocaml, and Rust was also first developed with OCaml, and F# is Microsoft’s upgraded version of OCaml, which can seamlessly call C# and other .net resources (this is similar to Scala, which is a functional upgraded version of Java). Given that. net core can support Windows/Linux/Mac, so the future is good.)
F# can complete a variety of tasks quickly and correctly using simplified statements. Its generic and functional development results in much higher development efficiency than Golang. The execution efficiency depends on the situation (it is estimated that C/C++/Rust cannot be compared, and others should be worry-free). You can easily import projects to cloud environments such as Azure/Heroku, and you can also directly handle Azure storage through F#.
But I need to be better at English because there are few Chinese materials. It would be best to be able to circumvent the firewall and get more information.
Resources:
F# Software Foundation
Official website
http://www.tryfsharp.org/ Get started
Home | F# for fun and profit
A very good learning website about F#, a Made by someone named Scott (not me)
Suave.IO
A lightweight web framework, 2.0 supports http2.0
WebSharper
A heavyweight web solution, all front-end and back-end are written in F#, you can Supports direct compilation to JS
F# |> BABEL - The compiler that emits JavaScript you can be proud of!
Another good library that compiles to JS, which is quite popular recently.
Excel-DNA - Home
Excell Add in by F# (Fcell is better, but it costs a fee)
FsLab - Data science and machine learning with F#
Big data
Welcome to Akka.NET
F# akka
F# Videos and Posts
Channel 9 F# Videos
F# Videos | Page 1
Other F# Videos
https://www.youtube.com/channel/UC4fWHxNVIxMFYIoLHS4RqSA Youtube F# TV Video
To mas Petricek
Excellent
Phillip Trelford's Array
Excellent
books can refer to Beginning F# 4.0 and Expert F# 4.0
etc.
Go is very good, but I don’t recommend you learn it. It is mainly used for system programming, which is quite different from your current field. It’s easy to change languages, but after a few years of experience, the losses will be greater when changing fields.
learn English well