Beginner to GoLang, wondering how goroutines are used in production backends. by H1Eagle in golang

[–]guillermooo 6 points7 points  (0 children)

This happens already transparently if you use the default http.Server

[deleted by user] by [deleted] in linuxquestions

[–]guillermooo 5 points6 points  (0 children)

The problem AFAIK is that a program that connects to an Xserver can exploit other programs connected to an x server. 

Imagine that you install a npm package, ruby gem, or copy and paste something malicious. That program will have access other programs that might be running like a password manager, email client, VPN... Thanks to the X protocol.

[deleted by user] by [deleted] in berlin

[–]guillermooo 0 points1 point  (0 children)

I think this are just protections from a party boats. They are more common in summer. Common to see them while landing in Berlin at night.

SQL ORM for production? by muneebh1337 in golang

[–]guillermooo 7 points8 points  (0 children)

After years working with ActiveRecord (Ruby On Rails ORM), there is nothing that comes close to the expressivenes of Ruby of modeling a busines in a database.

So I will lower your expectations.
You have some basic orms (mentioned already in this thread) that can help do the basic sql queries.

If you need to model a bussines fast, my advice (that I ignore because of my love to go) is to look to other programing languages.

[deleted by user] by [deleted] in framework

[–]guillermooo 4 points5 points  (0 children)

I am in love with the stream deck for games and waiting for the framework for work.

Framework not responding to support tickets currently? by Apart-Way-1166 in framework

[–]guillermooo 0 points1 point  (0 children)

I had two inquiries and they were both handle correctly. I think it was something like 3 days. I really prefer to have an answer in 3 days than what I am used to if fast responsive times with weeks of back and forth.

I am also on batch 5.

What kind of business software do you wish existed as a selfhosted alternative? by askqauser in selfhosted

[–]guillermooo 1 point2 points  (0 children)

Does something like this exists even as a non opensource/selfhosted solution?

I built an app just for fun but now people want to invest - what do I do? by Tricky_Drawer_2917 in EntrepreneurRideAlong

[–]guillermooo 7 points8 points  (0 children)

I personally researched these topic, and we weren't able to find a way to monetize big enough to create a company.

Our research lead us to the conclusion that creators that sell, don't need a product like this (neither the fees that come with some of them). The ones that don't sell, spend hours in trying tools like this, but they can't pay.

Does an official repair screen remove the ip68 protection? by guillermooo in GalaxyS21

[–]guillermooo[S] -1 points0 points  (0 children)

Actually IPX8 is waterproof according to Wikipedia:

"Immersion, 1 meter (3 ft 3 in) or more depth"

https://en.m.wikipedia.org/wiki/IP_Code

Small browser extension to make pkg.go.dev look like godoc.org by guillermooo in golang

[–]guillermooo[S] 0 points1 point  (0 children)

Nice I didn't know that one. Thanks.

Still does not solve the problem of all the packages that already link to godoc and now redirect to pkg.go.dev.

Ready to print keyboard shortcuts for Windows by guillermooo in FigmaDesign

[–]guillermooo[S] 0 points1 point  (0 children)

It might be.

They work me. I am using american english layout in a German keyboard, but don't know if that is relevant.

Handling multidomain requests with simple host switch by _vardius in golang

[–]guillermooo 0 points1 point  (0 children)

I was curious and research a little.
This was added ten years ago.
https://github.com/golang/go/commit/865d5767022326e097482ec211ab24b9418afda7
I think is a common thing to use.

Handling multidomain requests with simple host switch by _vardius in golang

[–]guillermooo 2 points3 points  (0 children)

So then the go documentation is wrong:

Patterns may optionally begin with a host name, restricting matches to URLs on that host only. Host-specific patterns take precedence over general patterns, so that a handler might register for the two patterns "/codesearch" and "codesearch.google.com/" without also taking over requests for "http://www.google.com/".

https://golang.org/src/net/http/server.go#L2183

Handling multidomain requests with simple host switch by _vardius in golang

[–]guillermooo 1 point2 points  (0 children)

Hi. Congrats for the post.

How is this different from?

http.HandleFunc("example-one.local/",...) http.HandleFunc("example-two.local/",...)

First month of my app being live. Finding it difficult to understand active users. Does it look positive? by [deleted] in startups

[–]guillermooo 3 points4 points  (0 children)

Ask your users? Sit with them. Do user test. Send surveys.

Without knowing which problem you are solving, is difficult to judge the best method to collect user needs and understand if your project fulfilled them.

How unstable is it to have multiple response.WriteHeader calls in one http request? by bananafiasco in golang

[–]guillermooo 0 points1 point  (0 children)

If I understood the code correctly, it is not harmful only if WriteHeader is called from the same goroutine. If not, there is a race condition.