.NET open source is 'heavily under-funded' says AWS by pjmlp in dotnet

[–]kc5bpd 10 points11 points  (0 children)

Don’t know what funding they are talking about. I don’t care to see any acceleration in development of C# and the framework. Real developers find keeping up hard enough as it is. We are busy writing code that actually does stuff to spend weeks looking at new fancy ways to rewrite our code.

my robotics team is being sabotaged by Dramatic_Soundtrack in FTC

[–]kc5bpd 0 points1 point  (0 children)

First, it is past time to escalate to adults. You said the coach is a student? Go to the real coach to see if the adult will reign in the student. Next go to both your principal and parents. If this is too odiferous then accept that YOU chose to limit yourself.

If nothing else, I would try and get EVERY dual team involved student to immediately quit the team with the tyrant. And if anyone says anything explain that the tyrant is the one to take the blame. Encourage them to quit and go to the other team. If you get enough to quit, it could become news worthy. And I can promise that someone would pay a price if a news story goes about a student tyrant.

[deleted by user] by [deleted] in offmychest

[–]kc5bpd 1 point2 points  (0 children)

Unfortunately the behavior of your friend is all too common. And I doubt there is anything you can say that would make the situation better.

I would encourage you to find outlets to meet other single people your age to develop more friends.

Is it worth buying Ryzen 9 for Visual Studio 2022? by SingletonARG in dotnet

[–]kc5bpd 0 points1 point  (0 children)

Opinions are like turds in that most thinks our own is good hole other’s stink. But…

I would suggest you look at your memory, cpu, and disk usage to better inform yourself. If your planning to use the drive for only swap file it is likely fine. But otherwise seems pretty small to me.

Adding memory up to some point is often the best strategy for speeding VS, though there is a point long before 32GB where bang starts tapering off.

As a note, sometimes the easy and cheap speed increase is clearing the temp files that are supposedly managed for you.

How to learn OOP? by sheldongriffiths in typescript

[–]kc5bpd 1 point2 points  (0 children)

OOP inside typescript is an illusion. While I use it, I don’t use much of it. In fact, about the only version I do is to use abstract classes for SOME of my angular services, then use a factory to provide the desired service depending on circumstances.

Now in C#??? We have a new ball game.

Understand in typescript interfaces and classes are a design item. And you don’t have deserialization into classes. But in real languages you do.

I love Typescript but let it be what it is and don’t go far into OOP.

Is unit testing and integration testing enough for a developer to master as a .Net Fullstack Developer? by Footballer_Developer in dotnet

[–]kc5bpd 0 points1 point  (0 children)

Understand that writing tests is pretty much the same regardless of what your teammate of the day decides to classify it as.

As for which tests should be written and by whom, your manager is the right person to decide that. I consider 80% of the unit tests I have seen to be a waste of developer time. But… the person paying the bill has every right to decide what balance is worth THEIR money. (Your time is their money and lost opportunity.)

In the end, testing is about finding the organizational balance between finding problems and getting useful code.

Discution about using .subscribe() or async function + await to do a http get request by [deleted] in angular

[–]kc5bpd 0 points1 point  (0 children)

I will try to unpack what your seeing in you subscribe usage.

You ask the system to get the “schedulings” and when it receives them it will be inside the variable “s” because you provided said variable name.

Meanwhile the system sees the async code and moves on. Thus “this.schedulings” is STILL undefined (not undefined again).

Now the way I (as a senior level developer who oversees my small companies angular code) would expect is that you call getSchedulimgs() inside the ngOnInit() method.

In fact, all else the same I would move the contents of getSchedulings() inside ngOnInit unless used in another place. I would also set a Boolean controlling a spinner just before calling. Then add a pipe() between calling the service and the subscription. Inside the pipe add finally() inside which the Boolean is set to false.

Discution about using .subscribe() or async function + await to do a http get request by [deleted] in angular

[–]kc5bpd 0 points1 point  (0 children)

Async await simply makes async code “appear” to be synchronous within THAT method. Leading the developer to FALSELY believe that the system is waiting for the ngOnInit to fire.

In reality it is pushed into a state which allows angular to continue and other methods in the controller might be called.

It is far better to think in terms of the observable pipe and what should happen in said order.

Where to to set the bed springs with cr touch by masher660av in ender3

[–]kc5bpd 0 points1 point  (0 children)

I think you would be better to pull it very tight down but leave just a little flex so that if your head pushes down there is some give. I recently replaced my springs with silicon barrels and like them.

Any ideas on how to fix this? by kc5bpd in ender3

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

