Posts

Showing posts from November, 2023

Composite Objects

My mind is thoroughly boggled by composite objects. Objects in objects in essence is another fold in complexity. Just as recursion has its pain points, though also its own uses such as saving state on the stack of each iteration of the recursion, composite objects allow for components. You can piecemeal form components that interact with interfaces in code. I imagine this would decouple and allow for orthogonal approaches. This sounds very much like a form of psychobabble in terms of computer speak. Apologies if I am not as fluid with the nomenclature in proper usage I am myself a mere beginner.
I have to look at my python studies as my job. Getting to a point of producing performant code requires dedication that I will meet. I need to work harder and code everyday. I am desperate living below the poverty line with a glut of time to focus on Python3. I was motivated to learn more about programming so I would not be a skid anymore. I feel like I am headed for skid row if I don't turn the boat around. I have been to skid row in LA which is next door to Little Tokyo. The sight of the desperation motivates me to take a keen interest in python. People will steal everything from you on skid row down to your shoes when you sleep. It is a pit of hell where everyone is pulling each other down and there is no way out. I cannot fail. I will dedicate 2024 to rigorous studies in data structures and algorithms in python and build something, anything and code code code.
The "self" as a reference to an instance of an object is still confounding. Also "self" is a stand in that is arbitrary and can be assigned any name within the special method __init__. "self" is used to refer to a particular instance of an object so that methods within the defining class can access the paticular instance attributes of the object to perform whatever behavior that is determined by the class. The nuances are strange and the documentation available online is positively ungrammatical and confusing. The tutorials are really poorly written with lots of errors. Luckily to aide this situation there are resources that are not free though are written rather better like realpython.com. I am writing out what I have recently learned to help retain the concepts at hand. Objects are useful for code encapsulation and better organized code. This reminds me of a book I read about orthogonality which is trying to make code that is modular and piece together i...

Real Python is awesome

I have troved through so many free resources on programming full of typos and grammatic errors in documentation. But now I have found a quality resource in realpython.com. I feel like it is so well thought out and heartfelt however the cost I think it is still worth it. Payola aside the plentifulness of tutorials and videos is amazing. I will keep this short but I am struck by the quality and detail. This is eye opening and will help my programming journey.