this post was submitted on 30 Jun 2023
6 points (66.7% liked)

Python

6356 readers
1 users here now

Welcome to the Python community on the programming.dev Lemmy instance!

📅 Events

PastNovember 2023

October 2023

July 2023

August 2023

September 2023

🐍 Python project:
💓 Python Community:
✨ Python Ecosystem:
🌌 Fediverse
Communities
Projects
Feeds

founded 1 year ago
MODERATORS
 

A friend of mine told me once: make dumb algorithms and smart data. This has stuck with me, and I’ve often been annoyed at the annoying annoyance of making the data.

As an amateur, hobbyist, novice programmer, I want to try things. Right now, I want to make a game. Just a simple little game where you travel through the ‘procedural generated’ dungeons and fight monsters. The algorithms can be pretty easy..

here = Room() world.append(here) here.describe()

You could basically make the Room class do everything.

The shitty part is where you think, ‘Ok, what rooms can there be? What monsters do we fight?’

Then it’s like ‘oh, far out, so cool, data entry..’

Data entry work gets you minimum wage. It’s like a sweeping job or working on a conveyor belt in a factory. Compare that to a programmer wage. It’s a big gulf between. And then you waste your time typing all that garbage in. Your precious time.

Get the robot to make your data! The algorithms are easy for you. You don’t need to type all that data in. It’s so much easier to prompt: ‘make me a python dictionary of 23 unique monsters as keys, with values being another dictionary, with keys this and that, and this and that’ and get what you want back than trying to get it to write algorithms for you. It works so much better this way. Flip it around.

You can always go and edit the data. Tweak it how you like, especially the descriptions. And this is going to be easier and more pleasurable than editing and tweaking the shitty code you try to get it to write. Data is easy for these LLMs. It’s like they were born for it. Make them your data slave. You don’t even have to give them minimum wage.

top 1 comments
sorted by: hot top controversial new old