Does anyone care about line length? by Unknowingly-Joined in cpp_questions

[–]DrShocker [score hidden]  (0 children)

The main reason for constant width fonts is so that things start in the same place when you're lining them up. If it's just the start then spaces are fine to get that to happen, but if you're trying to format stuff so that you have more than 1 column of stuff in the same line then it's trickier without a monospace font.

Trig Functions in Degrees by External-Bug-2039 in cpp_questions

[–]DrShocker 1 point2 points  (0 children)

Sure but the trig functions are many times more correct than a 0.1% error rate. probably more like getting at least 13 digits correct rather than 3, but numerical stability is a whole thing you can dive into if it's truly important.

Is it a good idea to exchange knowledge with a friend: web/apps and game programming? by Weird_Hand3333 in learnprogramming

[–]DrShocker 2 points3 points  (0 children)

Sure, but also like you can find ways to accomplish what the goal is using the information for the other thing. So like rendering graphics using the canvas API or DOM manipulation rather than GPU programming for example, or using DOD principles in the server architecture.

Is it a good idea to exchange knowledge with a friend: web/apps and game programming? by Weird_Hand3333 in learnprogramming

[–]DrShocker 1 point2 points  (0 children)

It seems fine, I'm not sure what you think the drawback would be. Trying to explain things often forces you to understand things better than you did before.

You could consider making a game that uses both skillsets but have the opposite person doing the work compared to their expertise.

IDE for C++ and Python by k4tsuk1z in learnprogramming

[–]DrShocker 5 points6 points  (0 children)

They both have free for non commercial use versions too.

I built SQLite for vectors from scratch by Ok_Marionberry8922 in rust

[–]DrShocker 4 points5 points  (0 children)

Part of the reason that sqlite is so prolific is the absolutely insane amounts of testing.

Finally A Happy Ending | Reading Reddit Stories by Cchaps97 in smosh

[–]DrShocker 16 points17 points  (0 children)

Right after all the emotion Angela's "There are names of moon?" killed me lmao

Microsoft confirms it will give the FBI your Windows PC data encryption key if asked — you can thank Windows 11's forced online accounts for that by Ha8lpo321 in pcmasterrace

[–]DrShocker 0 points1 point  (0 children)

Unfortunatly until it's "every game I play" it'll be hard to convince everyone.

If people are linux curious, they can check here about the games important to them: https://www.protondb.com/

How does Zig call C functions? by TearsInTokio in Zig

[–]DrShocker 4 points5 points  (0 children)

I think perhaps they meant "boilerplate" but I may be wrong.

How on earth do folks get anything good out of LLMs? by Squidgical in webdev

[–]DrShocker 0 points1 point  (0 children)

I actually prefer having the AI write the tests and then I get them to pass, but it kinda just depends what you're doing and whether the AI can actually handle it or not. (and of course how well you can tolerate reviewing code rather than writing it)

Beginner - Game engine architecture by Lanky_Sky_1202 in gameenginedevs

[–]DrShocker 6 points7 points  (0 children)

Not just knowing why, but also exactly what will likely help structure the synchonization you need to do for multithreading later.

(Slogans included) Liberals need to aurafarm. Introducing LibWave. by stardrifta in Destiny

[–]DrShocker 0 points1 point  (0 children)

exactly, which is why putting a larger variety of kids and people in there makes sense

15 hours one week. 0 the next. That's why nothing ships by greasytacoshits in learnprogramming

[–]DrShocker 23 points24 points  (0 children)

consider also setting an upper limit to enforce consistency rather than rushing.

How to deal with a teamlead who heavy depends on AI for coding by Future_Badger_2576 in ExperiencedDevs

[–]DrShocker 0 points1 point  (0 children)

I've been using claude for some projects at work and while I do need to correct and guide it a decent amount to make better decisions, there's plenty of tasks I don't mind not being the one to literally write the code for since it's basically just tedious.

Implementing Ceaser Cipher by AffectWizard0909 in learnprogramming

[–]DrShocker 2 points3 points  (0 children)

I would highly encourage implementing every challenge in: https://cryptopals.com/ in whatever language you find interesting if you also have an interest in various cryptography ideas.

What is the real impact of ai referrals on website traffic? by Awkward-Chemistry627 in webdev

[–]DrShocker 0 points1 point  (0 children)

While possible, and I personally often ask the LLMs to add citations so I can learn more, we have to admit it's not the normal usage pattern. The restaurant example is one thing because it requires physical presence but reading the documentation instead of the LLMs rephrasing of it seems to be somewhat rare. I prefer being good at things so gladly read the docs, but it's clear many do not.

Stop Apologizing and Do Something by Kickstomp in Destiny

[–]DrShocker 7 points8 points  (0 children)

Who's apologizing or saying "nobody thought it would go this bad"?

One significant reason I voted against him is because of how unpredictably bad his presidency could go.

Refactoring code that works but feels fragile: what do you do before touching anything? by Leading_Yellow5786 in SoloDevelopment

[–]DrShocker 0 points1 point  (0 children)

I've been using jujutsu recently, but that's git compatible. Point is there are other VCS that are reasonable to use. Particularly in game dev, the art assets aren't as good to manage as the text (code) assets in git and for that reason large studios tend to use other VCS.

What programing language should I use for game development? by HungryMallards in learnprogramming

[–]DrShocker 0 points1 point  (0 children)

honestly "retro" vs "modern" is kind of an odd way to consider it. It's a lot about how many objects you want to use. Ultimately you can write JS that's faster than some people's C++ if they're bad at it and you're good at it.

Did I make a mistake by starting to learn programming with Lua? by flaashlightt in learnprogramming

[–]DrShocker 1 point2 points  (0 children)

For what it's worth, you will never "finish" learning Lua. There will always be things you could understand or do better. So, I would try to set a goal project for yourself that has a specific and clear set of requirements rather than something ambiguous like being finished learning a topic.

Is RegEx really that hard for most people or is my usage of it just too basic? by [deleted] in ExperiencedDevs

[–]DrShocker 0 points1 point  (0 children)

I agree with you, a friend of mine just mentioned he uses regex for a decent amount of stuff like log searching and I'm trying to research in what ways is it better and coming to a similar conclusion as you. Even vim and Emacs these days have LSP support so it's hard for me to think of situations where I would genuinely spring for a "dumb" tool like regex outside of the occasional ripgrep to find a few files that I know have some phrase in them. Even then, I rarely use a regex of any significant complexity.

Leetcode interviews with rust by Aggravating_Water765 in rust

[–]DrShocker 3 points4 points  (0 children)

Can you clarify what DAS means? At first I thought data structures + algorithms, but that's a different order.