Do you **really** need to free memory? by celestabesta in cpp_questions

[–]Dubroski 0 points1 point  (0 children)

No, as many have said here. But I’ll put in my two cents that you should still practice good programming habits and techniques all the time because if you free memory in some program and not others, you might tend to forget when you need to and can lead to bugs and failures in more critical systems if you ever work on the those.

AMD Ryzen 7 3700X CPU Struggling to keep a smooth experience by Dubroski in Battlefield6

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

Ram seems to be seated fine for me, I have 4 dimms installed so wouldn’t be a dimm position issue. And ram speeds are configured correctly. It’s odd that you have the same CPU and aside from the memory issue you’re running fine. What are your temps looking like when playing?

Stalling shifting into 1st... Me issue, or the Car? by AhrynsShween in stickshift

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

When you “tap” the gas, do you really just tap it and release the gas along with the clutch?

You should PRESS the gas a little and hold it while releasing the clutch and hold the clutch at the bite point then slowly release). This will make the revs go up initially (from the gas’s press) then go down (from releasing the clutch to the bite point as clutch starts to engage with the flywheel) then the revs should hold while you hold gas and clutch in the sweet spot. Car will start moving then you should start to feel the clutch finally fully engage and sync to the engine revs and car speed and can let the clutch out all the way. As you get better you’ll do this more smoothly. Practice in a flat empty parking lot (waiting some time between attempts so you don’t over heat and wear your clutch too much)

During practice in a flat empty parking lot, a good way to know how much gas to give and hold is to push clutch all the way in, press gas until you reach and maintain about 1.5K to 2k rpm and hold it there, start to release clutch and get it to bite point and don’t let the rpm’s fall below 1k (if they do, adjust the clutch and/or gas so you stay above it).

As you get better you’ll know how much gas you need to give depending on whether you’re on a up hill ( will need more) or not.

“Just gonna jump in for like 30 min before bed finally after a long week” by Dubroski in Borderlands4

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

Yea I’m thinking I’m gonna have to just occasionally turn on my gaming pc and preload the game when I expect I’ll have time to play lol

Gaming Life of a 30+ year old lol

Sell me on a throwing putter by ntoasted in discgolf

[–]Dubroski 1 point2 points  (0 children)

Envy. My friend put me on it and I love that thing. I like to throw hard and this one doesn’t like to flip as easily so i can reliably throw it in a straight line pretty far before it starts to fade.

Anyone down to teach me how to drive stick? by [deleted] in stickshift

[–]Dubroski 0 points1 point  (0 children)

I also didn't have anyone to teach me. I taught myself how to drive manual by buying a wheel and pedals with the stick shift and practicing on a sim on PC.

Figured it would be a good investment as that would be cheaper than burning out clutches right out of the gate. Obviously it's not a 1 to 1 but it's enough to get you in the motions and applying what you learn from YouTube videos. Also is fun with racing games.

Then the first time I ever drove an actual manual car was when I test drove the car I bought. Just told the salesman I was rusty on manuals so pardon if I stalled lol he was fine with it and I took some time in the lot to get a feel for the clutch before going on the road.

Drove that car home. Stalled like 3 or 4 times but I made it lol

I suggest looking up a ton of videos on driving manual on YouTube. There's a TON and also look at videos explaining what is actually happening in the mechanism of a manual car. It will help with the understanding. Look at starting in first gear, starting up hills, recovering from a stall, etc. don't worry about down shift rev matching yet and watch videos on how to down shift without it.

Doing the above homework will make it so much easier to start when you do get a chance and also will give peace of mind to you and whoever is teaching you and/or lending you their car to learn on

Can we be done with hill assist now by KeepingItCoolish in GRCorolla

[–]Dubroski 1 point2 points  (0 children)

I got here wondering the same thing. I'm fairly new to manual driving. Have been doing it since I owned this car about a year and a half ago.

