I Wrote This Technique Thingy While Being Really Tired lmao


I'm quite tired but still am going to do a writeup on this anyways. If there's (a) part(s) that needs more clarification, do let me know.

Today's bug was one of those little annoying bugs that appear when you've wrote the code you're interacting with a long time ago and didn't write it in maybe the best way possible. What I mean by this is like if you have some divide by a sizeof value that's critical to the operation of the procedure but forget to change the sizeof's old data type to a new one, or like when you've got some other parts of a procedure hard coded similar to this but really should have an input variable be the value that replaces said old hardcoded value. The hard part is always really just like when you do this sort of thing, like at the start or later.

I tend to program where I just have everything be hardcoded or using variables if they make sense without writing a function first and then functionizing the thing once the procedure happens twice in teh codebase. And later edit the function's parameters to remove more hardcoded bits when required to call the function three times or something like that. The only hard part about this style is that you've gotta not be lazy and actually go back and make those changes. One part of the laziness that I hadn't realized until recently is that you can't not only be lazy in the execution of writing your code (which I don't have a problem with personally), but you've gotta also go back and read through all the relevant code that's related to this procedure or function to properly make these changes (which is where i'm weak, currently).

I still think this style's better than just prewriting functions and hoping that you'll never have to come back and edit the thing ever again as you've made them "perfect" or whatever while killing perf and or time that you've wasted because you're going to have to edit every function / procedure more than once in any program from what I have experienced thus far so yea. That or i'm really dumb as a programmer and am missing out on some ez pz programming techniques that would increase my productivity and reduce waste of time.

Funny thing is, I actually was going to talk more about the ui pipeline merge fix in this post but I randomly trailed in my brain to this topic so i'm just going to post this and get some rest now lol.

Please let me know your thoughts on my game! Thank you for reading and have an awesome day :]

Files

Funmi_Zip.7z 4 MB
Nov 11, 2021

Get Funmi

Download NowName your own price

Leave a comment

Log in with itch.io to leave a comment.