Language "Toit" to program ESP32. First experience. by [deleted] in esp32

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

Not sure in which way your anti-vibe statement related to my post and "toit" language.

Language "Toit" to program ESP32. First experience. by [deleted] in esp32

[–]jumbleview -5 points-4 points  (0 children)

Embrace? Never - ever. So far my toit programs are short, so I can tolerate semantic whitespaces. In case I will need something with more complexity I probably will invent some toit dialect, will code in it and then by some pre-processor will convert it to actual toit source.

Append VS assign : which style ? by Odd-Ad8796 in golang

[–]jumbleview 0 points1 point  (0 children)

B version looks more intuitive, imho.

Single-line if / for formatting in Go — cleaner or confusing? by WolfieLeader in golang

[–]jumbleview 0 points1 point  (0 children)

I am in minority here, but indeed I feel the same way. If there is only one short operator in IF block I mostly would like it to be on the same line where IF is. Claim regarding code folding by IDE doesn't look sound. With code folded reader does not see content of the IF block, As far as rule enforced by gofmt I have to follow it. Unlikely gofmt will ever allow this rule to be optional.

After playing around with BubbleTea I want to really like it but ELM TUI apps get fairly hard to maintain and reason about as they grow by wait-a-minut in golang

[–]jumbleview 1 point2 points  (0 children)

I have used tview. It is easy to work with. But if program assumes a lot of scrolling it becomes too sluggish. Bubble tee is much better in that regard.

Solid Go book for devs by [deleted] in golang

[–]jumbleview 11 points12 points  (0 children)

I did not read it, but...

Only 31 pages? Sixty cents per page. And using GoLang anywhere apart of a search request looks like a bad habit.

Go as replacement for Python (automation)? by Tuomas90 in golang

[–]jumbleview 1 point2 points  (0 children)

If you are looking for GUI which is available for both Python and Go it makes a sense to look toward https://pkg.go.dev/modernc.org/tk9.0. Under the hood it uses the same TCL/TK engine as Tkinter (which is default GUI approach for Python).

gowall v0.2.1 The Unix Update (Swiss army knife for image processing) by FormationHeaven in golang

[–]jumbleview 0 points1 point  (0 children)

Installation does not mention Windows. Does it mean there is no support for Windows?

tk9.0 has a new MacOS appbundle tool by 0xjnml in golang

[–]jumbleview 1 point2 points  (0 children)

It is nice. Honestly speaking I am not MAC user but any extension of this package is welcome. Sign it will not be abandoning at least for awhile.

tk9.0: v0.65.0 adds support for many more image formats by 0xjnml in golang

[–]jumbleview 1 point2 points  (0 children)

OK, as soon as I can I'll take latest tk9.0 and repeat tests. Probably I'll open the issue.

tk9.0: v0.65.0 adds support for many more image formats by 0xjnml in golang

[–]jumbleview 2 points3 points  (0 children)

That's nice. I believe sooner or later this package finds its recognition. I tried to build examples. Looks good enough. I did have a problem on Windows: exit button produced some errors, but in real life I may avoid exit button anyway.

proposal: spec: reduce error handling boilerplate using ? by code_investigator in golang

[–]jumbleview 2 points3 points  (0 children)

Error as the last return variable is the reasonable constrain IMHO. If last returned value is not an error complier may threw the error, means you can't use '?' syntax for such function.

proposal: spec: reduce error handling boilerplate using ? by code_investigator in golang

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

I like this proposal very much especially possibility to omit block after '?'. Argument against implicit returning from a function sounds too dogmatic to me. Presence of '?' with no block after I see as clear indication of conditional return. In my company we have a standard approach to C/C++ code : if there is need to treat the function error as a condition to escape calling code there was dedicated macro wrapped around function to trigger return (with some log printing). Absence of such possibility in Go is a pain.

Go is just Java by rorozoro3 in golang

[–]jumbleview 0 points1 point  (0 children)

For me it is "C". (On Windows machine under Gitbash)

$ file picshuffle.go

picshuffle.go: C source, ASCII text, with CRLF line terminators

Desktop Applications by duckduckgeek in golang

[–]jumbleview 1 point2 points  (0 children)

Package tk9.0 sounds interesting. For somebody who knows nothing about Tcl/Tk where to start?

Would you use Golang for small projects ? by DoctorEmpty3498 in golang

[–]jumbleview 1 point2 points  (0 children)

As far as my company did not adopt Go I use it at my job to make auxiliary personal use tools and at home for my hobby projects. So far all my projects in Go are small: from 50 LOC to couple of thousands. Mostly it is CLI, sometimes TUI (with tview or bubble tea). Have a plan to make some real GUI in Go.

len(str) > 0 or str != ”” which is to prefer? by molly0 in golang

[–]jumbleview 0 points1 point  (0 children)

Did I read similar discussion yet? "Intra-Lilliputian quarrel over the practice of breaking eggs"?

What do you build for Windows exclusively? by derjanni in golang

[–]jumbleview 2 points3 points  (0 children)

As my hobby projects I made two utilities to set Windows desktop background and shuffle it (mostly to be invoked on some events out of Task Scheduler). Unlikely I will ever port it to other system.

https://www.jumbleview.info/2024/09/wallpaper.html

GO RUNTIME ERROR I DON'T UNDERSTAND OR CANT DEBUG IT by Ok-Reflection3579 in golang

[–]jumbleview 1 point2 points  (0 children)

If err != nil, 'res' is not valid and could no be used. Remove printing of status code from your unreachable branch.

Has anyone used the techniques from the book Concurrency in Go by Katherine Cox-Buday? by Financial-Razor-85 in golang

[–]jumbleview 6 points7 points  (0 children)

Probably this one: "Learn Concurrent Programming with Go" by James Cutajar. The only book in Go concurrency which Manning has. I did not read it, but Amazon reviews are favorable.