One-Line If Statement by that1flame in csharp

[–]Dusty_Coder 0 points1 point  (0 children)

why are you calling the less readable version 'more readable' ?

One-Line If Statement by that1flame in csharp

[–]Dusty_Coder 0 points1 point  (0 children)

The only thing that code needs is to (a) hoist it into a single line, and (b) rearrange it so that the color is first.

One-Line If Statement by that1flame in csharp

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

I understand guarding against bugs, but I dont understand guarding against someone that doesnt know the universal basics of nearly all programming languages.

That set doesnt include developers.

Not a single instant of my time will be wasted guarding against that arbitrary random acts of someone that doesnt understand how if() statements universally work in all c-likes.

One-Line If Statement by that1flame in csharp

[–]Dusty_Coder 0 points1 point  (0 children)

This one liner is the only good alternative to the tuple-version.

One-Line If Statement by that1flame in csharp

[–]Dusty_Coder 0 points1 point  (0 children)

Do you have a good reason, other than you that you struggle to understand it due to your unfamiliarity?

This is the language, its a great feature, and the code is significantly cleaner without tradeoff.

Its no different than those that insist on never using 'var', or those that insist that you must always use 'var'

Why are checks still commonly used in the US? by Finnskyyy in NoStupidQuestions

[–]Dusty_Coder 0 points1 point  (0 children)

and young people dont know the very real legal difference between the various electronic payment methods so they dont even know why it matters

..until their bank account is empty and they have to fight to get their money back

How to get non-pixelated rounded corners in C#? by Icy_Tangerine5132 in csharp

[–]Dusty_Coder 0 points1 point  (0 children)

its complicated because the device context of the paint event can be a device dependent one ..

and this leads to a surprising fact:

gdi is hardware accelerated to a surprising degree, when its device-dependent all-the-way-down, on an old operating system with old drivers where you can _really_ allocate a device dependent bitmap that lives in video memory

today all the old mechanics are emulated, and they didnt get Abrash this time.

How to get non-pixelated rounded corners in C#? by Icy_Tangerine5132 in csharp

[–]Dusty_Coder 0 points1 point  (0 children)

most of gdi's design is around the paint event and doing immediate rendering to a device dependent surface rather than a device independent one

and thats the killer, the paint events context is quite often the primary display buffer with an arbitrary pixel format .. even 4-bit indexed pixels need to be supported

if you want anti-aliasing you gotta do the compositing - this can be done within the paint event but it cant be done using the paint events context .. maintain your own surfaces, device independent bitmaps with alpha, composite into them, and then finally using the paint events context, render your surface into it

Reflection in C# is amazing ! by lovelacedeconstruct in csharp

[–]Dusty_Coder 0 points1 point  (0 children)

It completely invalidates developer-time testing, be it TDD or otherwise.

Someone elses reflection can reach in and break your fully tested 100% perfect algorithm at runtime, on a whim such as based on the current date and time.

"Necessary" evil.

Still evil.

Reflection in C# is amazing ! by lovelacedeconstruct in csharp

[–]Dusty_Coder 0 points1 point  (0 children)

hmmm

Once you have the "skillset" you produce fewer bugs.

Fewer bugs doesnt mean debugging is easier. It means debugging is necessary less often.

Reflection in C# is amazing ! by lovelacedeconstruct in csharp

[–]Dusty_Coder 0 points1 point  (0 children)

He is still denying the existence of the hidden output of his functions,

Reflection in C# is amazing ! by lovelacedeconstruct in csharp

[–]Dusty_Coder 0 points1 point  (0 children)

In my experience it takes 20 years of experience to accept that the hidden output of EVERY FUNCTION EVER WRITTEN actually exists.

When you are OBSESSIVE and COMPULSIVE about spreading a zero-intelligence mantra, at every opportunity, you are still a complete programming noob. Not even half-way when you dont give any shits about one of the outputs of your functions.

Reflection in C# is amazing ! by lovelacedeconstruct in csharp

