/dpt/ daily programming thread

What are you working on Any Forums ?
Previous:

Attached: 20211022_125435.jpg (634x845, 153.29K)

Was gonna read this over the weekend but ended up beating my beat twice. It killed my motivation and energy to read it. May God help me go through this addiction.

Attached: 20220321_064624.jpg (2992x2992, 1.73M)

god i fucking hate paperwork

How does monke become so fat

Help with c#. Ultra beginner.

Is picrel the only code that matters? I'm following a tutorial, and he's using Visual Studio 2017 and the prewritten codes on his screen are different from mine.

He has
>using System;
>using System.Collections.Generic;
>using System.Linq;
and a couple more

while on my VS (2019) the only pre-written lines are
>using System;
after that there's only a line break and then it's already the namespace line

It doesn't matter, right?
I can ignore everything and just focus on what's inside picrel?

Or is it important that I use the same version as his?
I don't mind if I have to

thanks

Attached: Untitled.png (984x532, 133.16K)

he ea
t

jackffrut

VS should let you know if you're missing some import.

but too much
someone should take it away

How the hell do i write a hook functuon in C to handle errors in delay loading dlls?

Do i define the hook in the helper function or the main script itself?

I'm getting "PfnDilHook is not defined"

this is getting out of hand

Attached: seed.png (2000x750, 529.89K)

>didn't write any code today
oh shit will they find it out?

it doesn't matter

Was a dev, moved into a director role now where I spend most of my time wrangling retards. I'm implementing a new KPI for lines of code written. I just want to selectively enforce the rule to fire women and minorities. Fuck them and their faggot bootcamps. I'm sick and tired of everything breaking because these disgraceful ghouls can't code for shit and they were hired for mUh DiVeRsItY.

I HATE GIT
EAT SHIT AND DIE TORVALDS

Attached: __remilia_scarlet_and_yajuu_senpai_touhou_and_1_more_drawn_by_sekiyu_spartan__40d4ce96684df1b661f791cb0954aa03.jpg (860x760, 254.1K)

>started learning more about C bc I want to improve my C++ skills
>half of it, is obsolete and/or useless, other half feel inferior to C++
I started to understand why Rustards dislike C.

Attached: 1647844954792.jpg (1280x720, 43.97K)

>half of it, is obsolete
There is very little "obsolete" C code.
There is a lot of obsolete rust code, though.
>other half feel inferior to C++
You are just retard.

can someone halp with Java
I want to filter a list using a Java stream.
I never worked with the i->i thing.

Basically I have an observable list with all my objects in there, and I have another list that only has some objects from the original list. I want to filter that will give me a new list with the difference between the total and the second list.

Attached: zz.jpg (726x67, 5.86K)

git is based

>started learning more about C bc I want to improve my C++ skills
Imo it's a waste of time. If you don't want to use C separately from C++, that is.

what is FilteredList?
"i->i thing" are anonymous functions in Java. I think under the hood they are a shorthand for overloading a single method interface.

what would be the best way to filter an observable list like so:
I have one with "total products" and one with "some products". How can I make a list that has the difference between the two? Like "total products" minus "some products"

the newest language standards make it so the entry point doesn't need to be part of a class or even inside a Main() function

it should work if you change what they wrote to look like the pic you posted

OK I have
ObservableList missingParts = mainInventory.getAllParts().filtered()
.filter()

I just don't know how to filter against another list

Attached: ass.jpg (615x69, 6.09K)

yes you will be arrested for crimes against wagiekind

OK I figured out how to do it with just a for loop... I'm going to leave filtered items and predicaments for later study.

Attached: faf.jpg (623x266, 18.68K)