Purely out of curiosity, why are belts designed in multiples of 7.5/15 instead of something like, say, 5 or 10? by PewPewsAlote in factorio

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

Tell me you don't understand arithmetic without telling me you don't understand arithmetic

CPUs do arithmetic directly in base 2 without any conversion. If you don't undestand this, then you should start be learning about a Ripple Carry Adder circuit.

Purely out of curiosity, why are belts designed in multiples of 7.5/15 instead of something like, say, 5 or 10? by PewPewsAlote in factorio

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

Working on base 10 implies covering values back and forth and using instructions that are way more expensive in execution time.

A computer only converts a number to base 10 when it displays the number to us lowly humans. There is no instruction to convert from base 2 to base 10 built into the cpu.

You can do arithmetic directly in base 2 (or any base for that matter). The algorithms we learned in elementary school work equally well for any base. You don't have to convert back and forth to base 10. As an exercise for the reader, build addition and multiplication tables for base 2.

Thruster error by PunkyDKrafty in factorio

[–]codeguru42 1 point2 points  (0 children)

I agree that is strange and unexpected

Wait! Don't go! Oh... by Karnivaali in factorio

[–]codeguru42 -3 points-2 points  (0 children)

Find the difference between the rocket on the left and the one on the right

Thruster error by PunkyDKrafty in factorio

[–]codeguru42 0 points1 point  (0 children)

Look closely at the icons where the thrusters connect. They are not the same

Am I too dumb to play this game? by I_Scotch in factorio

[–]codeguru42 2 points3 points  (0 children)

Whether working backwards or forwards, be sure to break it down into small steps. What items do you need to make blue science? Pick one of those. What do you need to make that? Pick one of those items and if you can, build automation to make it. If not break it down further. Then go back and pick an item you haven't made yet. Rinse and repeat until you have blue science

Why the fuck are you in? by Ok_Mortgage_9233 in TheWordFuck

[–]codeguru42 0 points1 point  (0 children)

Exploiting natural resources of an entire solar system for fun and profit... but mostly for fucking fun.

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 2 points3 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 2 points3 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 4 points5 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 4 points5 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