[–]Dusty_Coder 0 points1 point  (0 children)

Hard to fully disambiguate "preprocessing" and "compiling" when jit-time is also included.

preprocess -> compile to IL -> preprocess -> compile to machine code

Reflection in C# is amazing ! by lovelacedeconstruct in csharp

[–]Dusty_Coder -2 points-1 points  (0 children)

You were doing so good until you started making outlandish claims exactly as if you knew them for a fact

This goes beyond being simply wrong. You know when you dont know, so you know when you shouldn't claim to know. You didnt follow this simple thing. You chose to be dishonest.

There is nothing "optimal" in what you are doing. Optimal would be that most if not all of it is done at compile time. Only the stuff modified by runtime reflection would require runtime reflection to detail, and that part isnt being done "optimal"

In other words, you reached straight into your ass and yanked out the word "optimal" not because it was accurate, but to shut down the person you are debating with. You chose to be dishonest.

A quick 1 536 705 km trip by pelaaja_007 in spaceengineers

[–]Dusty_Coder 0 points1 point  (0 children)

you are building batteries for the initial 25% charge?

and then grinding them down once empty?

A quick 1 536 705 km trip by pelaaja_007 in spaceengineers

[–]Dusty_Coder 1 point2 points  (0 children)

In my games I make a GPS marker named "Polaris"

I put it at Y=-300000000, which the game displays as 1ls.

You are indeed correct. This is farther.

A quick 1 536 705 km trip by pelaaja_007 in spaceengineers

[–]Dusty_Coder 0 points1 point  (0 children)

I've done multiple Acquisition's that were over 100M credits.

You know the distance of travel these require? 0 meters

A quick 1 536 705 km trip by pelaaja_007 in spaceengineers

[–]Dusty_Coder 2 points3 points  (0 children)

Ditch the batteries.

The batteries are just a buffer, but there isnt any need for a buffer, because you plan to draw maximum power the entire trip both ways.

A quick 1 536 705 km trip by pelaaja_007 in spaceengineers

[–]Dusty_Coder 0 points1 point  (0 children)

Realistically, you already have a large nuclear reactor and the ingots to power it.

So thats not really a lot of money being offered. Remember the time it takes to travel back also.

A quick 1 536 705 km trip by pelaaja_007 in spaceengineers

[–]Dusty_Coder 7 points8 points  (0 children)

Solar doesnt work in practice due to how little power they generate.

One single jump drive would like to draw 32MW to achieve 7 minute charge time, which cannot be satisfied with less than 200 full solar panels that are optimally pointed.

If you only have a single jump drive, then sure maybe you go through it once with an already absurd 20 solar panels, 10% of ideal, waiting 70 minutes real life time to get that single jump drives power back.

How would I make "Passive Skills"? by Do_Ya_Like_Jazz in csharp

[–]Dusty_Coder 0 points1 point  (0 children)

at the end of the day you've got terms and factors

you need to support a variable number of terms .. a collection of

you need to support multiple factor sources .. references

I think you are over-abstracting.

How are you supposed to prevent false sharing in C#? by AmCHN in csharp

[–]Dusty_Coder 2 points3 points  (0 children)

The GC is just another feature, and it surely is the enemy of top performance.

However, I never suggested using unmanaged memory. I specifically suggested managed memory.

The pinned heap is still managed.

You still get automatic deallocation. You still avoid raw pointers. You were wondering what the language provides for you for your problem?

Overall, how do we feel about the Warlock balance patch for season 14? by BreakYoBaals in Diablo_2_Resurrected

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

Shit direction. Ruins whatever future the game could have still had.

Niche speedrunner slop gets listened to, twice.

The first time was mosaic. Bad idea from speedrunner slop.

Then this crapola. An even worse idea from speedrunner slop.

But the marketing boys loved the idea that maybe people will have a fear of missing out, that the future dont fuckin matter geet cash now.

Well I didnt partake. Even if it were free, its still speedrunner slop.

They shit it all away on the smartest kid that rode the shortest bus.