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"
-
So I named my daughter "io"
everyone calls her by the name and then we register her on our local gov't to get birth certificate.
AND THEN THESE FUCKED FACED FUCKERS! dont accept my daughter's name because of this STUPID SYSTEM OF THEIRS!
because "io" is too short for first name field to accept. Its like the devs become the law and just set their own limit.
It pisses me off. our law didn't say `len(firstName) > 2` and we can't use paper anymore as alternative.
I really want to punch the fucker in neck. sorry38 -
I'm learning golang currently. I 'designed' a mug to keep myself motivated. Turned out pretty good.18
-
The golang mascot perfectly embodies the language. It's quirky and weird, but in the end it does it's job5
-
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?19
-
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?!?!14 -
Can't concentrate when this guy constantly keeps a check on the page number (progress) I have reached while learning GO. 😂5
-
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 -
0. Get a raise
1. Nove out
2. Learn GoLang
3. Have a threesome
4. More weed
5. Build a blockchain project6 -
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…7 -
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 -
working on two projects.
at the same time.
for 2 different companies
2 completely different scenarios
2 completely different languages
nodejs and golang19 -
!me.angry
Holy Fuck I love Go language!
As I mentioned in a previous rant I wanted to start a little CLI app to manage my favourite commands and decided to get started with Go, because I haven't learnt a language in a while and I don't know, let's learn cool stuff, you know?
Holy shit, it's painful but so satisfying to learn! I'm googling every line of code I'm writing but idk if it's the feeling of learning new stuff or the language itself, but my dev motivation rised a hella lot :D
Will make the repo public once I'm done, You'll let me know what I can do better then :)18 -
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 -
!rant
Started a series of videos "Building a Webserver with GO and Echo". so exited!!!
https://youtu.be/wgW22wo6-SY6 -
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 -
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 -
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 -
To me, it seems like the rise of distributed systems like mesos / kubernetes combined with Docker require you to be master sysadmin, veteran kernel hacker and a part time c developer ALL AT ONCE if you really want to shave off time from debugging/ performance tuning sessions. Anyone wish they paid more attention in class ? Lol.4
-
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. -
My new year's resolutions:
- Learn Python
- Start and finish at least one project
- Learn C
- Understand C++
- Start working on a game3 -
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 -
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 -
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 -
School taught me how to read,
Python taught me how to think,
JavaScript taught me how to work,
Go taught me how to act.10 -
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.14 -
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 -
Go is fast they said, Go is lightweight they said.
package main
import "fmt"
func main() {
var nums []int
for i := 10; i > 0; i++ {
nums = append(nums, i)
i--
}
fmt.Println(nums)
}
# htop
| PID | USER | VIRT | %CPU | %MEM
| 12048 | root | 16.9g | 101.3 | 94.2
WTF is eating my resources to hell and.... oh... oh im a dickhead!10 -
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 -
Learning Go. How I didn't learned it before? It has the efficiency of a low level language with the beautiful syntax and abstraction of a high level one.4
-
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...21
-
You see a talented developer, and you see all their github pages, and everything is just so professional and good
And then you realize "bruh I wanna be like this"
And then you realize you will never be like this, and just admire the other person's work
It's a strange feeling. Something between strong envy and just awe. More envy than awe
Example: this guy wrote a whole OpenGL bind for GoLang and made it dead simple to use. And it's all open source. And it's all under MIT license.
His name is faiface and he is my idol honestly, mostly because of pixelgl.3 -
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
-
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/...25 -
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 -
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 tags36 -
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.
#FromJavaToGo8 -
Fartin' around with Godeps and having difficulties, but things aren't nearly as annoying when you are able to work from anywhere while drinking craft beer :^)
-
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...3
-
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 -
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.7 -
Constructors, generics, collections, package versioning, immutability, syntactic sugar, option types? Meh.
Unused imports? NEVER!
#golang -
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 -
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 you've ever tried using Go plugins raise your hand.
If you've ever tried doing plugins in Go, raise your hand.
If you think that the following rant will be interesting, raise your hand.
If you raised your hand, press [Read More]:
This is a tale of pain and sorrow, the sorrow of discovering that what could be a wonderful feature is woefully incomplete, and won't be for a very long time...
Go plugins are a cool feature: dynamically load pre-compiled code, and interact with it in a useful and relatively performant way (e.g. for dynamically extending the capabilities of your program). So far it sounds great, I know right?
Now let me list off some issues (in order of me remembering them):
1. You can't unload them (due to some bs about dlopen), so you need to restart the application...
2. They bundle the stdlib like a regular Go binary, despite the fact that they're meant to be dynamic!
3. #2 wouldn't be so bad if they didn't also require identical versions of all dependencies in both binaries (meaning you'd need to vendor the dependencies, and also hope you are using the right Go version).
4. You need to use -trimpath or everything dies...
All in all, they are broken and no one is rushing to fix it (literally, the Go team said they aren't really supporting it currently...).
So what other options are there for making plugins in Go?
There's the Hashicorp method of using RPC, where you have two separate applications one the plugin, one the plugin server, and they communicate over RPC. I don't like it. Why? Because it feels like a hack, it's not really efficient and it carries a fear of a limitation that I don't like...
Then we come to a somewhat more clever approach: using Lua (or any other scripting language), it's well known, it's what everyone uses (at least in games...). But, it simply is too hard to use, all the Go Lua VMs I could find were simply too hard to set up...
Now we come to the most creative option I've seen yet: WASM. Now you ask "WASM!? But that's a web thing, how are you gonna make that work?" Indeed, my son, it is a web thing, but that doesn't mean I can't use it! Someone made a WASM VM for Go, and the pros are that you can use any WASM supporting language (i.e. any/all of them). Problem inefficient, PITA to use, and also suffers from the same issues that were preventing me from using Lua.
Enter Yaegi, a Go interpreter created by the same guys who made (and named) Traefik. Yes, you heard me right, an INTERPRETER (i.e. like python) so while it's not super performant (and possibly suffering from large inefficiency issues), it's very easy to set up, and it means that my plugins can still be written in Go (yay)! However, don't think this method doesn't have its own issues, there's still the problem of effectively abstracting different types of plugins without requiring too much boilerplate (a hard problem that I'm actively working on, commits coming soon). However, this still feels to be the best option.
As you can see, doing plugins in Go is a very hard problem. In the coming weeks (hopefully), I'm going to (attempt to at least) benchmark all the different options, as well as publish a library that should help make using Yaegi based plugins easier. All of this stuff will go (see what I did there 😉) in a nice blog post that better explains the issues and solutions. But until then I have some coding to do...
Have a good night(/day)!13 -
Dear Java library developers. The javadoc is not an excuse to not write documentation.
Signed,
a very annoyed golang developer -
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 -
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 -
Why do people complain about python's syntax without semicolons but no one complains about golang?9
-
If number of people using Pokemon Go tries to learn programming go the world would be much better place to code.
-
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 -
Anyone remember my rant about Go and GTK? Well, the main problem was that it was 3 AM, I've since completed it, and have begun to refactor that spaghetti mess.
I feel so good right now.5 -
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 -
# 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 -
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 you4 -
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 -
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
-
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
-
Software engineering doesn't evolving the way you think of it.
There are no new big patterns. There are no new big concepts and ideas to bring that evolution to us. Rob Pike thinks that the concepts he used twenty years ago are the best possible way of implementing everything and he creates Golang.
The evolution of software engineering, and maybe the whole evolution as a concept is a tick-tock. Software engineering had its latest tick at nineties, when the concepts we call modern were developed. And the latest tock was the rise of the internet, and it given the single-computer-centered Von Neumann architecture really hard challenges. I mean ticks are theoretical inventions and patterns and ideas and etc, while tock is more of some practical, business-oriented implementations.
PHP is still in use. We have troubles with scaling and deployment. Banking systems still run old Java, Windows XP and even COBOL. We had persistence really, really long time ago, and now frontenders reinvent it and call it 'immutability'!
We had our tick many, many years ago. It's time for tock. With not only scientific but commercial use of things such as Clojure, CRDTs and maybe Rust lang, we are heading straight to our new big tock, which'll bring us new great problems to solve.
That's how any evolution goes.rant rust lang paradigms rob pike evolution golang ideas rust wk127 clojure patterns software engineering -
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
-
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 ?8 -
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
-
Golangs error handling is really annoying. I'm writing a cli that does a bunch of stuff, and a lot of that could cause an error. Now I have to either explicitly ignore the errors everywhere or write an abundant if, that simply checks if the error exists and print it to console. So I either won't see any errors when something goes wrong, or I will have ugly bloated code... wtf, I want "throw" back8
-
if err != nil {
if err.Error() == sql.ErrNoRows {
return nil, err
}
return nil, err
}
found me some choice, grade A Go code here.5 -
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 😁😁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
-
Past month I had been working on a JSON hierarchy construction from flat rows returned by query where some bugfuck had introduced pagination for some damn reason, I never gave a flying duck to this till I get a email from one of the clients who supposedly made a complete hierarchy and my endpoint wasn't returning some hierarchy after some levels.
Frustrated that my service layer there is a bug, I debug to realise only certain rows are getting sent back from the query and ebullient from this fact , I put the bug on the DB person and walk off for a smoke.
After a smooth drag , I realise while closing the email on my phone that this client had entered 10 on pagesize which would indeed just return 10 rows. *Facepalm* I didn't even need to debug all this and now I had to a face a db person I just plastered a bug on. BAHHUMBUG2 -
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 -
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 wrote my own API for a project and there are literally three endpoints and I spend a solid 4 hours trying to figure it out3
-
!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 -
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
-
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
-
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 -
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. :-) -
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 😅11
-
I downloaded Go to my Raspberry Pi with the wireless connection of my school and the download was running for 30 minutes (99mb file). (I had a download speed of 55 Kbit/s.) Then I saw I downloaded the wrong one which isn’t working with Raspbian. 😒
-
Was reading an ebook about Golang in the garden. Having read the first chapter I looked up. And only then noticed this view... What is the philosophical lesson?4
-
I'm getting started with Go (so cool so far!) and I'm trying to interact with Tumblr API using their Go Client...
Every time I google something about it I got the growing feeling that I am the first person who uses that client LOOOL2 -
Okay, managed to negotiate with my manager to deploy our first Lambda + Golang service. Muehehe. Let's have some fun!!!5
-
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 -
I've ranted about this before, but here we go again:
Go Plugins.
I was racking my brains trying to figure out how one could possibly implement plugins easily in Go.
I had a look at using RPC, which requires far to much boilerplate to be realistic. I looked at using Lua, but there doesn't seem to be a straight forward way of using it. I was even about to go with using WASM (yes, WASM). But then I came across Yaegi ("Yet another elegant Go interpreter", you heard right: "interpreter"), Yaegi is also very easy to use.
There are a few issues (including some I haven't solved yet), including flexibility (multiple types of plugins), module support, etc. Fortunately, Traefik just released their plugin system which is based on Yaegi (same company), and I got to learn a few tricks from them.
Here's how module loading works: The developer vendors their dependencies and pushes them to a repo. The user downloads the repo as a zip and saves it to the plugins folder. I hash the zip, unzip it to a cache, and set the the GOPATH for the interpreter to be that extracted folder. I then load the module (which is defined by a config file in the folder), and save it for later. This is the relatively easy part.
The hard part is allowing for different types of plugins. It looks easy, but Go has a strict typing system, makes things complicated. I'm in the process of solving this problem, and so far it should go like this: Check that the plugin fits an arbitrary interface, and if it does, we're good the go. I will just have to apply the returned plugin to that interface. I don't like this method for a few reasons, but hopefully with generics it will become a bit more clean.1 -
A command-line animation command.
Input frames and an expression
It will be able to reorder frames, play video/frames/music in the background, smooth transitions, diff and patch frames and render into a video
It will be written in Go. No idea what to call it.
What do you think?8 -
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.
-
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
-
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 -
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 -
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.3
-
Go is the language JavaScript programmers retire to when they get old. Like the Florida of programming languages.2
-
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 -
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.12 -
Just wrote the first part of what will become a rather large Go project!
Almost the whole thing is gonna be pluggable, which adds an extra challenge, but nevertheless, the is gonna be a fun ride!
Also, it's gonna be Open Source, but until I'm at a reasonably stable version, I'm gonna be leaving it closed. Lmk if you're looking for something to do and want to join, this is gonna be a big project.7 -
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 -
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 -
Slowly adapting Go to some microservices projects I have. Shit is intuitive as fuck and I believe it has to do with what lil knowledge I had of working with C back in uni and by myself. For the web Go fits quite nicely. Really loving my time working with this language.
Now, if i could somehow throw it into the mix at work and build something with it it would be quite fun.1 -
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
-
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 -
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
-
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
-
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 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
-
may do an extreme rpi project…
is a self driving go kart or self flying drone cooler?
and for the drone, i think it would be easier, what do you guys think?
please answer - also for the drone, is there a way i could get it to connect from anywhere (within reason)? i know if it were a cell phone, i could get a signal from anywhere, but i don't want to pay for a monthly plan.question java raspberry pi testing dart golang python rpi opencl fuck fuck fuck fuck fuck fuck fuck fuck fuck4 -
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
-
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 -
when the management team wants a new application with an insane deadline and for you to train someone on how to code.
-
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 -
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 -
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 -
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 -
I just discovered that Go needs a very long time to compile a 120MB source code file. Beside the fact that the file was very big, it just contained a big amount of byte arrays.
Did anyone had ever such big source code files?5 -
Any good Golang tutorials on concurrency/goroutines?
I kinda understand the principles but I fail to develop something a bit complex, like one example presented during a conference about coordinating chefs on a kitchen :/1 -
The makefile:
'
GOPATH=$(pwd)
clean:
@echo "cleaning :)"
@rm -rf $(GPATH)/bin
'
the "oh crap":
make clean1 -
Any Go devs in Windows out there? I'm interested to hear about your dev environments.
IDE, Powershell vs MinTTY, native windows vs WSL, other tools?4 -
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
-
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 -
Alright, part 2/4 of my new project is done!
For those who are curious what this project is, I'll be posting some more info later this week! I just want to finish the v0.1 initial alpha/MVP and then I'll be revealing all the details.9 -
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.7 -
!rant
Should I learn golang or kotlin?
At this point all I know is they're 2 up and coming languages... Maybe2 -
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
-
#2020 resolutions:
1. Learn Nodejs/E.
2. Learn Golang.
3. Forget to return back home from college.3 -
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 -
!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 -
tl;dr:
What is a good start in go?
My wife wants to upgrade her coding skills from „I heard it at college“ to „I actually did something with it“.
I want to learn Go and start coding a bit more. My background is mostly C++ (Backend) and a bit Java (Fronted) some years ago before I went more into testing. For test automation I always use the language that makes the project happy, often Java.
We want want to join forces now, take a vacation and implement a small microservice in Go for my wife’s product (she is a PO) using pair programming.
I want to prepare that a bit. What is a good course or web tutorial to start, that some of you took and can recommend?
Thank you very much!!6 -
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.6
-
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 -
*starts reviewing code that I wrote at some ridiculous hour*
var glPassiveDebugging bool = !true
and to think people say that I'm too serious, and never do anything silly... -
someone brought something to school today, a "ac receiver" or "av receiver" or something? he pointed it at the board and turn it off, and i heard he opened someone's email with it? does anyone know what this could be?question python opencl rpi raspberry pi testing fuck fuck fuck fuck fuck fuck fuck fuck fuck dart java golang6
-
Today, a class team made a presentation about Go and Echo, instead of Go and GTK+ because they couldn't make their GTK+ example work their PC. I was so excited because I love Go (novice, though) and HTTP frameworks.
The past week, another team made a presentation about C++ Builder, but ran a hello world in C++ as example using Bloodshed Dev-C++ running through Wine in macOS. I was trying not to laugh and I kinda felt bad for them. They passed anyway.2 -
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 -
I often get posed the option of using Go or Node, personally I think they’re both good languages and that they both have different purposes. But I was just wondering, what’s the sentiment on DevRant?9
-
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? }17 -
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 -
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? #wtf2
-
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 -
Want to start learning a new language (non-webdev), but can't decide between Rust, Elixir and Golang.
Any thoughts or comments?9 -
Has anyone had issues with the Docker Go Client (moby) and using containers with pointers? It would seem that the client swaps pointers or something, so I'd have to use the value instead. Might be very unclear, but if someone's had similar problems, I think you'd understand 😅1
-
I was bored, spent an half hour writing a non-recursive, relatively-high-allocations, somewhat slow Fibonacci function.
Here you go:17 -
Where can I find good golang documentation? This is not helping me :\
https://golang.org/pkg/syscall/...5 -
Opinions
Hello, I’m considering building a web framework.
My ideal features would be:
Customizable authentication system(considering using a jwt lib)
Embedded DB(bolt db)
ORM( writing my own)
REST api to DB (via code generator)
Code generator(generation of models and views via cli)
GUI to db(some admin dashboard)
CORS(web service right?)
Why?
Ease of development
Fast prototyping of small-medium web services.
Fun.
My question is, do i have to many things on my platter? Should i narrow it down into less featured framework? What feature should I focus on? How should i benchmark it? Should i write tests for absolutely everything or just for exported methods? What should i take into consideration when developing ORM API, Auth API...
The language is Go
Thank you for your input10 -
Yeah, my interest in programming is returning! After creating a Keybase and a Telegram bot using Go. 😎
-
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 -
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. -
Can anyone tell me how I can integrate Mongo DB with golang?
I found go-bongo, but it's not well documented.5 -
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
-
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
-
making a self driving go kart controlled with a rpi, should i use python, java, dart, or something else? python seems like the obvious choice.
i plan on making it have google maps integrated, with netflix and music player, with a touchscreen.
i was thinking c++, but a gui with c++ didn't seem ideal.
what would you use?
also is an rpi too slow to make the go kart be *relatively* safe?question dart golang python testing fuck fuck fuck fuck fuck fuck fuck fuck fuck rpi java opencl raspberry pi self driving3 -
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. -
So remember rant from yesterday about Go plugins? Well turns out that a new version of Traefik was just released with plugins based on Yaegi!
"It can't all be good news" you say, suddenly paying attention. You're right, their implementation is a bit weird and I don't fully understand it... So I've decided to try to ask for help from the guy who wrote the feature, let's see if he responds... -
-> 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 -
How effective are visualizations for monitoring infra on AWS?
https://reddit.com/r/aws/...
Can visual infra monitoring be effective?
Pros and cons? -
Speaking of Go.
defer() is like blessing.
Every time I code in Python, especially asyncio code, I wish it has something similar.2 -
Somehow mocking xhr requests (?) for Axios is really hard to make it work. I use React Cosmos as I'm re-doing the frontend of this already running in production and works great, but when my component communicates with the backend it breaks and I'm unable to test the full behavior.
Then, it occurred to me that trying to mock Axios may not be the best. So I came with this scheme where I would have a configuration variable with a default value and change that when I need to work with React Cosmos, which in turn changes the behavior of `/auth` to return a valid JWT in response to a GET, put an Axios interceptor in my outermost Cosmos decorator and BAM! suddenly was able to develop and test my React components closer to how they would work in production.
It surprises me how simple this endeavor was, and because everything runs orchestrated by docker compose things run smoother.
(this is not an excuse to not to learn how to deal with the mocking issues of Axios, after all I wont have a working backend every time I work in some frontend application)5 -
My current stress ball, should I be worried ??
Looks like I'mma need those 500 +1s to get my new stress ball, promise I'll treat it differently this time 😂😂 -
Can I use raspberry pi as Go server and also for public access?
or better find a cheap vps? (there aren't any actually, after I convert the price into local currency)10 -
Why on earth can one perform calculations on pointers in c++? I can think of a dozen ways this could go wrong, but none where this is useful.
Following example:
int t = 1234;
int tt = 5555;
int* p = &t;
int* pp = *(p + 1):
Here pp will give me 5555...5 -
Trying (having) to develop game by Golang. Pick Raylib as library to go. Got stuck by cgo with goroutine somehow.
Deadline is coming... -
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 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 -
Does anyone know about an embedded document store database for Go? Currently I'm using SQLite but now I want to implement more features for which I prefer a document store database.1
-
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
-
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 -
Does someone know a good getting started/good resources to learn coding WebAPIs with golang from the start?1
-
Like 3 days looking for graphenedb connection with golang..
just did..
im so happy :'D
guys lets party!! -
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 idea13
-
Decided to start live coding the development of Covey because it helps me be productive.
Feel free to join in: https://youtu.be/Lnw4-NaHW4Y2 -
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 -
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. -
How do I get into low-level programming?
I already know Java Js and Python and I feel I want to take my skills to the next level and learn C or Go.
But what to start with in that area after I learn the language? I have no idea what to do with low level stuff. -
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/6 -
I was thinking about a cli tool, involving sending emails through smtp because its purpose.
I was very happy finding out that Mozilla with the ISPDB offered a large list of configuration parameteres for various email provider, but I noticed that its not updated.
Any tips is welcomed6 -
panic() from golang. I panicked a lot as go didn't have the "evil" try catch. But then panic came for my aid.
-
Hey guys, maybe you can help me out. I have wasted more time than I care to admit looking for a performant web socket solution. I want something that I can build on for several planned projects. Need high performance, low resource requirements and good stability. I don't trust server side JS.
I am very guilty of premature optimization.
I saw someone recommending Nchan, a addon to Nginx. Sounded good to me. Got it built and running. But it turned out in my initial tests that it ate CPU like crazy with just a few connections. Wasn't overly stable either. Everyone in the field claims great performance but few seems to deliver. Since I have been looking at Go based solutions because it's a language I know and it seems more promising for this than PHP.
Well the Go scene for web sockets is confused. The Gorilla ws does appearently not support concurrency, rather weak for a Go package. I tried others, like gobwas. Seemed good. Got it working but it won't work with SSL. So useless to me despite much promise. Most solutions I can find are maintained by just one or two people.
Anyone has any good advice? -
Finally a good answer on how to wrap my Go web app in a container. https://stackoverflow.com/questions...1
-
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.
-
Hi guys! Last time you gave me a lot of good advice about my gophers. Thanks! Kubernetes Contributor Celebration is coming soon so I have these cute gophers
If you liked it and want to support me on Redbubble
https://redbubble.com/people/...
or TeePublic https://teepublic.com/user/...
Thanks!5 -
Just finished creating a new git repository for my modules (we're using microservices)
Guess what, i misconfigured the socketmaster and the apps port
So the socketmaster run on :9000 meanwhile my apps run on :8888
Spend a good 1 hour to find that problem
#deploymentIsCrazyThings -
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.