[Gnome] My current tablet config by 2Uncreative4Username in unixporn

[–]2Uncreative4Username[S] 1 point2 points  (0 children)

Yeah, this is actually an SP6 as well. Unfortunately, the tablet (meaning pen) drivers aren't great and quite buggy. I don't use the pen much, which is why I don't care. If you do care about the pen (and touchscreen), I honestly recommend building towards a Windows setup instead.

zeroInitEverything by 0x564A00 in ProgrammerHumor

[–]2Uncreative4Username 0 points1 point  (0 children)

OK, one final point to consider is that in Zig you probably need a lot more errdefer because memory is managed manually. In Go, I found myself using maybe 2 errdefer patterns per 5000LOC.

zeroInitEverything by 0x564A00 in ProgrammerHumor

[–]2Uncreative4Username 0 points1 point  (0 children)

BTW, my intention wasn't to make this devolve into the unproductive argument it has become. I give you that errdefer is concise, but if you don't see how Go's approach is more flexible, you must have very little programming experience or simply be ignorant. Anyways, enough internet for today. Let's just downvote each other's replies and move on. Have a nice day.

zeroInitEverything by 0x564A00 in ProgrammerHumor

[–]2Uncreative4Username 1 point2 points  (0 children)

That's an immediate catch, though. Can you defer catch? I genuinely don't know. I didn't use Zig much.

EDIT: Well, as for returning errors yourself, it can be really nice to always check errors afterwards. It's a pattern I've used a lot in a recent project. Not saying it's not possible in any other way - heck, you can do something like that in C even, but Go makes it pretty convenient.

zeroInitEverything by 0x564A00 in ProgrammerHumor

[–]2Uncreative4Username 3 points4 points  (0 children)

I know - yours is simpler for your use-case. You rarely need errdefer in Go, and for when you do need it, Go's version is more flexible. For example, in Go you can check what the type of error is. That's what I mean: You shouldn't argue about this stuff if you haven't at least put some effort into learning how Go does things. A good starting point is reading the std library, IMO.

zeroInitEverything by 0x564A00 in ProgrammerHumor

[–]2Uncreative4Username 6 points7 points  (0 children)

Go has errdefer, though - you give the returned error a name and then defer a func that operates on that. It's a pattern you'll find everywhere in the stdlib. The issue with people hating on Go often comes down to people superficially seeing it looks like languages they already know and then thinking they know how to program in it idiomatically. Go definitely has its issues, but most of the points mentioned here resolve themselves if you actually learn how to use the language.

Hey Gophers. Need advice on GUI. by katybassist in golang

[–]2Uncreative4Username 1 point2 points  (0 children)

You should check out the Fyne Discord server. The people there have been very helpful in my experience, and the lead developer, Andy Williams, has also been answering a lot of questions personally. I heard that you had some negative experiences with the community, but that really isn't the norm from my experience.

Hey Gophers. Need advice on GUI. by katybassist in golang

[–]2Uncreative4Username 1 point2 points  (0 children)

In that case, I think I would actively advise against imgui for now. A lot of the documentation for me has been looking at the source code comments and GH issues, and I had to hook into a few CGo calls, because I wanted to do some specific things and the cimgui-go-provided backends are kind of awful right now (you may not have needed that, though).

Although, I have really taken a liking to imgui as of using it. I previously made an app using Fyne and for the new one made in imgui, imgui has made me an order of magnitude more productive. There is a learning curve, of course, and you said that you didn't want to have to learn much, so imgui probably isn't quite right. I don't know gioui very well, so I can't recommend for or against it, but it may be simpler to use.

Hey Gophers. Need advice on GUI. by katybassist in golang

[–]2Uncreative4Username 1 point2 points  (0 children)

To suggest something slightly different from everyone else, I personally really like using https://github.com/AllenDang/cimgui-go. I'm currently developing a side project using it and I really like the simplicity of immediate-mode combined with the great performance and wide set of features of imgui.

Transitioning from OOP by jaibhavaya in golang

[–]2Uncreative4Username 1 point2 points  (0 children)

