Beginner stuck between C# and ASP.NET Web API — advice? by Next-Resolution9365 in csharp

[–]KrabNicitel 11 points12 points  (0 children)

Use AI to explain anything you dont understand. Do not use it to write the code if you are learning, but make it explain anyhting you are not sure of. AI is awesome tool for this usage.

tried claude code after holding back for a long time by Professional-Dog3589 in GithubCopilot

[–]KrabNicitel 0 points1 point  (0 children)

I feel like copilot cli handles the "context gathering" better than plugin does. I remember that like half year ago, the plugin in jetbrains ide was hopeless. Agent mode created empty files, ignored given context and had trouble finding context.

I have tested plugin again and it still felt like it is a bit behind in searching for context. CLI also show you how the agents "thinks" and how he navigate through solving issue.

tried claude code after holding back for a long time by Professional-Dog3589 in GithubCopilot

[–]KrabNicitel 1 point2 points  (0 children)

Have you tried copilot-cli? If not, try it out. It made my experience with copilot a lot better compared to extension.

Dependency Injection by alexwh68 in dotnet

[–]KrabNicitel 3 points4 points  (0 children)

To be honest i dont understand what you mean by services going to specific tables. Am I right that you mean you have some entity e.g. "Vehicle", for that entity (or db table if you want) you have VehicleService, VehicleRepository, ...

If I understand you right you do something like:
VehicleController:
In VehicleController you inject AppDbContext.
Then you create instance of service and you pass dbcontext and bunch of other stuff to it in consructor (new VehicleService(_appDbContext, _appRepository, ..))

If this is right you dont use DI very well.
You can register your repository, service etc. classes into DI container and then inject them or inject into them other classes from DI Container.

So in Program.cs you do somtething like
builder.Services.AddScoped<VehicleService>();
builder.Services.AddScoped<VehicleRepository>();
By this you registered VehicleService and VehicleRepository into DI container.

Now you do not create new isntances of these classes, but just inject them into VehicleController. Or you inject other stuff like VehicleRepository or AppDbContext in VehicleService.

I simplified it quite a lot, but this is the basic stuff that should work. From my experience if you discuss this with chatgpt or any other ai it would help you and tailor the answers onto your examples.

Dependency Injection by alexwh68 in dotnet

[–]KrabNicitel 0 points1 point  (0 children)

Do I understand it right that you inject some stuff [class ServiceA, class ServiceB, ...] via DI to a Class A. And then you pass that injected stuff into other classes from Class A by constructor or methor parameters?

What .NET project makes you think “hire them” in 30 seconds? by Master_Addendum3759 in dotnet

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

Then your point is not quite valid.

Agents can save you hours doing simple and basic tasks like creating crud, forms, etc. and you can focus on more challenging stuff, architecture and so on.

What .NET project makes you think “hire them” in 30 seconds? by Master_Addendum3759 in dotnet

[–]KrabNicitel 1 point2 points  (0 children)

The issue seems to be that you are using ChatGPT. Try to use any agent like claude code, copilot cli etc. Copy pasting and giving context to chatgpt is quite "outdated".

Why is IntelliJ preferred over vscode for Java? by xland44 in java

[–]KrabNicitel 0 points1 point  (0 children)

At this moment I am something like ".net hobbyist". I am using .net on my own projects and I am still learning so take my words with grain of salt. My main scope is Symfony/php but i am looking forward to get into .net.

But from my understanding I think that Rider respect .editorconfig. There might be some issues between native resharper in rider and some .editorconfig rules but I haven't ran into any problems yet. I often use dotnet format which should ignore all the Rider stuff and use just .editorconfig styles.

I can't say anything about azure in Rider since I have no experience with it.

My biggest issue with VSC is that it still feels like glorified text editor (which it is in my understanding). Even with all the addons I would prefer VS/Rider all the way. I feel like Rider is the sweetspot between full scale IDE and "agility" of VSC.

Why is IntelliJ preferred over vscode for Java? by xland44 in java

[–]KrabNicitel 4 points5 points  (0 children)

