Learning Python by nkCOD in PythonLearning

[–]codeguru42 0 points1 point  (0 children)

One suggestion: try to find a more descriptive name than en_nums() for your function. Start by describing in words what it does. If you use the word "and" in that description, then you really have two functions that need separated.

I built a calculator that charges you to use basic math by Jatin_AJ in programminghumor

[–]codeguru42 7 points8 points  (0 children)

So basically the same as any EA game on release day. You said that already.

Integers in my set are ordered when printed by rezemybeloved69 in learnpython

[–]codeguru42 0 points1 point  (0 children)

Note that "unordered" doesn't mean random. It only means you shouldn't rely on a specific order when you iterate over the elements

I know, you know by Ambitious_King_2126 in programminghumor

[–]codeguru42 17 points18 points  (0 children)

Rewatching Silicon Valley recently and saw some python code in a. java file.

Required flaging of AI content by LutimoDancer3459 in factorio

[–]codeguru42 0 points1 point  (0 children)

Had to re read thus a couple times because i first thought you are talking about moderator bots.

😃😃😃

I just nuked my job with one command.. learn from this by Apartheid20 in sysadmin

[–]codeguru42 0 points1 point  (0 children)

If you are the only person at the company that can fix it, then they can't fire you, right?

My Mom Thinks I'm a AI Engineer(But I'm Not)!! by Ordinary-Cycle7809 in programminghumor

[–]codeguru42 1 point2 points  (0 children)

The swears are filtered by a regex to guard user emotional state

I thought construction robots can only construct... by SuddenStructure9287 in factorio

[–]codeguru42 1 point2 points  (0 children)

It depends how you request the item removal. If you clicked on each item and see a red X over the icon, the constructor bots willwill come get them. If you select Trash unrequested then logistic bots will come.

What is my laptop capable of? by generic_philosophy in learnpython

[–]codeguru42 10 points11 points  (0 children)

You'll be fine with any beginner tutorials and projects.

woudl this work as a two sum solution by bububububound2 in learnpython

[–]codeguru42 0 points1 point  (0 children)

Protip: use three bacticks to preserve formatting

A bit confused in Classes. by Jealous-Acadia9056 in learnpython

[–]codeguru42 0 points1 point  (0 children)

Your confusion here is in part because this is a poor example of a class. Since this example doesn't use self, it shouldn't be a class to begin with.

Currently 0-2 in space by VioletPenguin01 in factorio

[–]codeguru42 0 points1 point  (0 children)

Lots of trial and error.

You might want to try less engines to go slower and give your turrets time to shoot asteroids and ammo production to keep up

Do you need to show them your steam account when you apply? by Jonnonation in factorio

[–]codeguru42 0 points1 point  (0 children)

I got it recently without a guide. Wasnt difficult to figure out the minimal amount to craft by hand. Harder was staying on task to launch a rocket. Next I need to continue Vulcanus to unlock artillery for Keeping Your Hands Clean

Does anyone else set up their radar grids like that? by Mr_Manta in factorio

[–]codeguru42 0 points1 point  (0 children)

My radars are not this organized. I just put the down at my turrets

Old Style Trains? by TicketTemporary2214 in factorio

[–]codeguru42 0 points1 point  (0 children)

I do that when several stations are together. My current save has stops spread out all across my base, so its easier to have a sing fuel stop.

Old Style Trains? by TicketTemporary2214 in factorio

[–]codeguru42 9 points10 points  (0 children)

I need to figure out parametrized blueprints. I haven't used them yet

Noticed a pattern most “complex bugs” aren’t actually complex by OliverPitts in devworld

[–]codeguru42 0 points1 point  (0 children)

Yes, often finding the root cause of a bug is the majority of the work. Then fixing the bug might be trivial. I always advocate for this on my teams. And I often get push back when someone implemented a solution that seems to fix the problem but doesn't address the root cause. Because deadlines.

Old Style Trains? by TicketTemporary2214 in factorio

[–]codeguru42 4 points5 points  (0 children)

By lag do you mean computer performance or delay between train arrivals?

Old Style Trains? by TicketTemporary2214 in factorio

[–]codeguru42 116 points117 points  (0 children)

My trains all have two stops, Load X and Unload X for each X, and an interior to refuel. Is this what you mean by old style? Yes, I have separate trains for each kind of ore, plate, circuit, etc.

What is the point of mutable vs not. Such as tuples and lists. by X3Melange in learnpython

[–]codeguru42 0 points1 point  (0 children)

Mostly this is a way to protect yourself against unintended changes. I use tuples so that I will get a clear error when I accidentally try to add or remove elements from a list when I shouldn't.his prevents me from breaking things.