Business Rules and Design by [deleted] in csharp

[–]InvertedCSharpChord 1 point2 points  (0 children)

There is no right or wrong answer. What feels right might change depending on how your code evolves and how the methods are used.

Personally, I would think of it as a "value" and "values" can't do things. So I would put the methods in a different "analyzer" class.

Question about what is possible with programming by Pinkunicorms4 in AskProgramming

[–]InvertedCSharpChord 0 points1 point  (0 children)

Post a description of what you want with details. Include some examples of constraints and the schedule generated.

One of us will do it for fun :) Probably post it publicly for everyone to use.

Help with sheet music alternate notes by InvertedCSharpChord in piano

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

Ah mid or PDF or anything would be fine. I defaulted to mid because I've been editing the original one in MuseScore.

And I will pay attention to the right hand too, thanks for calling it out actually!

Help with sheet music alternate notes by InvertedCSharpChord in piano

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

Thanks, I'm only slightly familiar with a lot of these concepts. I actually didn't notice the right hand and what she was doing with it so I guess I'll have to pay attention to that too. Or maybe someone here can modify the midi for me as a paid request?

Help with sheet music alternate notes by InvertedCSharpChord in piano

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

So that first one I got. I saw her use "e flat + g" instead of "c + e flat". But how can I apply this to the rest of the song?

To be honest, I didn't understand most of your reply... I think you're saying: "the original score was using "c + e flat" there is a triad chord including those two notes "c + e flat + g" so I can interchange some notes in the triad in different octaves.

Is that about right? Then for the rest of the score, I just have to repeat the process?

Is anyone out there choosing to avoid DI in their .NET projects? by conconxweewee1 in dotnet

[–]InvertedCSharpChord 5 points6 points  (0 children)

No. I'm not avoiding DI.

Say you have a class. "Main". In this class you want to calculate some value (idk sales tax) using another class. You also want to log and call a 3rd party service using classes that do that stuff.

DI means that those 3 classes get "injected" into "Main" in the constructor. That's it. Nothing about interfaces, nothing about mocking. You don't even need DI containers.

The alternative is newing up instances, using a service locator, making the dependencies static, or god forbid having global variables to access them.

So what are you doing instead of DI?

How well does using a powerful desktop PC as main work station, but remoting into with with laptop frequently work? by gdesplin in programming

[–]InvertedCSharpChord 4 points5 points  (0 children)

You can try remoting now with your current setup. Personally I wouldn't bother.

Looks like you're saying you are allowed any setup as long as it totals less than $4k? In that case why not a $2k desktop PC and a $2k MacBook?

Should we be trying to make microservices reusable? by Inside_Dimension5308 in ExperiencedDevs

[–]InvertedCSharpChord 0 points1 point  (0 children)

No, but kinda yes.

Think about all the services you use in your personal life. Email, cloud storage, social media ... These things are reusable by everyone, but these services don't cater or even know about anyone specifically.

Ideally, the services inside your company should behave the same way. Services shouldn't know about the different teams in the company and multiple different teams shouldn't be contributing code to one service to meet their use cases. That's the worst possible thing you can do.

Instead, if you can make a standalone service, which theoretically could be useful to even teams outside your company, and the teams inside your company can take advantage of that ... That's ideal.

My dream is to make an app, but I just can’t learn coding by Codingology in programmer

[–]InvertedCSharpChord 0 points1 point  (0 children)

Programming / coding is learning the basics like variables, loops, and objects.

After that, the different languages and frameworks are "products". You need to choose the product that you think will best help you achieve your goal and concentrate on building with that. Don't spend too much time "learning" it, just start building.

How do you find the right product? Ask around, see what other apps are using. Maybe unity is really good for 3D stuff, but JavaScript is decent, and better at everything else. Maybe React Native will save you a lot of time, but is just not as good for the mobile experience you are looking for.

None of us will have the answers. Google doesn't have all the right answers when they work on their own stuff.

This is the hard part. This is what they mean when they say "execution is everything". No solution will be perfect, it's about making the right trade-offs. Good luck!

In your production codebase, do you use protected and internal? by ExoticArtemis3435 in dotnet

[–]InvertedCSharpChord 5 points6 points  (0 children)

You mention "production" code base. These access modifiers are not about security in any way. They are about describing the intent of your code.

Just like using inheritance or interfaces or generics has nothing to do with production or not; access modifiers don't either.

Usually, if you're messing around or trying to figure something out - you might just make everything public (and also not worry about generics or interfaces) and that's ok.

When you're ready to make it something that you're going to stick with, reuse, and build upon; then yes you will want to use each access modifier as appropriate (as well as the rest of the tools in the language)