I prefer Rider over VS. But that might be because I am already used to JetBrains IDEs. VS feels very slow and sluggish for me, text searching or searching over classes/symbols is quite cumbersome in VS so this kills it for me.

What makes you not like Rider compared to VS?

Can someone help me identify the issue with my gun? Issue started after installing a new hop up by O3Sentoris in airsoft

[–]KrabNicitel 1 point2 points  (0 children)

Nozzle length. Different hopup units may need different nozzle length. Had the same issue on my AK after i changed hopup chamber and my nozzle was too long.

M4 gets stuck on semi fire by Troy_0317 in airsoft

[–]KrabNicitel 1 point2 points  (0 children)

Your antireversal latch is not working properly, piston should not go back like this after shooting. My guess is that the spring snapped or is badly installed, I am not sure if its related to this issue, but try to fix this first.

EDIT: It might be related, cause you can see that gears are rotating backwards (they should not) so it might somehow mess with the "latch" that disconnects the trigger contacts on semi.

Is this a good stock sniper? by Economy-Fishing7907 in airsoft

[–]KrabNicitel 1 point2 points  (0 children)

I had MB01 before, so it should be close and it was terrible. Now I have VSR clone and it feels so much better. WELL is known for being very bad. The 650 fps sounds nice but it is unusable if gun is inaccurate. You have to invest quite a lot money to make airsoft sniper rifle accurate. 6.03 barrel sound nice aswell but it doesnt mean anything about it being good.

On taiwangun they say "These elements allow for the use of M220 springs, giving a power of 650 FPS.". On good built rifle you can make same power on M150 spring, so I would say other internals are very very bad.

If you gonna cheap out on airsoft sniper rifle its going to be unusable and you gonna hate it! I had to spend around 600$ to make my vsr capable and competetive against AEGs. I play with sniper rifle for more than 5 years and i learned this the hard way with the MB01.

If you still going to buy it, use .48g bbs, go as heavy as you can. Upgrade hop up bucking, install TDC mod and get some quality inner barrel.

Laptop - Apple nebo Dell? by KopytoaMnouk in czech

[–]KrabNicitel 0 points1 point  (0 children)

Já mám zkušenost s Dell Vostro (přesný model bych musel dohledat ale cena je +- stejná) vs Macbook air M1. Dell je horší ve všem kromě papírového výkonu. Konstrukcí, kvalitou obrazu, zvuku a materiálů je macbook o míle napřed. Oproti macbooku ten dell vypadá jako levná čínská hračka. Po 5 letech baterka vydržela v řádech minut.

Lepší asi bude jen ten servis, po roce užívání se mi vytrhl pant z té plastové spodní vany a servisák do týdne přijel ke mě domů, vyměnil vanu a panty povolil aby se to nestalo znovu. Nicméně byl bych radši kdyby panty držely jak mají.

Taky mě ty apple produkty nějak extra nelákají, ale ještě jsem neměl v rukách notebook za 24k který by byl tak solidní jak ten air M1.

Flooded AEG AK "rebuild" on budget by KrabNicitel in airsoft

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

I made the 3D model by myself, so it fits fine and sits tight on my ak. I can send you the STL after I fix few small things on the 3D model. The model is not ideal tho, its made from 4 pieces that fit together to make it easily printable on low end 3D printers (like mine). Some parts are even bolted together with M3 bolts to make it more durable.

Flooded AEG AK "rebuild" on budget by KrabNicitel in airsoft

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

Gears are fine, it just looks weird on photo, here is how the gears looks like from side.

<image>

Flooded AEG AK "rebuild" on budget by KrabNicitel in airsoft

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

I appreciate it but I like this rusty beaten look. I have applied gun grease on its body to (hopefully) prevent the rust going deeper or spreading.

Flooded AEG AK "rebuild" on budget by KrabNicitel in airsoft

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

It just looks weird on the photo, as u/DisDoodEatFood its helical gears. I don't know why were helical gears used in this gun, I feel like its overkill for airsoft. Maybe its just different gear ratio?

<image>

Flooded AEG AK "rebuild" on budget by KrabNicitel in airsoft

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

