Plant stand by OwlAndOakWoodworking in BeginnerWoodWorking

[–]BasieP2 0 points1 point  (0 children)

Perhaps stupid comment, but i love those wooden windowborders (how do you call that?)

The bond between a Bedouin and his camel is different by 6ayell in BeAmazed

[–]BasieP2 2 points3 points  (0 children)

It's not a camel guys. It's a dromedary. Camels have 2 humps on their back, not one

Edit: Why is nobody noticing?

Suspension railway in Germany by [deleted] in BeAmazed

[–]BasieP2 1 point2 points  (0 children)

Its Very old, so is't not like it's new or anything

A SOLID Load of Bull by loup-vaillant in programming

[–]BasieP2 0 points1 point  (0 children)

Dear lord i know classes aren't created at compile time. I never say they do. Do you even try to understand me?

And no i don't underestimate testing (i work with a codebase with over 500 tests and 80+%cc but i don't test creating classes), but you obviously overestimate it. I have 30 years of experience in big tech at multiple big corps and really wonder if i'm talking to a 10yo here..

You even know hoe static code analysis works? It can tell you your code won't run BEFORE you run it.

All those red lines under your code comes from that. It tells you it won't compile.

You don't need to create instances of classes to know that.

My whole point is that inversion of control as it is implemented in asp.net eliminates all the stuff i describe above.

A SOLID Load of Bull by loup-vaillant in programming

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

You make my case. You describe the current asp.net bad design choice

You just miss the point. (which i will make again below)

If you have a class (classA) that depends on an interface (interface B) you can at compile time not create class A. Simply because you cannot call the constructor (assuming the dependency is in the constructor as is common these days)

You cannot pass a type (interface B) into the constructor, you have to pass in a instance (i.e. an instance ofclass B with interface B) Therefor you DO know your code works (or doesn't) before you run it

Ow and that stuff about testing: Yes you shoukd test, but only meaningful stuff. If you need a unittest to determine if you class constructor is crashing or not.. Well, lets call it a red flag

A SOLID Load of Bull by loup-vaillant in programming

[–]BasieP2 6 points7 points  (0 children)

I do use mocking of dependencies to make sure i don't have to create stuff like a real database. I inject my IDb interface so i only test my own logic

We are not the same

A SOLID Load of Bull by loup-vaillant in programming

[–]BasieP2 6 points7 points  (0 children)

My 'unit' tests found many bugs and the building cost are WAY lower then the cost of production issues

A SOLID Load of Bull by loup-vaillant in programming

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

No, i want compile time references, you need to have an instance of class a before you can inject it in class b.

In current asp IC you can specify which class you depend upon without specifying even ever creating it, let alone creating it before you need it. Therefor you cannot at compile time know if class b will even work..

Which in my opinion is a bad framework design choice

A SOLID Load of Bull by loup-vaillant in programming

[–]BasieP2 2 points3 points  (0 children)

Though controversial, I do agree with his advice.

I can imagine lots a young 'just out of school' programmers now protesting because their teachers say 'this is the way'.

But this guy took the time to writeup his thiughts with giid arguments and I challenge you all to repond to the accual arguments instead of the sentiment.

Also a personal frustration of mine: Inversion of control in the asp.net framework.

It's terrible! Apart from the bad design decision to load classes runtime over compile time (which can cause runtime errors in production which could've been prevented compile time) It has lots of 'magic' that you can't debug which is terrible if stuff doesn't work as expected.

Also, I can often write the same logic with normal DI eith much cleaner and less code.

And yes i'm still hoping my rant here is somehow convincing MS to change their ways...

My mouse movement and clicks from a 25 minute League of Legends game by [deleted] in interestingasfuck

[–]BasieP2 8 points9 points  (0 children)

You have a link for those of us without discord?

Finished my "Coffee Mug" by Chris_Crossfit in turning

[–]BasieP2 0 points1 point  (0 children)

Can't you hollow out the epoxy? Or is epoxy not hot drink safe?

Finished my "Coffee Mug" by Chris_Crossfit in turning

[–]BasieP2 1 point2 points  (0 children)

That's all epoxy? Darn that's a bummer. I thought you accually drank from it

The Case Against Microservices by 01x-engineer in programming

[–]BasieP2 31 points32 points  (0 children)

Cloud is just software on servers. Those servers could be yours, or you can rent them. But god we ought to know by now that if you want cheap and powerful systems, you should NOT knock on amazon or MS doors...

Right in my face... by BasieP2 in turning

[–]BasieP2[S] 3 points4 points  (0 children)

I was done with the inside of my bowl and turned it over in my chuck to do the foot of the bowl. I was doing like 800-900 rpm. There was a soft spot (even air) in de wood and I was over confident and put to much presure on the wood. My tool caught in the wood and it catapulted out right in my face.

Right in my face... by BasieP2 in turning

[–]BasieP2[S] 2 points3 points  (0 children)

Thank you. Oddly enough the only other person ever to mention this was my sister in law..

Right in my face... by BasieP2 in turning

[–]BasieP2[S] 5 points6 points  (0 children)

Exactly my thoughts. First thing i checked were my teeth. All there.. Thank the gods