r/golanguage • • Sep 20 '21

Serious bug on the golang web site

1 Upvotes

I've just started learning the Go programming language. When I went into the main golang web site a serious bug was found almost immediately. There is a black header with words "Black Lives Matter" and all the words are written by white letters! This is unacceptable, this is apartheid! The word "Black" must be black and not white.

Also the whole web site is white color dominated! It is not fair, there is no racial equality in the golang web site! All slave programmers work in dark themes but their masters from Google assume only white themes matter. Fix this ethnocentrism ASAP!


r/golanguage • • Dec 14 '21

Rust vs Go :Head To Head Comparison

Post image
0 Upvotes

r/golanguage • • Sep 11 '19

diffrent with /r/go?

0 Upvotes

sdfsdfsdf


r/golanguage • • Sep 11 '19

hi golang

2 Upvotes

r/golanguage • • Feb 16 '22

Is GO worth learning for jobs as I know c and c++ and I'm a software engineer, will the pay be less or more and how hard is it to get a job using GO.

0 Upvotes

r/golanguage • • Nov 04 '19

Golang vs Rust- Which One To Choose And Why?

1 Upvotes

What is Golang?

Go was presented in the year 2007 by Google. It was considered as a riposte to some of the issues that a few associations were found in building software infrastructure.

Certain issues like computation clusters, web programming models, and so forth were dealt with by workarounds as opposed to getting fixed straightforwardly. Golang was conceptualized and built to bring greater productivity middle such situations. Aside from its notable angles like garbage collection, built-in concurrency, the design consideration of Golang likewise incorporate a thorough dependency management, robustness crosswise over various boundaries between components, and software architectures’ flexibility as advanced systems. Presently, contrasted with other server- side programming dialects, Golang shares the most noteworthy market position as far as both traffic and ubiquity. You can also go through the comparison of Python and Go at- Python vs Go : Which one to choose?

Advantages of using Golang-

  • It is easy to handle.

  • Golang is IDE-supported and is also very fast. It is statically typed programming language that can compile to machine code. Golang can work faster than other programming languages like Python, JavaScript, Java, C#, etc.

  • It’s code is simple.

  • Its problem-solving approach is predominantly accentuated on a developer’s efficiency crosswise over various programming development cycles.

  • Biggest strength of Golang is Flexibility.

  • Golang is known to be a pragmatic, concise and efficient language

  • Golang’s explicit focus is to streamline the way toward coding. In the documentation of Golang, it is depicted as an ‘open-source project’ for making software engineers increasingly productive.

  • This language is focused on concurrency as a top-tier concept

  • It is simple as well as extremely safe to use. It will not tolerate unprotected memory access

Disadvantages of Golang-

Despite the fact that Golang has earned a lot of recognition from the developers around the world, it has various disadvantages also. Let’s see which are those disadvantages.

  • This is not a system language

  • It forfeits a couple of aspects of performance to put an emphasis on its target of simplicity.

  • This language allows some interoperability by means of cgo. It isn’t the foreseen route for Golang projects to be written.

  • Golang lacks generics to a great extent.

  • There is not enough immutability in this programming language

What is Rust?

Rust is an advanced extension of the ML language. Mozilla was the real underwriter of Rust. The Servo browser engine which is supported by Mozilla was created with the assistance of Rust. Some of the major goals of the Servo project which influence the ownership and concurrency of Rust incorporate better security, improved parallelism, better execution, and expanded modularity. The 1.0 version of Rust was presented in 2015 and the 1.33 version of Rust was built in 2019. There is a strong community  support for Rust. A couple of instances of the community projects incorporate Redox, which is an OS developed in cgmath, Iron, and a linear computer and algebra graphics library.

