957 karma · joined June 28, 2009
https://github.com/mpolden
Also, sometimes I get the feeling that the FreeBSD world is less about politics and more about getting stuff to work. This makes porting software easier (ZFS for example).
:(){ :|:& };:Should this function really be used for email validation?
5. Easily unpack numeric arrays using the well-know function list <snip> Have you ever seen better code for swapping two variables’ values !?
Yes, try Python: a, b = b, a
This is usually why I create private methods in the first place. The methods modify internal state and they're too specific to the problem in question to move them into a separate class. Making them public just doesn't make sense and seems to break the principle of encapsulation.
Also, wouldn't moving these methods into a new class affect performance? For example if you have a private method that does some complex operations on a private/local collection, instead of performing the operations directly on the collection you have to pass the it back and forth to the public method in another class.