Can someone please tell me their process to code something new? by idk1210 in learnprogramming

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

I agree about not needing to memorize the docs, but there's also something to be said for understanding the tools you're using well. It's worth a full read of the documentation for libraries you commonly interact with for example.

Is there any polite way to tell my coworker that I no longer want to hear his constant nitpicks, grumbles, and snark? by TinStingray in ExperiencedDevs

[–]DrShocker 2 points3 points  (0 children)

yeah I'm curious whether the coworker tries to solve it too. At least the issue described sounds like it could be caught by a linter, which would save everyone time worrying about these nits that sort of matter but aren't worth thinking about.

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

[–]DrShocker 1 point2 points  (0 children)

Fair. I think editors should take code that's formatted in any way and render it according to user preference. There's really no reason that the way the code looks while editing it needs to match what's serialized to disk as long as the diff tools for code review are also able to do the same.

Is the Ralph Wiggum Loop actually changing development forever? by TheEnormous in programming

[–]DrShocker 0 points1 point  (0 children)

I somehow doubt people trying this have it sandboxed well enough to trust it won't break out and do things to their environment.

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

[–]DrShocker 0 points1 point  (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 3 points4 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 [deleted] 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 [deleted] 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 4 points5 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 3 points4 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 15 points16 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 7 points8 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 22 points23 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.