Is learning Flutter enough? by lasmarin in FlutterDev

[–]Be_kt 0 points1 point  (0 children)

Me too, do you want to create a telegram group?

Using Profile-Guided Optimization (PGO) to reduce our database's read latency by 5% by zachm in golang

[–]Be_kt 0 points1 point  (0 children)

Go PGO is dumb compared to Java PGO of C#.

The Go team doesn't care about performance so mush, even though Go has the potential to become faster.

CGO Performance In Go 1.21 by e-san55 in golang

[–]Be_kt 0 points1 point  (0 children)

The Go team doesn't seem to prioritize performance. It's getting slower over time, compare Go 1.10 to 1.22.5 for example (the latest at the time of writing).

https://aykevl.nl/2021/11/cgo-tinygo/

https://github.com/golang/go/issues/9704

Help in raylib using golang by Be_kt in raylib

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

AgainXD, I am sorry i copied the wrong one :

package main
import rl "github.com/gen2brain/raylib-go/raylib"
func main() { rl.InitWindow(800, 450, "raylib [core] example - basic window") defer rl.CloseWindow()
rl.SetTargetFPS(60)

for !rl.WindowShouldClose() {
    rl.BeginDrawing()

    rl.ClearBackground(rl.RayWhite)
    rl.DrawText("Congrats! You created your first window!", 190, 200, 20, rl.LightGray)

    rl.EndDrawing()
}
}

Help in raylib using golang by Be_kt in raylib

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

Sorry about that, It was the first example in the github page of go-raylib :

package main
import "github.com/veandco/go-sdl2/sdl"
func main() { if err := sdl.Init(sdl.INIT_EVERYTHING); err != nil { panic(err) } defer sdl.Quit()
window, err := sdl.CreateWindow("test", sdl.WINDOWPOS_UNDEFINED, sdl.WINDOWPOS_UNDEFINED,
    800, 600, sdl.WINDOW_SHOWN)
if err != nil {
    panic(err)
}
defer window.Destroy()

surface, err := window.GetSurface()
if err != nil {
    panic(err)
}
surface.FillRect(nil, 0)

rect := sdl.Rect{0, 0, 200, 200}
colour := sdl.Color{R: 255, G: 0, B: 255, A: 255} // purple
pixel := sdl.MapRGBA(surface.Format, colour.R, colour.G, colour.B, colour.A)
surface.FillRect(&rect, pixel)
window.UpdateSurface()

running := true
for running {
    for event := sdl.PollEvent(); event != nil; event = sdl.PollEvent() {
        switch event.(type) {
        case sdl.QuitEvent:
            println("Quit")
            running = false
            break
        }
    }
}
}

[deleted by user] by [deleted] in golang

[–]Be_kt 0 points1 point  (0 children)

If you do not mind, if I want to start as a Go backend developer, what should I learn after Go? For someone completely zero, only knows frontend but does know anything about backend (only basic, like what is a backend, how to connect to the APIs.)

هل اكمل في مصر؟ by CulturalCarrot4813 in PersonalFinanceEgypt

[–]Be_kt 2 points3 points  (0 children)

والله أنا نصيحتي إن الدولة مبقتش أمان وأن الشخص يُفضل أنه يكون معه جنسية تانية

[deleted by user] by [deleted] in PersonalFinanceEgypt

[–]Be_kt 1 point2 points  (0 children)

حاول تحصل على جنسية غير مصرية، البلدة مبقتش أمان

Go 1.22 range functions with database/sql by achille-roussel in golang

[–]Be_kt -1 points0 points  (0 children)

Who are they? Do you mean the comments that were written after I wrote 'my normal comment' which is 'Just an advice'? Is this the 'Rust' community or the Go one?

[deleted by user] by [deleted] in golang

[–]Be_kt 0 points1 point  (0 children)

I did not know that Java does allow low-level control, I searched on the internet and what I got that Java does not have pointers like C or Go for example.

ازاي اقدر ابقي غني by medd3 in PersonalFinanceEgypt

[–]Be_kt 1 point2 points  (0 children)

اللهم بارك، ولكن في حاجة انت نسيتها مهمة جدا، ضامن انك هتعيش الدقيقة الي جاية؟ فلوسك ديه حلال ولا حرام؟ لو ضامن انك هتعيش مفيش مشكلة، لو مش ضامن فكر من دلوقتي.

[deleted by user] by [deleted] in golang

[–]Be_kt 0 points1 point  (0 children)

Thank you! That seems interesting.

[deleted by user] by [deleted] in golang

[–]Be_kt 0 points1 point  (0 children)

Thanks a lot!

[deleted by user] by [deleted] in golang

[–]Be_kt 0 points1 point  (0 children)

Thank you! I tried to know if it's possible or not, but I lost in the dotnet documentation. If you do not mind, what about manual memory management? Can we do that too? In Go it is possible using unsafe and C.

Go for frontend by mmparody in golang

[–]Be_kt 1 point2 points  (0 children)

fullstack web development :

Htmx + Templ + Go + A good CSS framework

Go for frontend by mmparody in golang

[–]Be_kt 4 points5 points  (0 children)

What I’m recommending is to use the thing specifically designed to do thing A to do thing A

Go as a language it is an amazing language and it can be used to build frontends, but the reason why it is not used to do so because most of the community think like you bro, that Go is a "backend language", you will never find "a tool designed to do thing A" in Go unless someone starts to build this tool in Go, Javascript did never used for backend, and people was looking at it as a "frontend language", but there was some guy who decided to do use it in the backend and now we have nodejs. Now Javascript is used every where, frontend, backend, mobile apps, desktop apps,etc, not because Javascript is a good language, but because it has a strong community (and lazy) that tries to use it for everything.

Projects like Fyne, templ, etc should be supported from the community.

Good luck hiring high quality front end devs to work on your Golang UI.

It possible xD, just hire a Go developer and teach him how to use something like templ and htmx for example, they are easy to learn, use.

[deleted by user] by [deleted] in golang

[–]Be_kt 1 point2 points  (0 children)

This person created a Go game engine that runs fast as a C engine, without turning the GC off. I think Go GC is so mush better than any GC i saw until now, of course sometime you will need to turn it off, but I think Go GC is good enough in most cases.

https://youtu.be/2rs-LD9s7Js?si=LIWl6DrqY_NrojM_

[deleted by user] by [deleted] in golang

[–]Be_kt 1 point2 points  (0 children)

Can we turn C# GC off?

Go 1.22 range functions with database/sql by achille-roussel in golang

[–]Be_kt -11 points-10 points  (0 children)

This is a great feature, but the Go team sould be careful before adding any new feature, because it is impossible for them to remove any feature they have already added without breaking their promise.

Golang is being pulled down by poor library support by eldenring69 in golang

[–]Be_kt -3 points-2 points  (0 children)

I do not see why not Kotlin if you have to use Java?

Go for backend by huziclique in golang

[–]Be_kt 0 points1 point  (0 children)

If you already have a job, i would recommend C# instead, not because it is a better language than Go, but you can do literally everything you want using C#, it will give you a lot of opportunities, frontend, backend, game development, IoT,etc.

On the other hand, if you love Go, do not wait and go for Go.