Spyke

Posts

How can we use C# in a responsible and FOSS way?

C# is a useful object oriented programming language. You can generally do the same stuff as you can in C++ but as a game modder there is 1 huge advantage C# has over C++ and that's the way it handles include path orders, or it's lack thereof.

I actually typed out and described a scenario where this starts messing things up but it was quite verbose. But the tl;dr is that it's possible to get stuck in a situation where you have circular include dependencies (kind of like how circular dependencies screw you over really hard in Linux package managers sometimes). If you planned the structure of your code really really well this shouldn't be too big of a problem but if you're extending something that is both complicated and wasn't meant to be extended upon, it starts becoming a problem.

C# doesn't really have this problem because instead of including header files, it does that "using blahblahblah;" business which doesn't run into include order problems.

C# is "open source" but it was invented by Microsoft and is hard to use without dealing with Microsoft. I don't want to contribute to the agenda of proprietary software in any capacity so I make all my projects in C++. C++ is very powerful but for certain gaming-oriented use cases, while it is the best choice most of the time it's not the best choice all the time.

How do I use C# in a responsible and open-source way? Do I just have to avoid using visual studio? I don't own a single Windows or Mac computer that actually boots up. Do I avoid dotnet framework? Do I have to avoid everything dotnet? What about Net Core?

Typing g## into a terminal window isn't a thing so what's the FOSS way to use C#?

View original on lemmy.ml
30

What type of tubing should I get?

I've been using PrimoFlex LRT for years and it's great. Unfortunately they discontinued the 3/8 ID 5/8 OD in the UV Blue color. I'm so bummed about it but I'm also not going to replace all my fittings for a different size that they make the UV blue version in.

$40 for 10 ft is kind of steep for something that's going to be not in the color I wanted. I can get 100ft of several different types of that stuff at Lowes for $40 and still the 5/8 OD thickness. They make it in PVC, reinforced PVC with nylon braid and Polyethylene. I'm not sure what the PrimoFlex tubing I've been using is made of but it feels like PVC. Maybe it's not though. I care a lot about longevity and don't want to put something in my loop that might cause corrosion or gunk buildup. So what do you guys think?

Tl;dr will putting hardware store PVC tubing in my build cause long term problems?

View original on lemmy.ml
2
programming·General Programming DiscussionbyPeterPoopshit

What do you do when VS Code refuses to "turn on" intellisense for a file?

I have this one .hpp file in a c++ project that's complicated. Too complicated. For this ONE fucking file, VS Code has decided to underline a bunch of random stuff in red and it refuses to show me autocomplete data. It doesn't show me member functions or variables and it doesn't show me functions that match what I've typed so far BUT ONLY IN THIS ONE FILE. The only reason I'm using VS Code at all is because this project is so mind-bogglingly complicated i simply can't remember everything and switching back and fourth between tabs, windows and monitors wastes so much time when you have to do it constantly.

VS Code always does this but you can usually get rid of the problem by closing it and opening it again. No such luck here. Having to do any work in this file without those autocomplete features is going to be such a drag. I actually tried moving the content of this stubborn hpp file to the h file but somehow VS Code is smart enough to troll me by underlining all the same stuff in red and not showing autocomplete data for the 1 block i copied in. How does it even know to troll me like this?

Other than switching to Windows 11 and using visual studio (like ms wants us to), what can I even do?

Also, there's nothing wrong with the code itself. g++ happily compiles and runs it and the relevant parts of the program work as expected.

Edit: hmm I changed the define keyword a little and its working for now although I wouldn't be surprised if that's not the case tomorrow. VS Code is good when it works but when it's being unreliable its just a glorified Windows XP notepad.exe with a dark theme.

View original on lemmy.ml
6
shittyasklemmy·Shitty Ask LemmybyPeterPoopshit

Unfortunately, we have to move to a different lemmy instance since "trolling" isn't allowed on lemmy.ml. Any ideas on where we should go to?

OK guys I just got out of my 2 day ban for "trolling". All I did was make post on here and it wasn't even the type of thing that would get you in trouble for posting it on reddit. This is unacceptable. The goal of this place is to be as much like shitty ask reddit as possible. Lemmy.ml apparently doesn't like shitposting so we need to move somewhere with better rules.

Any ideas on where we should go? By default, I'm going to go with beehaw maybe but idk.

View original on lemmy.ml

Does anyone know how to fix that one bug in cinnamon where the file "save as" window doesn't let you rename files and keeps redirecting your keyboard input to the search bar?

All desktop managers have pros and cons. Cinnamon's biggest issue for me is the "save as" window. To get to it, go somewhere such as a web browser, right click on something and do "save as". Now try to name that file anything other than what was already in the filename textbox. It won't let you. You click on the box to position your cursor, type 1 character and it immediately forces your context focus into the search bar for searching for files in the directory. Clicking the box again, type 1 character and it forces your context focus and cursor into the stupid useless fucking search bar again. I can only rename files by bringing up a text editor, typing what I want and then pasting it into the save as name box.

Does anyone know how to fix this?

View original on lemmy.ml
8

How do I bypass or override the verified links "feature in android 12 so that I can actually open lemmy urls in jeroba?

Android 12 fucking sucks. There's this new "feature" where you can no longer go into app defaults and manually define what urls can be opened by which apps. There are "verified links" now which means nothing other than your browser gets to open shit.

When someone posts a link to a lemmy url, that means I can never open it in jeroba. It always opens in my web browser. This significantly reduces the overall usability of the app.

Is there any way around this? I'm one of the lucky few to have an unlocked bootloader phone so maybe I can get an older rom but I wish there was another way.

View original on lemmy.ml
13

You reached the end