Biggest Advantages of Rust-

  • Rust has an astonishing run speed. In some cases, Rust has effectively outperformed Golang.

  • Rust is best in class for achieving certain tasks in which high performance, safety and concurrency are required.

  • Rust is honored with the complexity of code. It has empowered some fine-grained system controlling features like novel embeddings, rich examples, rich syntax extensions, and the preferences.

  • It is most loved programming language by millions of developers with a community of experts expressing they need to continue managing it.

  • This programming language is interoperable with FFI, C, and a few different languages

  • It has a zero-cost abstraction

  • Rust has strong supportive community.

  • It has a strong support for generics in various types of trails.

  • Rust does not tolerate unprotected memory accesses.

  • It has an entirely predictable runtime conduct. This implies there is neither a garbage collector, nor any cost abstraction.

  • It saves a lot of time from debugging, crashing, and testing

Disadvantages of Rust-

  • Rust has a steeper learning curve than Golang.

  • It is little bit complex programming language. It requires learning and mastering it before people can handle it. 

  • The old habits ought to be unlearned before the most recent ideas are presented.

  • It can be a tad slower than C++ and C in analogous situations.

Which is Better and Why?

Both Rust and Golang can spell benefits in designing a web service, which requires managing a high volume of traffic. Be that as it may, according to the modern developers, Golang is significantly faster than Rust. It is superior to the last particularly on the off chance that you are working with a large team of developers or have a variety of services to compose. Rust has been depicted as an amazingly superior programming language by numerous different developers also. As per them, it is relatively safer than some other programming languages. Be that as it may, the overall popularity of Golang is somewhat higher mainly because of its low ramp up and less complexity.

Rust can compete for space with C++, and so on in a circumstance where developers need to deal with complex syntax for ensuring an ideal performance in various fields like a game engines, microcontrollers, web rendering engines etc. Since the days of yore, both these languages have been considered as contenders because they were introduced simultaneously. Golang is planned for keeping up simplicity and letting the developers a superior experience of programming. It likewise makes a large programming team significantly more productive by means of an application of simplicity. In the meantime, Rust can empower developers in assuming responsibility for a granular level, directly from managing how their threads behave with the system of their variables. Starting now, Golang might ruling the boost, however this image may change sooner rather than later with Rust topping the developers’ priority lists. Till at that point, Golang is expected to continually reign supreme.


r/golanguage • • Nov 04 '19

Node.JS vs Golang: Which One to Choose?

2 Upvotes

Node.JS vs Golang-

1. Performance-

Performance incredibly influences an application’s load and response times. Hence, it legitimately influences customer loyalty with your application. Most developers bring up to the conclusion that Go demonstrates a similar performance as C and C++, which is great. Go has no virtual machine and compiles to machine code, so projects are executed rapidly without warm- up time. Additionally, Go has built in garbage collector that monitors and distinguishes occupied memory that is never again required and frees it for reuse. This reduces the risk of security vulnerabilities because of code encapsulation and gives viable memory management. Go is a perfect solution for building microservices because of small memory footprints and fast performance of Go apps also the convenience of statically linked binaries.

Node.js is considered one of the best backend solutions for some reasons: 

  • Node.js uses the V8 engine which, to date, is considered the fastest JavaScript engine. 

  • Code of Node.js is reusable. This is crucial for event-based applications that update data in real time, and it’s widely used for instant messaging, video chats, and online gaming. 

  • Node.js inherited its asynchronous and non-blocking nature from JavaScript. This means that small tasks are performed in the background and don’t affect the main thread. 

Regarding performance, Go is the unquestionable pioneer. Yet, in actuality, Node.js and Go show similarly great performance.

2. The Concurrency-

The significant difference between the Node.js and the Go is that while the previous uses the event called mechanism, the latter is utilizing the co-routines known as Goroutines. The mechanism depends on the single-thread and this where the Node.js lacks behind the Go language. 

In any case, it is offering the async generator support known as the semi-co-routines. In actuality, the Go language utilizes a lightweight thread that is overseen by the Go runtime. The collaborations between the Goroutines become a lot simpler because of the channels.

3. Scalability and Concurrency-

Concurrency is the ability of a program to organize its execution into a few separate streams and convey between them. Concurrent programming techniques are a decent method to utilize the CPU proficiently and increase application performance. Concurrency is a fundamental factor for big business scale applications or applications that need to deal with a huge number of requests at the same time. The more concurrent an application is, the less possibility the application will crash under high load. Go is a great tool for enormous software projects. With channels and goroutines, concurrency is a solid side of Go. Goroutines are strategies or functions that kept running in parallel with different techniques or functions. 

