What is a metaclass and how it works. (#python #dev #metaclass)

Have you ever wished that you could customize the way that a class works in Python? Well, with metaclasses, you can do just that!

A Python metaclass is like a magical tool that lets you customize the behavior of a class before it’s even created. It’s like a special kind of class that’s used to create other classes. With a metaclass, you can add special methods or attributes to a class, or customize the way that a class is defined.

Think of it this way: when you go to a bakery, you can choose from a variety of pre-made cookie molds to make your cookies. But with a metaclass, you can create your own custom mold on the spot! You can add special ingredients, mix and match different shapes and sizes, and even create your own unique design.

Continue reading

Understanding the magic of Generators. (#python, #dev, #generator, #iterator)

Welcome to the world of generators in Python! These handy little objects are like the lovechild of a list and a function – they allow you to iterate over a sequence of values, but unlike lists, they don’t store all of the values in memory at once. This makes them an excellent tool for working with large datasets or performing expensive calculations one value at a time. So if you’re ready to take your Python skills to the next level and start iterating like a pro, let’s dive in!Continue reading

Facebook comments on posts. (info)

Hi everyone!

Since the beginning, I’ve seen engagement via facebook managed comments increase and this is makes me very happy. It means that the posts are helping people and that’s what motivated me to start this site.

This is a one person project and also have to study and work. So unfortunately, some comments end up getting lost in time. On top of that, Facebook plugin now wants even more information from users just to manage comments and I don’t really want to collect anything.

That being the case, I decided to turn off the comments and leave the posts without this feature. If you want to contact me, use the form or send an email to hello at raccoon.ninja.

 

P.s: I’m working on translating all posts to english, so I can reach a bigger audience and (hopefully) help more people.

Thanks!

Disable Adobe Application Manager for good

All Adobe programs comes with a very annoying interesting piece of software, the Adobe Application Manager. Just like Java or Windows, every 5 minutes, it notifies you about an update you can’t miss.

Since not everybody is a really fan of these kind of programs, i’ll show here two ways of disabling Adobe Application Manager (AAM).

Continue reading

PowerBuilder 10 IDE Bug

Maybe it’s a little late to report this problem, but just the other day I came across a bug in the PowerBuilder IDE (10.2.1). First of all: Don’t worry, your application is not affected by this bug… it makes PB crash before you have a chance to save your work.

Continue reading