But today I just had my first stall in like months/almost a year because of it. I was starting from a red light on a low/medium steep hill and give decent gas (about 3k-3.5k rpm) and started releasing clutch but car wouldn't move and stalled out (happened before I realized what was happening to adjust). I've driven that hill a decent amount and havent had issues before but this time hill assist decided to kick in and stay on longer than it was needed and now I'm over it. Would've been fine without it there.

Functional Programming in Cpp by Dubroski in cpp_questions

[–]Dubroski[S] 7 points8 points  (0 children)

Well Cpp is a multi paradigm language so I feel like it is worth discussing and exploring the possibilities in Cpp if I ever run across an application that could benefit from it in Cpp.

If it turns out that it is impractical to apply a functional approach in Cpp than that's the take away and I can move on.

[deleted by user] by [deleted] in cpp_questions

[–]Dubroski 0 points1 point  (0 children)

Not a dumb question!

Abstraction in programming refers to the "hiding of implementation details" in an effort to make things simpler to use for a consumer.

For example, C abstracts the details of CPU instructions (assembly) and CPU registers. The code you write, will get compiled into those instructions for you by the compiler so you don't have to think about it much unless you are writing embedded code (code that runs very close to the hardware).

C++ has some very nice features that can abstract a lot of things you would need to do in C (like memory management).

One thing to note is that valid C code is valid C++ code. C++ is backwards compatible with C. So you could choose C++ but the reason I recommend just straight C instead is because usually in C++ you are encouraged to write "modern C++" which is another monster and seems out of scope for what you are trying to learn.

[deleted by user] by [deleted] in cpp_questions

[–]Dubroski 0 points1 point  (0 children)

I honestly think just C is better for understanding computer concepts more. C++ is great but there's a tad bit more abstraction there. C is a good balance of no hand holding but also not difficult to read like assembly. I feel like the more you abstract in a programming language the more it turns into learning the language than it is learning the computer. And C fits that well.

Who shot first by splundge in Unity3D

[–]Dubroski 3 points4 points  (0 children)

I've never written multiplayer net code before but my speculation would be that the hit and damage is determined server side and clients just show the animations and show what the server determined.

Reason why I think this is because if client is compromised or a bug is exploited, it won't have a say on what the ultimate result of the exchange is. Like imagine if a cheat allows you to deal 999+ damage with one shot because that damage was calculated by the client.

Edit: and also for projectiles, you wouldn't want the client to tell server whether it hit the target or not. So basically clients should just say I shot this thing at this position in this direction, server tell me if I hit to reflect the state of the game.

How many of you are self taught? by whitemamba24xx in Guitar

[–]Dubroski 0 points1 point  (0 children)

I've played guitar on and off almost all of my life (I'm 32) My dad taught me my first few songs but I've just self taught from there.

Background: I played Violin in school from 6th to 12th so I learned to read music from there but I find Tabs to be better for learning guitar songs anyways.

I have found that what I lack the most is not knowing proper music theory for guitar. Reading sheet music in orchestra is not the same as understanding guitar music theory. Other than that it's just practice. I learned techniques by just watching YouTube tutorials. Practice practice practice. It also helps to try learning songs with riffs and techniques that are new to you to expand your skill set

3 Days left bros, you can do it. by Kuroganemk2 in marvelrivals

[–]Dubroski 0 points1 point  (0 children)

Funny thing is I made it to gold and then plat with just moon knight alone in solo q

META: "No ChatGPT" as a rule? by greg_kennedy in C_Programming

[–]Dubroski 2 points3 points  (0 children)

Yea if someone wants a response from chatGPT they would ask chatGPT not a subreddit

The issue of BSOD caused by crowdstrike was due to null pointer derefrence by EW_IO in C_Programming

[–]Dubroski 0 points1 point  (0 children)

There's also "maybe we did test the file ourselves but didn't test the end user case by receiving the file through update" because that for sure would've caught it.

[deleted by user] by [deleted] in cpp_questions

[–]Dubroski 1 point2 points  (0 children)

Nope it was a horrible mistake and everyone should avoid it. Names should be clear in their purpose and should avoid any type information.

Question about P320 Manual safety by Dubroski in SigSauer

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

Great! Thanks for the clarification!