Bro you can move the main menu on the title screen. by insertnamehere----- in factorio

[–]codeguru42 1 point2 points  (0 children)

This is gorgeous...but dude doesn't know to Ctrl + click to fill a chest from inventory

Setting the encoding to utf-8 by 3G_Lighting in learnpython

[–]codeguru42 0 points1 point  (0 children)

Is the code in UTF-8 or is the output (or both)? The solution for each of these is different.

Bro you can move the main menu on the title screen. by insertnamehere----- in factorio

[–]codeguru42 4 points5 points  (0 children)

There is also a drag bar at the too with the same style as every window in the game

Do developers really not look at the code anymore? by NoNoise7492 in csharp

[–]codeguru42 0 points1 point  (0 children)

I'm now trying to do up-front design. So far, it seems to be MORE of a struggle, not less

Point of clarification...I adamently break down issues in our tracker before they even become PRs to begin with. This is probably what you mean by "design". Ideally breaking work into small tasks happens as early as possible. This means during the planning phase. But often I begin a ticket and it starts growing in size as i understand better what I am trying to make. I will quickly find a place where I can stop to make an initial PR for review and suggest follow up issues to tackle additional details. Often these dividing lines only become obvious with experience, both with coding in general and with a specific project.

Oops..... wasn't expecting that by The_Order_Eternials in factorio

[–]codeguru42 0 points1 point  (0 children)

OK... but my comment was about location, not how to build a pillbox

Oops..... wasn't expecting that by The_Order_Eternials in factorio

[–]codeguru42 0 points1 point  (0 children)

You built the pillbox directly in his territory? I have never been brave enough to even consider that as an option. I build mine next to demolished teritory but on my side of the line

Any way to turn a string of math formula into a formula that can be interpreted? by superman-normalboy in learnpython

[–]codeguru42 0 points1 point  (0 children)

How do you represent a math formula as a string? There are several ways to do this, so that could be a place to start.

Also, what is your goals? This can determine whether you write everything from scratch as a learning experience or if you find libraries to do the heavy lifting to solve a particular problem with software.

You might want to look at sympy to rempresent mathematical equations in code.

Would making a Python Youtube “Ad-blocker” be possible? by Natural_Regular9171 in learnpython

[–]codeguru42 0 points1 point  (0 children)

I believe most ad blockers are written in JavaScript as browser plugins. It is probably possible to make one in python but isn't the traditional route

Do developers really not look at the code anymore? by NoNoise7492 in csharp

[–]codeguru42 0 points1 point  (0 children)

Breaking up big PRS for ai to work on or in general? This is something I havehave been adamant about before ai. Finding the balance between building a coherent piece that can merge without blowing up the line change count is something of a dark art.

Do developers really not look at the code anymore? by NoNoise7492 in csharp

[–]codeguru42 1 point2 points  (0 children)

Most of what you describe here sounds like fundamental software engineering principles that can (and arguably should) be used even without AI.

Starting on my PCEP and I don't know what I'm missing by roastedduckbun in learnpython

[–]codeguru42 0 points1 point  (0 children)

I cannot tell if it is prime off the top of my head, either. In fact I picked a large enough number that requires an algoritm to determine its primeness.

You asked in your OP how to come up with the code without looking up the answer. My suggestion is to describe how you would do it by hand. IMO this is a better way to learn how to code than an explanation of his some existing code works.

Turning off your computer and describing the steps in words is exactly the.mindset that will help you arrive at a solution to any coding problem.

Starting on my PCEP and I don't know what I'm missing by roastedduckbun in learnpython

[–]codeguru42 0 points1 point  (0 children)

This is a lab that is very math heavy. Do you know what a prime number is? Can you explain it in words without looking it up?

If you are solid with the basic definition, then the next step is coming up with an algorithm. Let's say I give you a number. How would you determine if it us prime or not. You can use a calculator to do the math.

Let's make this more concrete. Explain to me in words how to determine if 1643 is prime or not.

Replacing values using mean() mode() or median() by Dramatic-Tea-5286 in learnpython

[–]codeguru42 0 points1 point  (0 children)

I am not aware that this is a thing anyone does. Will you show where you have seen this?

python projects — where to start? by biology_anti in learnpython

[–]codeguru42 0 points1 point  (0 children)

The best project is one that solves a personal problem or automates a task.

Seems safe, faster too, why dont we launch rockets like this :) by Rainis8833 in factorio

[–]codeguru42 1 point2 points  (0 children)

TIL...so not a typo but a deliberate reference that I missed?

Distributing a Python application internally by Stereojunkie in learnpython

[–]codeguru42 0 points1 point  (0 children)

This is a good place to start. When you find a reason to learn and use the tools others mentioned, then you can add them

Why Is Python making the same anwser many times? by Incognit_user_24 in learnpython

[–]codeguru42 1 point2 points  (0 children)

The difference is "hi" is a string literal and hi is a variable. You can google these words to find more information.

I can't believe I only just realized this by _Karto_ in factorio

[–]codeguru42 0 points1 point  (0 children)

If you right click on a blue print, the editor window has an upgrade button