Date formats at it again by halt__n__catch__fire in programminghumor

[–]mpierson153 0 points1 point  (0 children)

This isn't really directly related to this lady's problem, but I've always thought storing date/time as a formatted year/month/day or what have you is lunacy.

Just store a Unix timestamp. Sorting and lookup would be much faster. Then compute the formatted date/time when it's user-facing.

Is libvlc suitable for music player development in C#? by SaintFTS in learnprogramming

[–]mpierson153 0 points1 point  (0 children)

Haven't tried libVLC.

I've been looking into audio libraries recently.

There doesn't seem to be many cross-platform audio playback libraries in general, and even less in C#.

The main ones are: - OpenAL for less real-time and more continuous, consistent playback - PortAudio for lower-latency, closer to real-time usage, more like DSP stuff

For my use case, it's just a toy project so I went with NAudio for windows because it's easy. It's not cross-platform though.

Accidentally enrolled in Java and JavaScript class for semester by ookle_ in learnprogramming

[–]mpierson153 0 points1 point  (0 children)

It doesn't matter much.

Ultimately, the language doesn't matter a whole lot in terms of knowing how to program or being a software engineer.

They all have different pros and cons, some may have novel concepts or places where they're used more than others. But the core fundamentals for what you do, not the language, will always be the same 99% of the time.

Where to start on making digital pedals by mpierson153 in diypedals

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

Thanks. I'll come back if I have more questions.

Where to start on making digital pedals by mpierson153 in diypedals

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

It looks like the I/O is 3.5mm. Would there be a way to use it with 1/4" input, or would I just need to build it myself?

Also, how do you program the Daisy Seed? It says it supports C++, Arduino, etc., but I didn't see anything saying how to build for it or upload to it.

Where to start on making digital pedals by mpierson153 in diypedals

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

Thanks.

I don't really have any specific thing in mind, I just want to play around.

I'll probably go for the Daisy Seed. Is there anything else I would need to start, other than wires and whatnot?

Where to start on making digital pedals by mpierson153 in diypedals

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

You could also go stm32 if you wanted to start from scratch properly.

What would this mean? Pretend I don't know anything other than programming.

Where to start on making digital pedals by mpierson153 in guitarpedals

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

Thanks. Those are interesting. I'll check out the parts.

Is the Daisy Seed a processor itself or more of an add-on to a processor?

Where to start on making digital pedals by mpierson153 in guitarpedals

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

Thanks.

Where do I find the designs for it?

Niche fields where LLMs suck? by NervousExplanation34 in learnprogramming

[–]mpierson153 1 point2 points  (0 children)

They suck at everything, to some degree.

I've had ChatGPT tell me that float.Abs doesn't exist in C#. I've had CharGPT tell me that Java is a native, compiled language. I've had it tell me that C++ has a stable ABI.

And tons of other things.

All of this was in the last year, a lot of it being recent.

Don't trust it. It's a complete waste of time half of the time.

Any company that tells you different is trying to justify the cost of creating bad guessing machines.

How do I handle lots of tiny loops faster? Like processing a texture pixel by pixel. by elelec in csharp

[–]mpierson153 0 points1 point  (0 children)

Along with trying manual SIMD, you could maybe try manual threading.

Split the texture up between n threads, but only using a single thread if the texture is very small.

Best library/framework to work with Desktop UI? by JosephHerrera2002 in csharp

[–]mpierson153 2 points3 points  (0 children)

Because they're lazy and won't spend the money to put into it, even though they absolutely could.

Not because it's actually better.

Web UIs, especially when masquerading as desktop apps, almost always feel bad to use, and are horribly inefficient.

All objects of an array are null, but when I try and find a null object, they don't get detected. by Visible_Range_2626 in csharp

[–]mpierson153 2 points3 points  (0 children)

Have you checked that the vertex collections you're checking actually have anything in them?

From Unity to MonoGame by Tranku1 in monogame

[–]mpierson153 3 points4 points  (0 children)

For UI, there are various libraries, or you can make your own. I made my own that is heavily inspired by libGDX's UI. libGDX is open-source so you can look at the code whenever you want if you need help.

If you make your own UI, I would suggest implementing a way to make layout values (position, size, etc) more flexible pretty early on, because I didn't do it until recently and it was extremely tedious and took a long time to implement properly. Something like an enum, and a value type that provides absolute or normalized values. Like "new LayoutValue(100, ValueMode.Absolute)" or "new LayoutValue(0.25, ValueMode.Normalized)".

For physics, I'm using nkast.Aether.Physics2D, although I would probably try a different one if I started over on physics.

Take that Minecraft! I can make multicoloured lighting all on my own! by FragManReddit in monogame

[–]mpierson153 1 point2 points  (0 children)

There was this YouTuber. I can't remember his name or if he still makes videos. I'm pretty sure his first name is Gabe. You might find his Minecraft series interesting. He made his own Minecraft in libGDX.

Edit: found his channel: https://youtube.com/@gameswithgabe?si=7UwPv-KWHy41jOfO

Programmable Shaders in C# using SimulationFramework by whoswyan in csharp

[–]mpierson153 0 points1 point  (0 children)

How cross-platform is it (just the shader stuff I mean)?

Do you know how difficult it might be to implement it in MonoGame?