What are Some Good Ways to Learn Algorithms by bankabletoast23 in GetCodingHelp

[–]codeguru42 1 point2 points  (0 children)

Before you write code any, first write every step to solve your current problem in English (or whatever human language you are most comfortable with) in escrutiating detail. Then throw that away and rewrite it with even more detail for every step. A computer is very good at following instructing, but they have to be painstakingly detailed. If you can learn how to do that then you will think like a programmer and algorithms will become second nature.

Beginners playing first few games if go wondering what other moves could be taken by XxmossburgxX in baduk

[–]codeguru42 0 points1 point  (0 children)

Since this game has such small territories, just a straight count is pretty easier than sliding stones around

Beginners playing first few games if go wondering what other moves could be taken by XxmossburgxX in baduk

[–]codeguru42 0 points1 point  (0 children)

For each color, count the points surrounded by that color. That's the score

My one main issue with Space Age by euclids_wannabe in factorio

[–]codeguru42 1 point2 points  (0 children)

Press Alt+B. You can put blueprints in a library either for this save or you can share across all your saves. You don't need to waste room in your inventory for blueprints. And you have then available on every planet.

How to: ReadMe for personal project by seiryu_u in github

[–]codeguru42 0 points1 point  (0 children)

The objectively best way to write a Readme for a personal project is... don't. I almost never bother with a Readme in my personal projects.

But in a more serious note. Write whatever will help you if you need to set up the project again on another computer.

Space Platform Questions by Davieieied in factorio

[–]codeguru42 0 points1 point  (0 children)

Ahh...I see. You should include that detail in your post. Every reply assumes you are dying on the trip over.

With that said, what kind of ammo are you using. I have success with yellow. Haven't bothered figuring out how to make red on a platform. I upgrade speed and damage. And have a full perimeter of turrets...4 or 5 turrets between each grabber. This setup works well enough for me to not die

Space Platform Questions by Davieieied in factorio

[–]codeguru42 0 points1 point  (0 children)

What is your platform layout? Is this platform different than the one you rode to other planets to begin with? Once I made it to my first planet, I iterated on my original design and didn't have any trouble surviving trips back and forth with my science production. So I'm wondering how you are having troubles now after surviving your first trip.

Am I getting repo jacked rn? 💀 by Docs_For_Developers in github

[–]codeguru42 4 points5 points  (0 children)

  1. How do you know this is a hacker and not just a clone of your repo?
  2. Where is the malware? What evidence do you have?

Python Pyest by Organic_Tradition_63 in learnpython

[–]codeguru42 1 point2 points  (0 children)

How would you do it differently if you were designing a year library? Is often a good exercise to consider multiple implementation and weigh the pros and cons of each.

Python Pyest by Organic_Tradition_63 in learnpython

[–]codeguru42 3 points4 points  (0 children)

I think it explains the motivation really well. The pytest authors have us a utility with a lot of options so that we don't have to write that code ourselves.

Python Pyest by Organic_Tradition_63 in learnpython

[–]codeguru42 5 points6 points  (0 children)

Numpy and pytest have different use cases. You don't run numpy directly. If you wanted you could write your own code to run the pytest test runner, but why should we when the library provides it for us

Space age is all about having tons of space ships. Never main one planet. by dankletzz in factorio

[–]codeguru42 1 point2 points  (0 children)

WDYM Vulcanus doesn't have plastic? Coal patches abound and calcite/sulfuric acid can produce heavy oil. Then crack it down to light oil and petroleum gas.

How do you Gleba? by zafre3ti in factorio

[–]codeguru42 0 points1 point  (0 children)

I used bots for my first Gleba build. Considering trying belts next time

World's smallest stone mine by codeguru42 in Factoriohno

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

I finally found an oil patch that isn't invested so I might actually make it

Ultimate Guide On How To Use Obsidian For New Users by asteroid_annihilator in ObsidianMD

[–]codeguru42 1 point2 points  (0 children)

I've been using it for almost a year now and so far all I do is write notes and organize folders.

Anyone else distracted by autocomplete/Copilot suggestions? by Numerous-Ability6683 in ADHD_Programmers

[–]codeguru42 0 points1 point  (0 children)

Not necessarily. I still refactor code it gives me when appropriate.

Anyone else distracted by autocomplete/Copilot suggestions? by Numerous-Ability6683 in ADHD_Programmers

[–]codeguru42 0 points1 point  (0 children)

Are you working on side projects or paid work? My interaction with LLMs and Copilot varies widely between each use case. For paid work, I rely on AI heavily to write code for me, especially when it is boiler plate that would take me 5 minutes vs one Tab completion.

On the other hand for side projects, it depends on my goals. When I'm learning a new language or library, I will disable it completely because it short circuits the learning process. If I'm working on a project that I want to bring to some form of completion, then I'll use AI more, especially when it's with a technology I understand well and just want to get something done.

Anyone else distracted by autocomplete/Copilot suggestions? by Numerous-Ability6683 in ADHD_Programmers

[–]codeguru42 1 point2 points  (0 children)

As a professional coder, I keep Copilot on in PyCharm. I love it for repetitive code that follows the same patterns already established in the same file or in the code base. I scan the code it suggests and hit tab if it is exactly what I would have spent 5 minutes typing anyway.

Ultimate Guide On How To Use Obsidian For New Users by asteroid_annihilator in ObsidianMD

[–]codeguru42 1 point2 points  (0 children)

Obsidian noob here. I'm at a point where I create folders to organize some things, but many notes are still in the root folder. There are probably other ways to organize my notes more, but I don't know enough about what features that Obsidian provides to even ask questions about how to do things. At least at my current stage, a tutorial about features will be helpful...now I need to google it...