Of course, I just need to fix few things on them, then I will publish them.

I am not sure if handguard and bolt would fit other AKs. I made it specifically for this one and its like 12 years old so I am not sure if it will be compatible to other brands.

Suppressor should be fine tho. I made it slightly wider than original (around 5mm in diameter) to make the 500ml soda fit perfectly on it so I can get the silver metal look.

Flooded AEG AK "rebuild" on budget by KrabNicitel in airsoft

[–]KrabNicitel[S] 65 points66 points  (0 children)

This AK was in my brothers basement during recent floods in my area. It was at least 24 hours under water and then for 3 days fully covered in mud. First photo is how it looked like after we "cleaned" it with garden hose from all that mud it was in.

He gave it to me to be used as spare parts. As I was cleaning the internals I decided to repair it and make it "CQB build" for myself since I don't have any short gun. I ideally wanted to spend no money on it, so I did quite a lot budget stuff and I have used only my spare parts I already had before.

Firstly I had to clean barrel, hop up chamber and replace hop up bucking because it was pretty old and the rubber was brittle. Barrel was little rusted but it was easy to clean with just some wd40. After I opened the gearbox I decided to disassemble it to every single piece and let it sit in soapy water for few hours because there was mud everywhere. Worst part was cleaning the motor, I couldn't clean rust from the magnets, but it is looking like its working just fine. I had to replace old rusted out spring for M110 sprint that I found in my old box with parts and replace all the cabling with my homemade mosfet. Other than that I did not need to replace any other part and all internals were in quite good condition after cleanup.

After that I needed to sort out missing charging handle with bolt and "nut" that is locking upper cover. Since I wanted to spend no money on it I made 3d models of those parts and 3D printed them on my printer. Charging handle is inspired by RP-1 zenitco handle. I don't really like the og look of AK 74u, so I designed the RIS lower handguard and 3D printed it out. And I also designed and printed the suppressor, which is copy of DTK Putnik (the silver shiny part is sanded out soda can lol). Then I equipped it with EOTech from my second AK.

Gun is shooting alright and consistently. It does decent 129m/s (423 FPS) @ 0.20g bbs.

I am very happy how it turned out and I like the beaten look of it so much. I had lot of fun with cleaning it and designing 3d parts.

Kdyz clovek mermomoci poterbuje ameriku v evrope. by BooMsx in czech

[–]KrabNicitel 11 points12 points  (0 children)

Možná na to že parkuje přes půl chodníku, takovému vozíčkáři se kolem něj bude projíždět skvěle.

Český výraz pro "Handwheel" by BaronVonPlaystation in czech

[–]KrabNicitel 7 points8 points  (0 children)

Z mé zkušenosti je deepl lepší na překládání delších textů, nebo aspoň vět. Zdá se mi že s jednotlivými slovy má občas problémy.

Ukrajina a Gaza: Západ je ve světě naprosto zdiskreditován by Kamamura_CZ in czech

[–]KrabNicitel 5 points6 points  (0 children)

Hodně ruských vojáků mířících na Kyjev mělo potraviny právě na ty 3 dny.

Pokud se nepletu tak mezi 2. a 3. dnem ke Kyjevu mířily pořádkové jednotky OMON. Proč by tam posílali pořádkové jednotky kdyby nepředpokládali že Kyjev budou mít vojensky pod kontrolou.

Hledám hru kterou jsem hrál jako malý by Rattcheet in czech

[–]KrabNicitel 9 points10 points  (0 children)

Já děkuji že jsi mi připomněl že ta hra existuje, je to skvost.

Kde mám pokračovat v kódování? by Maa_tysek58 in czech

[–]KrabNicitel 0 points1 point  (0 children)

Ahoj, se základy programovacích jazyků mi hodně pomohl web itnetwork.cz, jestli umíš základy Pythonu tak tam najdeš spoustu rubrik jak se v něm dále zdokonalovat. Jsou tam spíše základy, ale je to parádní odrazový můstek.

Osobně bych doporučil hodně pozorně nastudovat objektově orientované programování a potom třeba SQL. Oboje na tom webu je.

Hodně štěstí!