In my previous article, I explained how to make Python modular by using functions, creating modules, or both. Functions are invaluable to avoid repeating code you intend to use several times, and modules ensure that you can use your code across different projects. But there's another component to modularity: the class. . If you've heard the term object-oriented programming, then you may have some notion of the purpose classes serve. Programmers tend to consider a class as a virtual object, sometimes with a direct correlation to something in the physical world, and other times as a manifestation of some programming concept. Either way, the idea is that you can create a class when you want to create "objects" within a program for you or other parts of the program to interact with. The link for this article located at Opensource.com is no longer available. . If you've heard the term object-oriented programming, then you may have some notion of the purpose c. previous, article, explained, python, modular, using, functions, creating, modules. . Brittany Day
BackTrack, the penetration testing distribution, is a great LIve-CD to test a system and tear it apart. This HOWTO: One of BackTracks' most appealing features is it's modularity. As an end user, you can add your own modules scripts and tools to the livecd. . The link for this article located at is no longer available. . The link for this article located at is no longer available.. backtrack, penetration, testing, distribution, great, live-cd, system. . LinuxSecurity Contributors
Get the latest Linux and open source security news straight to your inbox.