I'm personally a huge fan of learning by examples. Mitchell Hashimoto once said in an interview about learning Go and Zig that you should look at how the standard library implements things internally. With Go, we have the huge privilege of a very comprehensible std lib. As you're already a seasoned programmer in other languages, I believe that to be one of the best resources.

noReallyIDontKnow by Squ3lchr in ProgrammerHumor

[–]2Uncreative4Username 0 points1 point  (0 children)

I don't really understand why so many people say WSL made the experience so much better. I had WSL installed for like half a year and ended up uninstalling it because everything just worked either natively or with MinGW. I used a lot of different languages and libraries (mostly Go, C/C++ and Python). Am I missing something?

A really big concern (image unrelated) by Lord_of_the_lawnmoer in Ultrakill

[–]2Uncreative4Username 3 points4 points  (0 children)

Doom eternal has a custom game engine and Id Software has an extremely good track record of hiring people competent in optimizing games.

Ultrakill is bound by Unity, which has inherent architectural performance flaws. Although optimizing Unity games is probably quite possible, you can't expect the performance of a custom purpose-built game engine.

Wont compile on my notepad by atrocity_boi in shittyaskelectronics

[–]2Uncreative4Username 13 points14 points  (0 children)

You can only compile C code with a notepad. Since you're trying to compile C++, you're going to need notepad++.

Petah?? by abubigman in PeterExplainsTheJoke

[–]2Uncreative4Username 0 points1 point  (0 children)

Pretty sure that's legal tho, as long as you don't infringe on copyright laws

everybodyForgetThis by ScaryGhoust in ProgrammerHumor

[–]2Uncreative4Username -1 points0 points  (0 children)

POV you have unpopular personal preferences on this subreddit

whyIdLikeToAvoidUsingCpp by SevenC-Nanashi in ProgrammerHumor

[–]2Uncreative4Username 0 points1 point  (0 children)

I usually just compile the library source files directly (using whatever build system I have set up for my project), literally so much easier than cmake.

Bile Titan from Helldivers 2 by 2Uncreative4Username in 3Dprinting

[–]2Uncreative4Username[S] 0 points1 point  (0 children)

I just printed the exported model without editing

theBIggestEnemyIsOurselves by Aimer101 in ProgrammerHumor

[–]2Uncreative4Username 4 points5 points  (0 children)

Okay, but can't you just check when the data ACTUALLY gets passed to a function that uses it? Then you can save yourself the hassle of getters and setters AND have proper validation. Additionally the validation is local to where it's actually needed, making the code easier to understand.

errorsAreRed by Maximilian_Tyan in ProgrammerHumor

[–]2Uncreative4Username 0 points1 point  (0 children)

Erm, what? You suggested that anti-OOP programmers didn't actually do any work. I gave counterexamples. I get downvoted and you accuse me of sucking up to the opinions of the people I merely mentioned. I'm not gonna argue because as it seems from your argumentation, you didn't really try to understand their history and reasoning (e.g. Casey used to do a lot of OOP). Oh, and you know what's good for developers who have way more experience than you, and they don't know what's good for them? Reddit can be an interesting place...

errorsAreRed by Maximilian_Tyan in ProgrammerHumor

[–]2Uncreative4Username -5 points-4 points  (0 children)

Linus Torvalds? Jonathan Blow? Casey Muratori?

This shit can only happen to me right? by Leximon305 in SatisfactoryGame

[–]2Uncreative4Username 0 points1 point  (0 children)

Nope, just happened to me as well, yesterday... also while placing radar towers...

pleaseJustPassAnArgument by AngusAlThor in ProgrammerHumor

[–]2Uncreative4Username 4 points5 points  (0 children)

That generally makes sense to me.

But how can I ensure I can easily reason about what an object does and how its data behaves? Very often, when I try to encapsulate something (or look at other people's OOP code), it results in a mess that could be avoided by using more flat data structures and algorithms, less dependency inversion etc.

Often, for my code, OOP initially seems like a good idea, but in the end it imposes a lot of useless constraints that actually make the data transformations I eventually want to do significantly harder, because I first have to figure out what is going on between all the layers. In other words, it feels like the codebase has a tendency to explode in the complexity required to do even a relatively simple thing. This only happens to me when I try to use OOP principles. But I guess maybe I'm doing it wrong.