Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Search - "golang"
-
I'm learning golang currently. I 'designed' a mug to keep myself motivated. Turned out pretty good.12
-
The golang mascot perfectly embodies the language. It's quirky and weird, but in the end it does it's job5
-
So I was studying for a test using a quizlet my social studies teacher made, and I came across this gem. 99% sure my social studies teacher didn't read what it said/understand what it means.9
-
Google I/O: And now web add a new language to Android...
Me: Golang, golang, golang...
I/O: Kotlin!!!!!!!
Me: What?????? Another language?!?!12 -
Hi guys! My name is Karina, I am a graphic designer from Ukraine. I want to show you my work about gopher) My husband is a golang developer and my little hobby of making him T-shirts with gophers has grown into the fact that I now draw them. Do you like my work?18
-
Can't concentrate when this guy constantly keeps a check on the page number (progress) I have reached while learning GO. 😂5
-
0. Get a raise
1. Nove out
2. Learn GoLang
3. Have a threesome
4. More weed
5. Build a blockchain project6 -
Hi, rant. I've just finished one of my hobby work. :D
Just another O'RLY book cover generator, written in Golang/Vue, supporting more glyph like CJK.
You may try it on https://rly.nanmu.me/
Source code is available via MIT license on https://github.com/nanmu42/orly
Cheers. :)10 -
Recruiter: What is Go?
Me: It's a newish programming language developed by some really cool guys at Google with C-like syntax and great concurrency support.
Recruiter: So it's like Google's version of RESTful?
Me: Umm…8 -
Simple but tasty dish.
It’s just scrambled eggs, Indian style.
Oh btw did I say? This is the first dish that I learnt and my favourite goto if I get stuck with golang And graphql.
Guys.
Please do try this combination.
Go + GraphQL + Neo4j9 -
working on two projects.
at the same time.
for 2 different companies
2 completely different scenarios
2 completely different languages
nodejs and golang19 -
By heavens creating your own api server with the Go standard lib is so easy it should be fucking criminal.
Now....on to add authentication and a nice frontend stack(prob React) to make it all spiffy and show it to my manager and see if she lets me put this shit to use at work.
It will make it more interesting. It took me nearly 1 hour to get what I needed from the docs, build it using the net package first(das right babe, pure TCP) and just a couple of minutes more for net/http and boom. Ferching info and shit left and right
Man I love this shit. Wish I could do this for a living. Stuck fucking around with css, Java and php at work instead ;____;10 -
So, I was gonna rant about how it can be difficult to design event-based Microservices.
I was gonna say some shit about gateways APIs and some other stuff about data aggregation and keeping things idempotent.
I was going to do all this but then as I was stretching out the old ranting fingers I decided to draw a diagram to maybe go along with the rant.
Now I’m not here to really rant about all that Jazz...
I’m here to give you all a first class opportunity to tear apart my architecture!
A few things to note:
Using a gateway API (Kong) to separate the mobile from the desktop.
This traffic is directed through to an in intermediate API. This way the same microservices can provide different data, and even functionality for each device.
Most Microservices currently built in golang.
All services are event based, and all data is built on-the-fly by events generated and handled by each Microservices.
RabbitMQ used as a message broker.
And finally, it is hosted in Google Cloud Platform.
The currently hosted form is built with Microservices but this will be the update version of things.
So, feel free to rip it apart or add anything you think should change.
Also, feel free to tell me to fuck right off if that’s your cup of tea as well.
Peace ✌🏼19 -
Trying to learn some golang after a break.
Made http / https transparent proxy for personal project.
Mind: You need to add configuration file with domains you allow traffic and block everything else using list of regex.
Me: Ok I can do it, 4 hours later ok done
Mind: Why not make it differently by making list of url you can block and test this shit on fucking ads and stop using adblock that downloads content.
Me: ok that will be handy I can watch websites faster and drop traffic I don’t want to.
Funny fact, it works I broke analytics, logging, quantum shit fucks and even youtube plays ok.
Go is awesome for networking stuff lol.12 -
Well shit.
Language features-wise Rust has a great edge over its main competitor(which seems to be Golang even though they can't really be competitors)
Rust has a better package manager with Cargo.
It also has better documentation. It also has
Wait for it...
....
A better website and a non retarded looking mascot.
TEE HEEEE9 -
Obviously this year. I went from KDE Neon (bloat ree) to Arch, learnt Git, Golang, vim, some JS, did my first major public project (asl), learnt how to package python stuff, did my first collab (private repo with a friend), did my first public collab (animator), made 225 contributions on GitHub (so far), won the "Most Technical" award in my Science Fair, went on climate protests, and sh*t-tons more.
And I joined devRant!
I'm excited for 2020!1 -
This little dude was the only reason I wanted to learn Go.
Everytime I feel like I regret this decision I just look at his dumb little teeth and I open VSCode again...19 -
The more I use Go, the more i start to like it. I didn’t realize how nice being able to generate binaries for every OS that matters was, until I had that power. It beats the hell out of trying to distribute a Python app for sure.
Sure, it has its warts.
It’s overly bureaucratic in the same way Java is.
I hate that you can’t import something without using it (most people I’d wager preemptively import libraries they know they’re gonna need even if the code isn’t written yet)
I really wish there was a way to just say “See this JSON blob? All those keys and values are strings, trust me, you don’t need me to tell you the type of each one individually.”
Generics would be nice.
I’d kill for exceptions - any decently sized go program is going to have very many if err checks where most could be condensed down to a single try/catch in most other langs.
I wish the tooling was better. Dependency management was a solved problem when Go was released and yet they chose to ship without it. There’s still no standard. Many hours of time have been wasted dinking with this.
But ya know what? Even with those warts, it’s still easier to write than Java. It’s still write once run anywhere, it’s blazing fast, and doesn’t require your end user to install an entire freakin runtime.
<3 Go2 -
The tour provided with Golang is really nice for learning the basics..
Just doing
go get golang.org/x/tour/gotour
go tool tour
starts a local webserver with the tour. The lessons and the exercises at the end of certain chapters are really easily understandable.
I think it might also be a good tool to refresh the knowledge about Golang for those that haven't used it in a while.1 -
* Learn GoLang
* Automate backup on all my servers
* Finish small projects
* Begin on a bigger GoLang project10 -
I need a new 'main' language to do all my projects in as java is kind of grinding away at my psyche.
Golang I liked quite a lot when I used it for my job a year ago, I'll give that a try..
Golang installed and up and working fine.
Oh, I know lets see if there are GLFW bindings for golang. And sure there are lets go!
Oh I need gcc and mingwex + mingw32 which I will acquire through cygwin.
hmm.. mingwex + mingw32 not found and my drive is almost full. I'll reinstall on my D:\ drive before continuing troubleshooting.
> Delete C:\Cygwin Access denied.
> cmd rmdir c:\test /s /q Access denied.
> Change permissions Access denied.
No problem I just don't own this object!
> Change to be the 'object owner' Success!
> Change permissions Success!
> Delete C:\Cygwin Access denied.
> cmd rmdir c:\test /s /q Access denied.
> takeown /F C:\Cygwin /A /R /D Y Success!
> cmd rmdir c:\test /s /q Access denied.
At this point it would be more efficient to manually open up my ssd, and using a fridge magnet change every single bit to be exactly what I want it to be.
Or install linux.7 -
It's 3.00 AM.
I'm sittin here debugging a Golang app at an airport.
One part of me is wondering wtf I'm doing with my life and another part is just thankful it ain't JavaScript.5 -
Every time someone compares Golang to Rust an angel falls, a unicorn dies and a Java developer writes another class.
Please stop doing that.8 -
My new year's resolutions:
- Learn Python
- Start and finish at least one project
- Learn C
- Understand C++
- Start working on a game3 -
Spent the last 15 days deep into Golang and suddenly I stumbled upon Buffalo (https://github.com/gobuffalo)
Damn, it is fucking awesome.
Just wanted to share it. -
so another java!=javascript rant…
so an inexperienced friend of mine was having a conversation with me, and he was using the words java and javascript synonymously (meaning he thought they were the same thing).
so, i corrected him.
“you know javascript isn’t the same as java though.”
“oh, it’s not? ok then.”
and we went about our day.
three days later he was talking to me again, and we were talking about new web backends, and, as you might have guessed, golang came up.
he then said “i was talking with a noob to programming, and he thought go and golang were the same. i sure told him!”
🤦♂️🤦♂️🤦♂️6 -
I spent 4 hours finding a good way to instanciate golang structures. Came up with a function that returned a value or pointer and I just kept reusing the nomenclature for an entire project. Then my buddy looks over and goes, "Ethan, you're a f****** idiot", and shows me the standard nomenclature. Now I have to refactor my entire project. FML.
(Edit: typo)13 -
To get myself into a better relation with golang, I started working on an electronless, cancer free, cross platform lightweight slack client.
I will be using the Fyne UI lib, and am already in love with it.
So far my mockup UI compiles into a fully portable >20Mb binary. the netcode shouldnt take any more than that, hoping to end up with a ~50Mb project.
TL;DR:
- theres gonna be a lightweight slack client available at one point
- fyne is awesome, get it at https://fyne.io/8 -
Just redid a small work script in Golang to test it out.
Honestly, speed matters little for what it is, the original was in Python.
By heavens Golang is one ugly ass looking language.
I like using it tho, its easy to understand and performant for networking, file io and shit like that.
But man....shit is ugly to look at from a distance.
I do think that most langs look ugly af tho, so shit is allright.
Syntactic whitespace is still shit btw.12 -
I have a bit strange personal rule - If I encounter something more than three times during 3hrs period, I certainly must learn as much as possible about it. Last night I've stumbled upon few listings in Go language.
So, starting this morning, decided to learn Go. So far, so good.
P.S. Is it just me or Go really does have strong C/C++ vibe (but is, indeed, higher level language)? Old guy like me, must like that.12 -
I met a programmer in an online dating app some months ago. She worked with golang, and things were going nicely with us talking a bit.
Then I mentioned that I currently work with Typescript and NodeJS and she stopped responding 😞
Should have posted this as story, since this is not actually a joke.10 -
Today I officially ditched PHP for Golang. I left my job where we were doing modern software with templating language for new and shiny Golang job. Was telling stories about how cool Golang is, and how PHP sucks. Felt good man... Wanted to do it for so long...18
-
One of the coolest projects I've worked on recently was this little adventure game I made for a game jam a while back, It was made from scratch with Golang and C over two days. It also features procedural level generation (that technically should allow the user to walk in one direction for at least 7 decades).7
-
PEASANT POOR MAN'S TECH
* Python
* Java
* JavaScript
* Vue
* Golang
ENLIGHTENED ELITE TECH
* C#
* Kotlin
* TypeScript
* React
* C++25 -
Informative article on why Golang is relevant is today's computing ecosystem. I too find many server side programming being done in Golang nowadays. I liked its c like features and simplicity over complexity.
https://medium.com/@kevalpatel2106/...23 -
oh microsoft...
you used to put the artifacts in
bin/Release/net6.0/publish
now you just put them in
bin/Release/net6.0
fucking garbage thanks for the heads up
it's golang from here on out
go run main.go && echo 'byebye fucksticks'4 -
I started learning Golang today and really like it.
The error handling is *excellent*. It always works the same way and is standardized, unlike the hell that NodeJS error handling is (.catch(), try).
Modules confused the fuck out of me. I eventually figured out how they worked, but Go really doesn't try to make it easy to have multiple source folders...
I'll probably be re-writing my Discord Bot in Golang soon. Being able to have just one binary output will make things infinitely easier. Compile-time variables are another feature that's nice and easy to implement.
The goal is only having to upload a single binary to deploy on production from my CI script that has all keys and stuff inside. Feels good to finally throw all that old bad JS code out and starting completely fresh.7 -
I finally bit the bullet and got a 2018 macbook pro i7 with 1 terabyte ssd. I've been needing a personal laptop for development for awhile. I thought about going full Linux but it's tough finding Linux laptops that support thunderbolt 3 charging.
I tried to make Windows and WLS work. But it's a pain getting my Golang, GCP, and Kubernetes workflow setup on it. I keep having to jump command prompts and it annoys the shit out of me. Going multi monitor helps a lot, but I like to be at coffee shops and code.
I feel sick a out giving Apple more money especially $3,000. But it was money well spent. My workflow is seamless and unlike on my Windows laptop I dont spend 3 to 4 days just setting up my environment.15 -
So it's been awhile since I switched from PHP to Golang.
At first I missed PHP a lot, but golang really has some advantages, so its fine.
But over time, and when the project grows in features, I more and more and more start to miss more and more at least basic classes / inheritance and abstraction friendly stuff from php.
Im finally reaching the point where I start to truly miss php, I can't stop myself after writing a feature to think how much less work that would be in php.
Call me crazy, but damn, it's real.14 -
Constructors, generics, collections, package versioning, immutability, syntactic sugar, option types? Meh.
Unused imports? NEVER!
#golang -
C'mon, really?
Okay, I understand that they want to lock down the Chromebooks they send home with us, we don't own them and they have the right to do that. But I'm still annoyed when I find "harmless" stuff is blocked.
They said it themselves that they want us to be able to do basically anything we want web browsing wise on them.
It's not a fun experience to say to your self "hey let's look at the current humble bundles!" just to find that humblebundle.com is blocked for "games". (Which makes sense, but I can't remember any other examples)
Imagine thinking to yourself "I'm going to go to the Os Dev Wiki" and typing that into the Omnibox (tm) and pressing enter, directing you to your favorite search engine duckduckgo, but instead of finding the amazing duckduckgo results page you find the godforsaken securly "THIS PAGE IS BLOCKED" screen.
I can guess why they do that (probably because, to my knowledge, duckduckgo doesn't have any form of "safe-search" feature they can force it to use because they do that) but it's kind of annoying to not be able to use your favorite search engine anymore.
Should I really be getting so annoyed at this? No, because it's not my device, it's theirs and, they have the final say on what goes, but sometimes it really annoys me. I should be, and am, thankful they even let us bring the Chromebooks home, which is pretty cool.
Ugh...
If you want a fun time, just read the reviews on the Securly extension in the chrome web store!6 -
OH MY GOD, i cant believe this is my 25th day without a job... why!!!! not with all the kubernetes and node js and javascript that i know. lol. not to mention golang and python and all the networking stuff, dns, aws etc. lol where are all the recruiters when i need them?!!!!8
-
I have the following shell aliases set:
conf='vim ~/.bash_profile'
go='. ~/.bash_profile'
This reason alone is why I've hesitated to learn golang.1 -
So I am interning at this company, and I am Coding in Go.
Now I don't have much exp with go so I'm learning it, and all of my team is cool cause they also had to learn Go. Anyways I am just petty intern-dev so everyone and everything is cool.
Migrating from python to go is quite hard.
Unlearn, You must.
What I have imagined Go, to be is:
While python has this top down approach to inheritance and polymorphism, Go has bottom up approach.
In Python child classes are derived from parent class but In Go child classes create a parent class. (this might be totally wrong, but that's how I've imagined golang)
Go is static wrt dynamic python.
I have coded in C for 1.5 years then I switched to python, so I feel that am familiar with static typing. The path that lies ahead of me shouldn't be too hard.
I would like to take a step further and say that Golang is C, but with modern syntax/semantics. It derives many of its features from newer langs like js, Python, etc while being a compiled language which translated directly to machine code.
That's all 😊
My team members are really great and supportive, I am about 10 years younger than them but we still connect and sync.
Everything is Great, Life is Good ❤️2 -
Some time ago I posted rant "I love go".
After 3 months of being interested in go community, read couple of books and a lot of articles, I got my first job in Go.
#FromJavaToGo7 -
Why do people complain about python's syntax without semicolons but no one complains about golang?9
-
Forcing to use OOP on golang is like use basketball shoes on the right foot and ballerina shoes on the left foot
Ugly -
Fuck NodeJS. I don't want you to be asynchronous sometimes. My gahwd I need like 3 deep nested loops just to get you to make a request and compile a damn JSON of requests.
I'm learning Golang goodbye forever node.15 -
If number of people using Pokemon Go tries to learn programming go the world would be much better place to code.
-
I'm really crying right now while reading golang projects/libraries.CANT F**ING FIND WHAT INTERFACE/S WERE IMPLMTED!!!! Help me Oh Lord!
I'm a java dev btw.15 -
package main
import (
"log"
"strings"
)
type Present struct {
from string
to string
}
type Santa struct {
presents []Present
}
type Person struct {
Name string
Nice bool
Presents []Present
}
func (santa *Santa) givePresents(person Person) []Present {
result := []Present{}
if person.Nice != true {
return result
}
for _, present := range santa.presents {
if strings.Compare(present.to, person.Name) == 0 {
result = append(result, present)
}
}
return result
}
func main() {
santa := Santa{
[]Present{
{"devRant", "Alex"},
{"Johanna", "Alex"},
{"Alex", "devRant"},
{"Alex", "Johanna"},
},
}
persons := []Person{
{"Alex", true, []Present{}},
{"Johanna", true, []Present{}},
{"devRant", false, []Present{}},
}
for idx, person := range persons {
persons[idx].Presents = santa.givePresents(person)
}
log.Println(persons)
}2 -
Golang code review be like
> oh no, you used prohibited `else` keyword
Context? Dosent matter. Its banned, mkay?
Fix? Oh you know its hell to read now22 -
# work on an open source project
# build an awesome pwa
# less frontend, more backend
# learn GoLang
# find or build more alternatives to Google services, Facebook etc.2 -
Dear Java library developers. The javadoc is not an excuse to not write documentation.
Signed,
a very annoyed golang developer -
Why am I a horrible person for following standard linting and thus not using semicolon in my JavaScript code? I write Golang and Elixir which they don't have them and thus it is for me more natural to not have them in JS as well.1
-
When you are pissed for some reason and want to learn a new language you will probably end up writing a client for Fuck Off as a Service
https://github.com/palash25/...2 -
Who here actually uses GoLang? I’ve thought about eventually adding it to my tool belt.
But while on the GoLang topic, what is it good for? I’ve heard it’s good for web backend but can it produce software too?question fuck me this is an actual cry for help why are you ignoring this i’m not okay go golang i just want to code i just want happiness who actually reads the tags29 -
hey guys...
i need to create an application with video call and streaming...
i was advised to use node or golang as backend.
Does anyone know or have an advice to me or do you about a library or framework? other language, database? idk
thanks to all of you3 -
So.. There are about 4 jobs in my country that even mention golang, and only as an "advantage"
😟 Wow.. learning Go really isn't helping..
Why isn't it used widely as the main language of a dev team?? Too young? Or are there serious issues, that most companies prefer using c#/ruby/python for web dev backend?8 -
Feeling the pressure of writing back-end code for a golang microservice, after a year of fulltime front-end developement. Each commit feels like you're close to cause a bomb to detonate.
-
Does anyone of you know a good website where I can learn about open-source licenses?
I've written a small terminal-based passwords-manager in Go want to open-source it and some of the libraries I've written for it.4 -
As I haven't seen anyone post about it yet, Go's error handling and contract (Go's generics) drafts are out: https://blog.golang.org/go2draft2
-
Good news: I've finally started learning Golang! I've wanted to do it for a while, and now I am!
Bad news: I'm getting screwed by a GTK messagedialog that when open for the second time, simply panics! The dialog is in Glade because I've got no patience to master the art of giving 5 different flags (maybe that's just 'cause it's 3 AM). Plus, I'm have a similar issue with my about dialog! COME ON!!!!
P.s. just wanna say hi again, haven't been around in a long while, so: Hi!6 -
So i've been working with OOP and now that i have some free time i decided to learn Golang.... Great language but at the beginning was really hard to go back to the non OOP.9
-
I've been a dedicated Golang programmer for a few years now.
But lately I learned rust, and now even the thought of garbage collection makes me davastated :(1 -
Its an exciting day to continue my Web dev w/ Golang on udemy by Todd McLeod after my two days break.4
-
How do gophers (Go devs) feel about the new Go logo ?
I can get used to it but it feels more like a logo of a company that might rival Uber.
The gopher gave it an easy to use and understand feel, this new one gives a fast and sleek look. It wants to showcase "Fast" more than anything else.10 -
Am I the only one who gets intimidated when shit its roof?
Yesterday, during crucial business hours, one of the major OMS db column type got overflowed. Caused around 30 mins downtime and then later, pool of all connections with high concurrent requests flushed down stream which caused thunder herd.
One by one.. all services went down; Fucking java service couldn't even start because of load..
This is the moment I fell in love with GoLang. We shard request using GoLang service, it just started and picked up the load beautifully..
At the end, it is around 6 millions business loss, but a good lesson learned :) -
Golang - should I use gin or should I not? Beginner here…..
It’s for a huge e-commerce rest api btw13 -
Fuck golang, apparently enums are too complicated for the human mind. Someone looked at C and decided to make it shittier, like now I have to deal with C shit, and use a garbage collector on top of it or use fucking C++5
-
golang TIL:
*myInt++
is not the same as
(*myInt)++
thanks for that headscratcher!
another rough case of RTFD2 -
I really am not a fan of the contortions you have to go through in Golang to deserialize a fucking JSON blob. If this were any other language I would have already had a data structure I could query rather than wasting hours twiddling structs that will be filled properly.7
-
I was getting bored with programing cause a majority of it is boilerplate code then i heard of the Mirai virus. It infected alot of iot devices so I decided to look at it and it was written in golang. It is a beautifully written botnet even though they're parts where it could have been better. So i looked more into golang and saw that it could cross compile pretty easily and could build self contained binaries really easily. On top of all this i saw the smallest docker containers with golang programs so i looked into it more and kept finding more and more that i liked. Easy library packaging, concurancy without boilerplate, quick servers, and the libraries from other devs that did all kind of great things3
-
Tonight's checklist:
1. Study a chapter in ISLR
2. Try to understand source code of an open source project in GoLang.
3. Complete programming challenges on HackerRank
What I am going to end up doing:
1. Watching videos of The Rock trolling others.
2. Watch Family Guy2 -
So I’ve asked one hipster js developer what does he think about golang. His answer was:
- it’s the same as nodejs, but difference is that go has pointers
O_o7 -
I'm writing a blog series about GoLang and REST interfaces, if your interested in golang but don't know where to start give it a read https://blog.mescrocker.co.uk/golan...2
-
So a few days ago I sat down to write a redis adaptor to transfer data back and forth between redis and elasticsearch. I download the go-redis package and start writing a simple client.
I run the client and it gives me an error. So I'm stuck at it for about 30 mins and then I say to myself, "You dumb fuck you haven't started the redis-server". So I open up another terminal and type in `redis-server` and then I realise I don't even have redis installed on my machine.
I do such dumb things every weekend. If you have any dumb mistakes you made while writing code please share them in the comments. :-) -
Why must the scrollbar look like its having a seizure whenever I scroll faster than a brisk scroll? Why does it even have to change length at all? Why can't it just be the same length all the time? It happens a bit in the devRant app, but it's even worse in other apps (like the reddit app).2
-
Started to rewrite a part of the frontend of a web app I'm building and holy shit, I've never though JavaScript can be so much fun 😁😁3
-
Hey everybody,
I’m wondering...
Actually I’m a full stack JS / Java and PHP.
But what do you think about Golang ?
Should I learn this language ?7 -
Tired of the madness that’s this country and the Android ecosystem. Currently, applying to Go backend positions in Europe.2
-
if err != nil {
if err.Error() == sql.ErrNoRows {
return nil, err
}
return nil, err
}
found me some choice, grade A Go code here.5 -
I don’t think anyone was nearly as happy as I was to find out Twitch’s source code got leaked and that they use GO.
Makes me glad to see Go used by another big company for a big application like twitch where performance is really important.13 -
Okay, managed to negotiate with my manager to deploy our first Lambda + Golang service. Muehehe. Let's have some fun!!!5
-
Maybe some of you will find this useful.
I just finished the first stable version of my JSON-library for Go.
https://github.com/thosebeans/...
It provides a DOM-like interface for JSON-documents.4 -
Any devs out there worked building Golang microservices for a production environment?
I don’t have a specific question really. Just wondering who is out there on a similar path!
I’m building using Golang, Google Cloud, Docker, Kunernetes, and Terraform currently on a personal product bound for production!1 -
Hi fellow ranters,
Its been awhile since I last was here posting stuff..
So, I've commited to my effords getting shit done in golang. And I met a lot of painpoints, and I mean...
A
Lot
Of
Them.
Anyway, most of them are solvable by changing mindset or having some macros set up for no-one-fucking-wanted bloody boilerplate code that is omnipresent fucking EVERYWHERE.. **cough**
Steering back on what I want to rant about.
We with our team have one major problem with golang. There is no standard for docs in code...
Like, Fing legit. Everyone uses notation for closest to theirs heart language, so you get inconsistent-as-fuck notations for parameters / function descriptions.
We have functions that look like
//doSth does something
and also
// doSth
// @Summary does sth
// @Description does something but in more words
// @Param
and so on and so on
And trust me Im getting mild example.
Why this language does not have A F...ING (well defined, using proper definitions) STANDARD YET?
EDIT:
bonus context: We decided that too much of our code is undocumented and we go through efford of documenting it, but everyone sees it differently, and we can't agree on one single standard... So we decided to not refuse PRs due standard, as well, nobody would ever had PR accepted3 -
3 hours debugging for one colon. Welcome to the shadow bugs in Go. This was one of the most satisfying fixes. And a great introduction about shadowbugs.
-
I'm cross-compiling software I create for many years. Ignoring languages targeting some kind of VM, some additional efforts were always needed.
Go (as far as I can see, since 1.5) is doing this right and quite straightforward - select target and architecture, issue build command and you get native executable file. I'm happy ... B)7 -
Hello, everybody! Recently, I've decided to switch from Android development to web-development, mainly JavaScript. Ok, it is clear what to do and what to learn in frontend part. But what about backend? I have a some kind of a dream to learn Go. It is clear language it is a great pleasure to write on it, and I've started to learn it. In parallel I'm trying to study JS + Angular... Well, now I have some douts: is it effective to learn two different languages, which are quite new to me? Maybe, I should learn Node.js instead of Go? Right now it is clear, that this technology (node) is much more demanded. What path should I choose? To follow heart and learn Go? To follow mainstream trend and learn Node.js?1
-
So I'm in the process of learning go for building RESTful microservices and I have a really stupid but simple question.
Does a go microservice need more than one file? I ask this because my day job is c# and for those who know, asp.net rest projects have a lot of files6 -
!rant
So I started learning Golang.
I have to say, I heard the language was good but holy shit!
I got my eye on you implicit interface implementation👀👀
I can't wait to start my first project with a clusterfuck of compositions 🤤
P.s: syntax is kinda weird ¯\_(ツ)_/¯6 -
People like to argue what language is better, saner, safer, etc. The problem with these arguments is it all boils down to what the programmer does with it.
I said before, languages are our tools. A shoddy carpenter can build a rickety house even with the best tools.
Golang has been introduced as a rather nice language, with many people agreeing that it's solid. That said, Golang still does not prevent evil, ugly code.
The source for the image below is available here: https://play.golang.org/p/...6 -
Even though I like Javascript I get so frustrated over all the libs and frameworks that is so good. And then some forks. And then all deps because everyone wants to have a cool npm package. So, took a deep breath, went for a run in the forest and started looking at Go for the small service(s) that from the start was thought to be a NodeJS thing. Might be fun.3
-
So i have been playing around with Golang for about a week now and like it in some regards but it feels almost too primative to me like it's holding my hand.
Does anyone else feel the same?7 -
So, i've been dealing for 1 hour with an error in golang, almost threw away my laptop, i even restarted it. The problem was a missing "c" when i declared a func -.-2
-
Why it is such a pain to scan nullable types on Golang database.sql
Now I have to chose between:
1- Using temporaty variable to hold the nullable value just to soon after check and set the zero value if it is null
2- Adding coalesce to my sql query for the zero values.
Did I mention that there are around 20 collumns that are nullable...1 -
OH, OKAY! that's what I should have do like 4 hours ago. Well, today I learned more of what can `replace` do in Golang modules.2
-
when the management team wants a new application with an insane deadline and for you to train someone on how to code.
-
I really want to learn Go, but I'm not sure where to start! devRanters who are also Gophers, what tools/resources do you recommend for a beginner?2
-
Fuck ruby. I've spent less time learning the ecosystems of java, golang, node, and docker combined compared to the shit ruby is flinging at me like some sort of deranged baboon10
-
I want to do some kind of simple note-taking web-app, with a Golang-Backend.
I need to choose a database, but don't have any clue about DBs.
Every note will consist of 3 strings, let's call them content, pubkey and privkey and I want to retrieve a saved note by searching for pubkey.
Can you recommend me any particular DB or at least an all-round solution ?3 -
I started learning Golang, at first sign I like it since I came from C++ background so seems very friendly at first sight.
Yesterday I took some time to read algorithms and data structures book and some patterns of language looks quite different for me anyway.
Someone has a good detailed explained book, tutorial or whatever for Golang to share?
I tried the documentation but I didn't understand it too much, looks very advanced for someone is newbie on the language.10 -
Favorite IDE: JetBrain's WebStorm (for JavaScript stuff), Intellij (for most of everything else).
Why: cause it literally saves you time.
Bonus: VS Code for anything else (python or golang)3 -
Different types of comments that I know in programming languages
C, C++, Java, C# , JavaScript, Golang
// whatever and /* whatever */
CSS
/* whatever */
Python, Ruby, BASH, Powershell, perl, TCL
# whatever
Almost all markup languages
<!-- whatever -->
I was amazed by how many languages i know along the way!9 -
Started out on some Go code today. It's looking really promising so far - the lack of implicit stuff is really refreshing. Less is more.1
-
Anyone use Golang here for system programming? I recently learned go and it would be very helpful if someone would describe me the pitfalls in go while writing fast softwares. I am planning to write a music player for Linux in go.11
-
I give up. I am having trouble understanding Go lang *, & stuff.
attached code does print what fmt.Println has, but the function calling: FindByID is throwing invalid memory address or nil pointer when it attempts to use the result of the code.
Can someone please explain where I'm wrong?
Error log blames the line of "if" condition even though fmt does print its output to console16 -
Learning golang to replace Java in my arsenal, I just wish they had a nice framework for creating guis similar to JavaFX
I know bindings exist to things like qt and GTK but why cant they have a nice native ui library.1 -
After some consideration, and some intel from some of you guys, I think I’m gonna learn GoLang. Although I’m still on the border with Rust 😅8
-
!rant
Golang Backend + Supabase = ❤️
I feel like a freaking 🧙♂️ built a real-time chart in an hour!3 -
Coming from NodeJS, writing APIs with Express, I now do my first steps writing APIs in golang with gin.
Now I know, Express is not the fastest solution out there, but I mean - a good 30ms is alright for non-high-performance backends. And I always thought that's on the faster end of HTTP handling..
..but then I used gin. A GET request doing a MongoDB-write and returning some json. 3ms response time. THREE MILISECONDS. holy fuck. By it's debug logs the actual handling took 540 MICROSECONDS. holy fuck I'm in love.8 -
Any recommended reading material for someone deploying a go web application for the first time?
I am trying to see if I can deploy a go app into one of my institution's test linux servers. I would have one of the technicians create the server, so It doesn't really matter what it is, but lets say for argument's sake that the servers in question are either an ubuntu server or a red hat/centos server. Any recommendations before I dive in?6 -
Isn’t the usage of environment variables common for golang apps?
I interviewed for a company which made me develop a golang backend service and I used environment variables for sql connection strings and client and secret IDs and all.
When I submitted them the project, the feedback was that the tech person isn’t familiar with dotenv configuration.
Any inputs about any other way this could’ve gone?3 -
That's gonna be a quick rant about Golang.
Anyone else here frustrated by the fact that you can inline assignment in the if statement, but can't inline the if-else itself?
You can do:
if thing := hey.getThatThing(); thing == theThing {
return 'this'
} else {
return 'that'
}
But can't do:
return 'this' if hey.getTheThing() == theThing else 'that'
Or is it just me using too much Python everyday and connecting that with Go in free time?5 -
Just when I thought js/ts is a mess with its npm, I ran into GO
$ xk6 build --with gitlab.com/<...>
smth wrong with module name
*fixes module name*
$ git push
$ xk6 build --with gitlab.com/<...>
smth wrong with module name
*go pulls initial commit instead of the last one*
$ go clean [or wtv it's called]
$ xk6 build --with gitlab.com/<...>
smth wrong with module name
*go pulls initial commit instead of the last one*
$ cd /tmp
$ xk6 build --with gitlab.com/<...>
OK
oh well... I guess this is how it's gonna be6 -
> As a developer in the Go world, I would recommend you to embrace idiomatic Go patterns and avoid dependency injection.
google literally created a DI lib for go.4 -
I am a chinese dev with 5-6 years experience, working on c/cpp/golang for backend server and PHP for web.
But I still feel hard to learn JAVA and JAVA web framework. You know it just has too many bultshit too learn, which is meanless to me.
Do you no-chinese guys also think so?2 -
#2020 resolutions:
1. Learn Nodejs/E.
2. Learn Golang.
3. Forget to return back home from college.3 -
Change my mind. Golang can be more difficult than it needs to be sometimes:
Find the first "non-null" value in an array:
Go:
Optional<String> result = Stream.<Supplier<String>> of(
() -> first(),
() -> second(),
() -> third() )
.map( x -> x.get() )
.filter( s -> s != null)
.findFirst();
Ruby:
@group_list.find { |x| !x["list"].blank? }16 -
I saw a video on tiktok a couple days ago that had a pretty interesting opinion. The guy said that we should stop creating programming languages and stick to only a couple.
His main point was because with all these different programming languages, there is different syntaxes the programmer has to learn. Even some of the universal syntaxes are different in some languages. For example, in Rust, to print something you use “println!(...);”
He said this is counter productive because in a majority of other programming languages, the ! Means negation. He also said something about Golang also having some of those syntax problems but I can’t remember exactly.
His point was that if we stuck to a single syntax, then we could spend more time doing productive stuff and less time relearning how to do stuff with different syntax. For example, in mathematics all symbols have pretty much the same meaning across the field. An equals sign will always mean the same thing.
What do u guys think? I thought it was an interesting opinion and I think I agree to some degree . I’ll post the link to the video if I find it again23 -
I like how hiring managers want everyone to have 5 years of Golang experience. I've been writing go since 2014. There were hardly any Golang jobs in the market 4 years ago. Where would be getting this enterprise Golang experience from? The only big companies that had full systems written in Go 4 years ago was Google and DropBox.
My year of extensive Golang isnt good enough. I feel year after year manager's expectations move further and further from reality.1 -
Currently learning go and I’m really enjoying it. It’s been a while since I learnt a new programming language and the experience is different to what I remember. I’m reading an o reilly book and when about how they implemented a common feature of programming I’m like oh no they didn’t. I think this is what normal feel when they read celebrity gossip. Hash tag goto.2
-
About to start writing a report for my programming languages course, I’m writing it over GoLang, If anybody has any good resources for any information on Go, let me know!
The report extends into the history, paradigms, features, memory management system, and anything else I can possibly find on this language. I can find some pretty decent references on the footer of Wikipedia, but I wanted to see if anybody who actually used Go had anything they’d like to share.
Thanks :)1 -
Any recommendations for a first timer of functional programming? Not sure what languages are used the most or have the most community support. For whatever it's worth, I've enjoyed working with C# and Golang, and disliked working with JS and PHP.5
-
My thought process..
a compiler found a type error, oh thank god i was not using python or even worse js. this could have been hard debug error, type do matter huh!. what if compiler was even strict that could have found more error and i could really write even safe code. Ohh may be i should learn/finish Rust
** suddenly conscious slaps in the face**
first finish one project, STOP language hopping ..
Oh! right!1 -
!rant
Should I learn golang or kotlin?
At this point all I know is they're 2 up and coming languages... Maybe2 -
So when writing golang code, you can put alias into the imported library
And one of interns in my office include include our company's library called "helper/session", and alias it with 'hSession'
Now all the code which use that library has to look like "hSession.ErrUnexpected", "hSession.NewSession"
Well, i think i've played too much VN and anime, but still i'm having a good laugh when doing the code review -
I created a bit that posts Simpsons scenes in slack chats. Mostly because I was bored and wanted to learn
https://github.com/vj--/droidbot -
Do any of you use Buffer? I'm thinking about creating an open source alternative to it, as ot would help me learn. Do you think building something like it makes sense?2
-
!rant
What is golang used for in a professional setting? It's a really cool language and I like it, but is it useful for me is what I want to know. Thanks7 -
Golang tutorials trying to explain the difference between concurrency vs parallelism be like "Oranges are different from oranges. Oranges are juicy while oranges are juicy. They are not to be confused, u newb"1
-
Never used Emacs in batch mode, did it today to transform some code generated by struct2ts (convert Golang structs to Typescript classes/interfaces).
I won't rely on sed/awk for complex stuff ever again, is much pain in the ass for me tbh.4 -
Just ended a 4 hour debugging session trying to work out dlv debugger for golang, only to know that "dlv doesn't work on wsl".
Movies depiction of us was so wrong :'(1 -
So I’ve been putting some thought into this for a week now and this is what I’ve come up with for my dev goals.
- Finish learning C
- Learn GoLang
- Learn ASP.NET
- Get better at focusing
- Build more confidence in my skills
- Complete more projects
I have separate reasons for ASP.NET and GoLang. This year I did pretty good at completing my dev goals if I counted right I completed 6/10 of my goals and I’m proud of that, so I believe in myself to be able to complete these goals.2 -
Where can I find good golang documentation? This is not helping me :\
https://golang.org/pkg/syscall/...5 -
Not sure if this is against the rules (can’t find it) but taking the risk to post this here.
I’m android(kotlin/java) and Golang Developer looking for a remote job in any company. I’m really bored and tired of not doing anything daily.
Here’s my resume on google drive: https://drive.google.com/file/d/...4 -
Been picking up Go recently and am really liking the idea of using git repos as library urls, just makes so much sense to me.
Also in general go is just kinda cool and makes me like lower level programming a lot - although I had to learn the hard way with Mutexes and locking.5 -
Have any of you fin devs out there on the interwebs had any experience with building social networks using `Stream`??
I am looking into their API for use in a golang project of mine but I am unsure about a few things...
1. Reliability
2. Scalability and the cost of it
3. General API quality, in Golang specifically but any comments are great.
It's a stretch I'm sure but if there was a place that folks would know it would be here @ devRant1 -
Anybody here who writes backends in golang? The preferred way to do so in Go is to use the standard libraries. Does it involve a lot of boilerplate? Are there better options?4
-
learning golang. so they have optional feature called `vendor`. so basically they reinvent the `node_modules`.
the weird thing is that it supposed to work by committing dependencies to git. but unlike node_modules, vendor directory wouldn't be massive since they come with assumption that the community wouldn't fuck up the libraries ecosystem.
huh?7 -
I have a take-home interview exam involving Golang and reactjs due next Monday. Both techs I have no idea yet.
Here I am in bed. Using devrant.3 -
Am I the only one here who thinks Go code is tedious and difficult to maintain? The language is easy to learn but to maintain it? #wtf1
-
!rant
I've spent the past 6 months exploring and implementing small and big projects in nodejs, python, golang, swift. Swift btw being a pain in the ass. I really wanted to continue with golang since it's a cool language but all jobs/startups that I think is interesting use c# .net so I want to jump into that.
Does anyone have any book tips that can be finished this summer for programmers that are not beginners?3 -
Fuck it, after playing around with languages for awhile I decided I’m gonna make the switch from Java to Go. I feel like Java was nice to learn with but now I wanna try out some new tech for building API’s and micro-services.5
-
Started with qbasic when really young, by moding the tower game. Later got into a programming course where i picked php & Java, and lately got Python and golang from professor Google
-
What the fuck is the "package management" of Golang.
It is impossible to delete a fucking dependency and why do I have to do that shit in the first place, I just want to use a fucking fork of my own. It's hilarious.6 -
Want to start learning a new language (non-webdev), but can't decide between Rust, Elixir and Golang.
Any thoughts or comments?9 -
I was bored, spent an half hour writing a non-recursive, relatively-high-allocations, somewhat slow Fibonacci function.
Here you go:15 -
I’m pretty interested in golang but I don’t have any projects that it applies to and I can’t do anything with it at work because the other developers don’t know golang either :(2
-
Speaking of Go.
defer() is like blessing.
Every time I code in Python, especially asyncio code, I wish it has something similar.2 -
-> Change the signature of one function
-> Go around the entire codebase to add that one extra parameter every damn where
-> thank god for IDE's
-> tests still fail
-> realise that mocks are not captured in the previous exercise of combing through the codebase
-> #frustration -
I just setup Jenkins locally for the first time to do some CI/CD for a project using docker. Then I upgraded the container to the latest version of Jenkins.
I am liking it so far but haven’t really setup anything significant yet.
Any of you ranters have experience with Jenkins?
- would you recommend it. Pros/cons?
- what resources did you use to setup and expand your pipelines?
- any experience with Google Cloud Platform and Jenkins.
These are kind of open ended questions to start a discussion on the topic.
Jenkins will be used at least for deploying the front end built in React. I may also use it for deployment if the Golang API but that uses Kubernetes at the moment. -
Go has been a treat. Recently started toying around with it for one of my personal endeavours and despite being weird, it’s powerful!1
-
Golang is like Erlang
Noone ever heard of them and likely one project justifying their existence was written13 -
Hi, Anybody can help me do this? I'm trying to build Golang from source using the github actions. I'm new to github actions and golang both. So, github actions keep failing. I'm trying to follow this: https://github.com/golang/go/...
Anybody can write me a yml file for this? Thanks a lot2 -
Hey y’all! I’m having a good time with golang so far! However, it’s so damn frustrating to have to give it admin permissions every time I need to restart my program when making anything with networking. Is there any work arounds to this without giving my account admin?7
-
Can anyone tell me how I can integrate Mongo DB with golang?
I found go-bongo, but it's not well documented.5 -
what is a Go Engineer? I hope it means a golang engineer? I can't find a job description for it. cause I love Go and I want this as a job.....Hopefully1
-
I guess these days I work with Golang, gRPC, and Kubernetes. I guess that's a dev stack. Or turning into one at the very least. The only thing that annoys me about this stack, is how different deployments for kubernetes are different for CSPs. The fact that setting up a kubernetes/Golang dev environment is take a lot of time and effort. And gRPC can be a pain in the ass to work with as well. Since it's fairly new in large scale enterprise use, finding best practices can be pretty hard, and everything is "feet in the fire" and "trial by error" when dealing with gRPC.
And Golang channels can get very hairy and complicated really really fast. As well as the context package in Golang. And Golang drama with package managers. I wish they would just settle on GoDeps or vgo and call it a day.
And for the love of God, ADD FUCKING GENERICS! Go code can be needlessly long and wordy. The alternative "struct function members" can be pretty clunky at times. -
When you try to learn a new language what is a good project to code that will get you to use mist of the languages features. Some specific languages would be C++ and Golang.4
-
Is Manjaro good for web and mobile developer? Currently I'm using Kubuntu, but I'm thinking about switching to Manjaro with i3. I'm using Andoroid Studion, Intellij, VS Code, GoLang and Java. I might replace VS Code with Vim later down the line.3
-
Have anyone of you guys ever build a medium or large application with golang? I mean small services with 3000 lines of code are just fine but what about 10k, 20k or 100k loc? Does anyone has experience with such an app?20
-
Hey-a. Started a new organization to bring better software to the world that will follow DRY, KISS and SOLID principles as much as possible. Using Golang as the main language for evertything including W3 stacks replacement. Check it out on my GitHub.2
-
After some time I picked up learning golang again. It's very different from the "high-level" world in C# I initially came from, but I am finding my way better every day.
What are your experiences / maybe projects with golang?6 -
Programming often ends up in interesting places.
Spent a whole day interpreting a golang SDK in python only to realise that I just have to learn go, not cool google!1 -
Go is the first language with it's own dedicated hate page. Just go to golang.sucks
The anti-awesome github backing the website is also something I've never seen before.
Is GoLang really just a hype and a language created of retarted developers at Google ?2 -
Anyone work with golang for Web development purposes? I am an intern and need to work with golang which I have no idea... Any help to get me started?? Thanks!4
-
One professor told me Golang is the Future, the head of STEM at the College had never heard of Go. What do you guys think?7
-
Like 3 days looking for graphenedb connection with golang..
just did..
im so happy :'D
guys lets party!! -
any golang dev here?
I want to try golang, but as I tried Rust before Go, I really loved that cargo creates a full project with necessary files with just a single command. is there any CLI like cargo for golang?2 -
Does someone know a good getting started/good resources to learn coding WebAPIs with golang from the start?1
-
Not my fav because I'm not proficient in anything and don't consider myself a programmer. But, I use many languages day to day as a sysadmin.
I come across Perl enough to know I don't like how their modules and dependencies work. I have the most difficulty when dealing with this. PHP, Python, Ruby, and GoLang never give me as much trouble as Perl.
Also, coming across more Python3 dependencies, dealing with older Python2 environments, as stated by many others as well, is becoming more and more painful.
Maybe all of this can be solved with some unifying virtualenv for all popular languages/environments, supported fully by the underlying OS. -
FUCK YOU GOLANG FOR LOGGING IN DUCKING BLOODY RED.rant logging is evil you don’t do that logging in red who the fuck even comes up with this shit who thinks this is a good idea11
-
What can I build on a weekend which I can add in my portfolio and also learn golang. I am a web developer with sound knowledge of react, vue, node, django. I am learning golang.
PS - please suggest the project even if the project is not is golang. I want to improve my current skills also.6 -
Hi people, I need some help.
First, stack , Golang/gorm(ORM)
I need doing a simple sum(amount) , I have a " db.Table("orders").Select("sum(amount) as Amount, merchants.name").Joins("inner join merchants on merchants.id = orders.merchant_id AND merchants.name = ? GROUP BY merchants.name", key).Scan(&total)
total is a struct type .
Are there any smell and I don't see ....?1 -
Golang: It's stupid that the language doesn't allow the variable 'result' to be used out of the if scope, although it's been declared outside the if scope:
if result, err := foo(bar); err != nil {
// do something with err
}
// no err, so do something
// with result.
// But No! you can't.3 -
what are the basics I should know about "data streaming" for working on video streaming companies as a future senior backend Golang developer?3
-
starting out with a couple coroutines to spare is literally the worst bad habit I've got from golang and that's a compliment. rust, for example, got my over engineering OCD thru the roof!1
-
Trying to port my raylib game (written in Golang) to C to compile to web. When I add raylib to /usr/ it somehow fucked up the Go game and now I cannot run the original game.3
-
Building on yesterday's rant (https://devrant.com/rants/3110183/), after sleeping on it I realized that using groups was completely non-necessary, so I got rid of them and got a much more efficient (and faster) function:
Also, I've got these in a repo: https://github.com/chabad360/...15 -
Trying (having) to develop game by Golang. Pick Raylib as library to go. Got stuck by cgo with goroutine somehow.
Deadline is coming... -
Was asked to look at another teams repo to see how they use Cassandra. In that repo, I found a function that creates a map[int]bool populated with a handful of numbers all with true as the value. The function then checks the existence of an int in that map and return a true if it exists.
-
panic() from golang. I panicked a lot as go didn't have the "evil" try catch. But then panic came for my aid.
-
since we have go mod I believe that if you are doing microservices or fracturing a monolith app into microservices for that matter, you rather have a monorepo. I'm finding really useful to do `import ("backend/monolith" "backend/notify")` and such than sharing protobuf files by copying with some Makefile target.
-
Hey guys! From a Ruby on Rails Restful API programer’s perspective which should I learn? Scala or Golang? Why do you like Scala/Golang? Do you use any frameworks? Why should I choose Scala over Goland or vice versa?
Many thanks! o/5 -
Finally a good answer on how to wrap my Go web app in a container. https://stackoverflow.com/questions...1
-
Go language training from Google and provides learners with an overview of special features of Go's.https://igmguru.com/digital-marketi...