MYDEVDOCS/CALENDAR/2026/10/08

Updated just now

When to use Global Variables

(1 month ago)

15:58 jean > when i first started programming i thought global variables were an awesome cheat code

15:58 jean > then i learned more and i was like "ok this makes the project way too confusing"

15:59 jean > then i built projects and i was like "nahhhhh all code bases are confusing just use globals fuck it"

16:00 jean > then i was like "hold up, you can make your code base really easy to understand if you care!?"

16:00 jean > then i realized that caring takes time

16:00 jean > so now every thing in my godot project is a global

16:00 jean > and i think i am paying the price for it

16:01 jean > but if i change a bunch of globals to be locals and it sucks

16:01 jean > then im just wasting time

16:02 jean > did you know that gorillas have NEVER killed anyone

16:02 jean > like literally EVER

16:02 jean > everyone talking about how many dudes it would take to kill a gorilla

16:03 jean > and the mother fuckers did NOTHING to deserve that

04:55+

20:58 jean > TODO:

20:59 jean > - create system to be able to place objects, hide them until purchased, return them to their spawn location

21:00 jean > - DAY: player can purchase items but cannot move them, must press a button to start DAWN

21:01 jean > - DUSK: player can move items, generate energy, elapsed time will determine when NIGHT occurs

21:02 jean > - NIGHT: player can move items, generate energy after X minutes cycle will move to DAWN

21:04 jean > - DAWN: player can move items, generate energy, coins are collected and added to player wallet, after 0:05 seconds cycle will move to DAY

00:31+

21:35 jean > i was looking at how good AI tools are at decompiling and resconstructing games

21:35 jean > as an indie dev i am not worried at all by this

21:35 jean > but it kinda makes me want to open source everything

21:36 jean > because people can already decompile Godot projects

21:36 jean > and if someone wants to know how i did something

21:36 jean > thats very flattering

21:36 jean > so i should make it as easy as possible to give that to them

21:36 jean > <3

Media