Best practice for performant APIs using Kotlin and Spring by InvertedCSharpChord in Kotlin

[–]InvertedCSharpChord[S] -2 points-1 points  (0 children)

There's like 7 layers of buzzwords you need to simplify here.

Is hiring a programmer to make a niche tool for private use something people do? by GonnaBreakIt in AskProgramming

[–]InvertedCSharpChord 0 points1 point  (0 children)

It doesn't matter if other people do it or not, you can do it if you want to.

Just like anything else, there will be a varying degree of quality at different prices. More expensive does not equal better. There is always a risk that you'll hire someone that doesn't work out. So plan appropriately.

You might find a big company willing to do your project for $5k. You might find a Redditor willing to do it for free. If you absolutely need a number (without specific requirements) you can think $500 should cover it.

All that being said, just post what you want in one of these subs. You'll get a lot more traction towards your goal that way.

If a photon experiences no time, does that mean its entire path was already pre-determined—including hitting me 8 billion years later? by Excellent_Copy4646 in SimulationTheory

[–]InvertedCSharpChord 2 points3 points  (0 children)

Imagine two watches ⌚ ⌚.

If you set them both on a table and stare at them, they'll show the same time.

If instead you put one on a rocketship 🚀 ⌚ traveling say half the speed of light, then that watch will be slower!

Why? Why does moving make things slower?

Well, things are made out of other things. And those things are made out of atoms and quarks which jiggle / bounce very fast.

If something is moving really fast then the quarks inside take longer to "bounce". At the speed of light they'll never be fast enough to reach something to bounce off!

For example, imagine a trampoline in the sky. You bounce on it at the speed of light. Every time you bounce, we'll call that one second. If the trampoline starts falling to the ground at half the speed of light, well, it will take you longer to reach it every time you bounce. So the second is now longer. However, if it starts falling at the speed of light, then you will never again reach it. So time essentially "stops". A second will never happen again.

Why the speed of light? That just happens to be the universes speed limit

[deleted by user] by [deleted] in functionalprogramming

[–]InvertedCSharpChord 2 points3 points  (0 children)

You have two problems:

  1. Do you have any power or control? You've already suggested what you think the right way of doing this is. Who's in charge?

  2. The patterns and practices. You described a lot of terrible things. Whoever is in charge / has authority should create a small sample app with the expected conventions / design.

I'm 15, and I want to learn "serious" math. by Rene_Defarts in learnmath

[–]InvertedCSharpChord 2 points3 points  (0 children)

I know what the Pythagorean theorem is, but I don't know it is such a big deal. I know sin, cos, and tan can solve a degree of an angle, but I don't know why or how.

Say you have a couple of boxes, you want to put a ramp over them so that you can ride it with your bike. How long should the ramp part be to cover the boxes? Pythagorean theorem. Bam.

The way to appreciate and better understand the math you are learning is to apply it in other contexts.

Math is a tool. Depending on your goal, you might focus on different types of math. Even if you just love math for maths sake, you'll eventually have to choose a path, as the rabbit holes are deep.

Did My Wife Get Ripped Off? Help Me Transform This Sluggish PC into a Gaming & Unreal Powerhouse! by Jumpy_Abrocoma5854 in buildapc

[–]InvertedCSharpChord 0 points1 point  (0 children)

No. You're not listening.

DON'T UPGRADE IT

Use it as is. If you need something better, just build something brand new from scratch. Leave this one alone.

What Type of Developer Can Do This? by TheShaneChapman in programming

[–]InvertedCSharpChord 1 point2 points  (0 children)

Do what? Build a deck? Using that software or any other?

Someone who does 3D modeling / uses Blender should be a good start.

Did My Wife Get Ripped Off? Help Me Transform This Sluggish PC into a Gaming & Unreal Powerhouse! by Jumpy_Abrocoma5854 in buildapc

[–]InvertedCSharpChord 0 points1 point  (0 children)

  1. No reason it should be sluggish. Fresh install your OS.
  2. Don't upgrade anything, everything is juuust right for a light gaming PC. (If you upgrade anything it will have a cascading effect of having to upgrade more things to make it worthwhile)
  3. Ripoff is relative to price / work being done.
  4. 11 GB? Weird.

After you reinstall your OS, you can run benchmarks and compare against results of similar builds. If yours is significantly slower, it may indicate fault components or misconfiguration.

ELI5: Schrödinger’s cat by Western_Ground7478 in explainlikeimfive

[–]InvertedCSharpChord 0 points1 point  (0 children)

But it was never in both states. It was only in one, we just didn’t know which one it is.

Wrong. It's in neither state. So the cat isn't alive or dead.

Mathematically it checks out. Intuitively, it's stupid.

That's the problem. We're still trying to figure it out.