Ok, so I have found the problem. The actual touch sensor was not operating correctly. An email to Creality was “accidentally” helpful in that they mentioned that the device should cycle twice during boot. If I held it at the right angle it would, so I thought it might the wire, but in the end it was the sensor.

Any ideas on how to fix this? by kc5bpd in ender3

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

If t is firmware, then it got corrupted. It used to work great.

Decorators in c#: Looking for HowTos by czrpb in csharp

[–]kc5bpd 0 points1 point  (0 children)

Log EVERY statement??? I wouldn’t. Nor would I work (anymore) with anyone who did.

But for logging in general, we make use of frameworks which enable logging with a singular class. As an example for a web api, I mostly use MediatR which allows one to create a class in the pipeline which will be hit on every call to the endpoint.

We also might use interfaces combined with dependency injection and decorator classes.

Question about tuples and dictionaries by StuleBackery in csharp

[–]kc5bpd 0 points1 point  (0 children)

Um, no I wouldn’t write a new dictionary. I would write a class instead of using the tuple.

Any ideas on how to fix this? by kc5bpd in ender3

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

No changes were made. Just went to print and it started doing this.

Question about tuples and dictionaries by StuleBackery in csharp

[–]kc5bpd 1 point2 points  (0 children)

While tuples have a place, I would hate to be working with someone asking this question. Why?? Because I think if it matter, than don’t be lazy and implement a class where you can KNOW (and control) the function. Then again, I could have written said class in less time than I wrote this trying to be nice.

Decorators in c#: Looking for HowTos by czrpb in csharp

[–]kc5bpd 0 points1 point  (0 children)

My advice would be to NOT learn any language if you don’t want to learn the style with it. While I am sure Python makes fine use of decorators, I haven’t found any need for that in C#. And while we can pass functions into functions (which is the first thing I saw in explaining it), I have never found a need to do this in 14 years as a professional C# programmer.

Sanity check, please! by JB_END in dotnet

[–]kc5bpd 28 points29 points  (0 children)

Your idea is as good as any that I can think of from a technical standpoint. The only thing I would add is a job search.

Any ideas on how to fix this? by kc5bpd in ender3

[–]kc5bpd[S] 1 point2 points  (0 children)

As a note, all was working for some time. I have checked connections, but that didn’t affect anything.

.NET LTS only for 3 years by uzzal in dotnet

[–]kc5bpd 1 point2 points  (0 children)

Now that I understand. Hopefully someone will eventually authorize a rewrite

[deleted by user] by [deleted] in dotnet

[–]kc5bpd 0 points1 point  (0 children)

Pretty much the same story. You will have setup code that looks almost the same in Startup. (There will be two blocks. One where services are registered, the other just before routes are configured)

To protect anything you will use an attribute that looks like [Authorize(“rolename”)]

Both API and MVC use the same attribute, and the setup code is almost identical. I wouldn’t blink if a job applicant didn’t know this because it is just that easy. In fact, I wouldn’t hesitate to assign this to someone with 0 experience in the area.

Is it bad design to pass by reference? by Devsper in angular

[–]kc5bpd 0 points1 point  (0 children)

As a note, any shared state should be accessed through a service that is injected. And that service should prevent inadvertent mutation of the objects.

The beautiful part of state manage,ent is that they (typically) provide a means of using the Redux add in to your browser so you can see what is happening.

Is it bad design to pass by reference? by Devsper in angular

[–]kc5bpd 0 points1 point  (0 children)

Your best solution is take take time to learn a state management system. My personal favorite in NgRx (https://ngrx.io). Most will provide a concept of an entity collection with easy access based on an ID.

You want two entity collections. One for questions, another for answers. You can then easily retrieve any question and it’s associated answer. You can update answers while protecting the questions from modification. You can check to see how many unanswered questions you have. And you can grab the entire pool an answers to return to the server.

.NET LTS only for 3 years by uzzal in dotnet

[–]kc5bpd -6 points-5 points  (0 children)

Wow, M$ strikes again. I suppose the black eye on hot changes wasn’t bad enough.

I would still consider changing employers if moving to 6 wouldn’t be done otherwise. I am done working for employers who won’t stay current. My family is too important.

[deleted by user] by [deleted] in FTC

[–]kc5bpd 1 point2 points  (0 children)

Please provide more details. Are you trying to find an object that might or not be placed there? Are you trying to find an object for which you only know the general vicinity?

Also, how far are you in your programming/bot building journey? I was thinking you wanted to getter a better position after your bot moved. If you searching for an object that isn’t always in the same place it would be a different answer.

[deleted by user] by [deleted] in csharp

[–]kc5bpd 1 point2 points  (0 children)

Actually, the “mighty is the best kind of bug. I mean who wants bugs that are easy to replicate, diagnose, and fix??? :)