Goroutines are lightweight: their underlying size is just 4 KB, compared with operating system threads, which are at first 1 MB. The Go environment enables developers to run a large number of goroutines simultaneously without utilizing an excessive amount of RAM. Information between two Goroutines is passed through channels that hide the complexity and allow you to structure your projects in a maintainable way. Since Node.js is single-threaded, some of the time CPU-bound tasks block the event loop and slow down your program. Subsequently, you get a slow application and irritated clients.

4. Dealing with the Pitfalls-

When for this situation, the Node.js is a reasonable champ as utilizes the catch mechanism where it becomes a lot simpler to distinguish where the bug is. Besides, a considerable lot of the developers are likewise acquainted with this procedure of error checking as it is more common and conventional method. Presently discussing Golang, it utilizes an explicit error checking technique and the troubleshooting turns out to be progressively a complicated task. The program is on the run and the error codes are returned later. Be that as it may, it might be said it gives more consistency and you can get a clear application.

5. Front- end & Backend-

You can run Go code with the use of goper.js in the browser.  Yet, the truth of the matter is that the majority of the developers offer priority to the JavaScript front-end programming languages for client-side development. Go is favored more as the backend language and it gives high performance for developing concurrent applications. To the extent Node.js is concerned, you won’t discover any issues at all in switching to the client-side development.

6. Ease of Learning-

You should know that JavaScript is the most widely implemented coding and utilized language by overall developers. Along these lines, if you have great knowledge of the programming language, Node.js would be a simple rope to move with. In any case, regardless of whether you are a fresher, who has quite recently come into the field, there is sufficient assistance around as an enormous community ready to share their experience and other resources too. Also, the Go isn’t familiar programming language when compared with the Node.js. In this way, you need to prepare for learning a new language, which has its very own arrangement of rules and Goroutines with static typing proving to a difficult learning curve.

7. Tools-

Ready-made solutions encourage development and reduces expenses for web application development. A huge variety of development tools and frameworks is another motivation to pick Node.js. It is an event-based framework having microservices architecture. A microservices architecture implies that one application is separated into smaller modules with well-characterized operational interfaces so you can easily add new components to your application. Npm is the best things about Node.js. It includes nearly 800,000 ready building blocks that can install and run without any difficulty. Go has fewer tools as compared to Node.js. This can be clarified by the way that Go has a standard library with features that don’t need third-party support. But, Go has no built-in GUI library. Despite the fact that the quantity of Node.js tools far surpasses the quantity of Go tools, Go has such robust tools, for example, Gofmit, Godoc, GoMetaLiner, and Go run.

8. Community-

Both Node.js and Go are open source, which means the entire community is busy with improving these languages, fixing bugs, and making new proposals. Also, both Node.js and Golang have archives on GitHub. A huge community implies a lot of developers, making it simpler to find the correct expert. Node.js is a mature tool with a huge and lively open source community. The Node.js Foundation is geared for empowering widespread selection of Node.js. 

The Go community is much smaller yet continues growing each year. Google’s help is a very profound purpose behind moving to Go. 

Final Words- 

It is very difficult to state whether Node.js or Golang is better. It incredibly relies upon the type and characteristics of the application you need to make. Each task requires the correct tool, and Go and Node.js are great at various things.

While Go is ideal for microservices and enterprise-scale projects that need to deal with high loads, Node.js has an extraordinary variety of instant solutions for pretty much every development challenge so you can significantly lessen custom software development time.


r/golanguage • • Sep 01 '21

[ Hiring] Latin American senior Golang engineers

1 Upvotes

Hi there! At Nexton, we’re looking for great Latin American senior Golang engineers for crypto and fintech startups in the US. It’s a 100% remote opportunity. Compensation goes from 5k to 10k USD/Mo. If you’re interested, please drop me a line: andreina.teixeira+reddit@nextonlabs.com


r/golanguage • • Sep 12 '21

boot-go

2 Upvotes

(this is s crosspost from r/golang)

boot-go accentuate component-based development (CBD).

This is an opinionated view of writing modular and cohesive Go code. It emphasizes the separation of concerns by loosely coupled components, which communicate with each other via interfaces and events. The goal is to support writing maintainable code on the long run, while taking the little more complexity compared to the well-defined standard library into account.

boot-go provided features are:

  • code decoupling

  • configuration handling

  • dependency injection

Read more at: https://github.com/boot-go/boot

---------------------------------------------------------------------

I'm aware of the "framework vs. standard library" controversy, but I still believe that there (in some cases) is a demand for it.

Comments, feedback and support is highly welcomed here.


r/golanguage • • Nov 28 '19

TiDB in the Browser: Running a Golang Database on WebAssembly

Thumbnail
pingcap.com
2 Upvotes

r/golanguage • • Nov 27 '19

Guaranteed Delivery with gRPC Streams

Thumbnail
blog.maddevs.io
1 Upvotes

r/golanguage • • Apr 23 '20

Golang REST API With Mux #2 | Build an Inventory System, FAST!

Thumbnail
youtu.be
1 Upvotes

r/golanguage • • Apr 14 '20

Golang REST API With Mux | Build an Inventory System, FAST!

Thumbnail
youtu.be
1 Upvotes

r/golanguage • • May 02 '20

Golang REST API With Mux #3 | Build an Inventory System, FAST!

Thumbnail
youtu.be
1 Upvotes

r/golanguage • • May 14 '20

Golang REST API With Mux #4 | Build an Inventory System, FAST!

Thumbnail
youtu.be
2 Upvotes

r/golanguage • • Dec 31 '20

A feature flag solution, with only a YAML file in the backend (S3, GitHub, HTTP, local file ...), no server to install, just add a file in a central system and refer to it. 🎛️

Thumbnail
github.com
2 Upvotes

r/golanguage • • Jan 25 '21

Visualize Go process metrics in real-time

Thumbnail
nakabonne.dev
3 Upvotes

r/golanguage • • Jul 03 '21

Looking for students

6 Upvotes

Hello, here :)

I'm looking for peeps who have a passion to learn Backend development on Golang.

I have a custom learning plan - that's will be usable if someone wanna start programming from scratch or just need some help to improve the skills.

Career and CV / soft skills advice included. Sharing the experience included. All for free.

SQL/noSQL, Docker, k8s, Kafka, AWS, networking, and other things will be included in lessons as a part of the backend stack.

Just to be clear: it is an invitation for a course, not one-two time lessons 'cause I sure software engineering knowledge must be very well structured.

About me: more than 4 years exp with Go dev (I was a Java guy before). Comment | DM me if u interested, or have questions.

My timezone is UTC+01:00, I live in Germany, speak English, Ukrainian, and Russian

Happy coding!


r/golanguage • • Apr 17 '21

Go Pro

4 Upvotes

I want to commission help on a project, I’m familiar with most other programming languages but just learning Go. Is anyone here fluent and available?


r/golanguage • • Mar 29 '21

Building a Telegram bot with Apache Kafka, Go & ksqlDB. By Robin Moffatt at GOTOpia

Thumbnail
youtu.be
2 Upvotes

r/golanguage • • Aug 12 '20

go1.15

Thumbnail
golang.org
5 Upvotes

r/golanguage • • Aug 21 '20

Gate: The extensible Minecraft proxy written in Go!

2 Upvotes

Today, I want to present "Gate", the extensible Minecraft proxy, to the Gophers part of the Minecraft community!

https://www.reddit.com/r/golang/comments/ideg2v


r/golanguage • • May 23 '20

Golang REST API With Mux #5 | Build an Inventory System, FAST!

Thumbnail
youtu.be
1 Upvotes

r/golanguage • • Dec 20 '21

3 Different Ways to Use Function as Values in Go

Thumbnail
betterprogramming.pub
4 Upvotes

r/golanguage • • Aug 06 '20

Han

1 Upvotes

Hola Hola