public inbox for gentoo-dev@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-dev] portage.py hacking
@ 2003-05-29 17:20 Kurt V. Hindenburg
  2003-05-29 17:21 ` Riyad Kalla
  0 siblings, 1 reply; 4+ messages in thread
From: Kurt V. Hindenburg @ 2003-05-29 17:20 UTC (permalink / raw
  To: gentoo-dev

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

I'm hacking portage.py to handle multiple DISTDIRS.  Mainly this is in 
the 'fetch' routine; which happens to be over 200 lines.  I notice 
this thoughout portage.py.  This is yucky!!
Somewhere over the years, I heard routines shouldn't be longer than a 
screen page.  Regardless, 100-200+ lines per routine is ridiculous.  
Sigh...it makes hacking so much more irrating... ;-((

- -- 

 Kurt
- ---
  There is no good and evil; there is only power.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.2 (GNU/Linux)

iD8DBQE+1kFT0cAvx3ELfKARAhKtAKCI6zsGMECmSV0/02xsXZGotGML9ACfY6PJ
g+RJkKrQefYg7B8lyhmzfkI=
=tFoN
-----END PGP SIGNATURE-----


--
gentoo-dev@gentoo.org mailing list


^ permalink raw reply	[flat|nested] 4+ messages in thread

* RE: [gentoo-dev] portage.py hacking
  2003-05-29 17:20 [gentoo-dev] portage.py hacking Kurt V. Hindenburg
@ 2003-05-29 17:21 ` Riyad Kalla
  2003-05-29 20:54   ` Daniel Armyr
  0 siblings, 1 reply; 4+ messages in thread
From: Riyad Kalla @ 2003-05-29 17:21 UTC (permalink / raw
  To: gentoo-dev

It'll put hair on your chest!

-----Original Message-----
From: Kurt V. Hindenburg [mailto:khindenburg@cherrynebula.net] 
Sent: Thursday, May 29, 2003 10:20 AM
To: gentoo-dev@gentoo.org
Subject: [gentoo-dev] portage.py hacking 


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

I'm hacking portage.py to handle multiple DISTDIRS.  Mainly this is in 
the 'fetch' routine; which happens to be over 200 lines.  I notice 
this thoughout portage.py.  This is yucky!!
Somewhere over the years, I heard routines shouldn't be longer than a 
screen page.  Regardless, 100-200+ lines per routine is ridiculous.  
Sigh...it makes hacking so much more irrating... ;-((

- -- 

 Kurt
- ---
  There is no good and evil; there is only power.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.2 (GNU/Linux)

iD8DBQE+1kFT0cAvx3ELfKARAhKtAKCI6zsGMECmSV0/02xsXZGotGML9ACfY6PJ
g+RJkKrQefYg7B8lyhmzfkI=
=tFoN
-----END PGP SIGNATURE-----


--
gentoo-dev@gentoo.org mailing list


--
gentoo-dev@gentoo.org mailing list


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [gentoo-dev] portage.py hacking
  2003-05-29 17:21 ` Riyad Kalla
@ 2003-05-29 20:54   ` Daniel Armyr
  2003-05-29 23:23     ` Luke Graham
  0 siblings, 1 reply; 4+ messages in thread
From: Daniel Armyr @ 2003-05-29 20:54 UTC (permalink / raw
  To: gentoo-dev

[-- Attachment #1: Type: text/plain, Size: 455 bytes --]

>It'll put hair on your chest!

That is true, but it will make sure that hair you get is gray by the time you get it. No offense to the developers of Portage who hae done an excellent job, but the portage code is pretty much as unreadable as code can get. I was working on a few patches until I realised the only way to understand it would be line by line debugging. Once understood though, it is an excellent piece of code.

--Daniel Armyr
Non-developer

[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [gentoo-dev] portage.py hacking
  2003-05-29 20:54   ` Daniel Armyr
@ 2003-05-29 23:23     ` Luke Graham
  0 siblings, 0 replies; 4+ messages in thread
From: Luke Graham @ 2003-05-29 23:23 UTC (permalink / raw
  To: gentoo-dev

On Fri, 30 May 2003 06:54 am, Daniel Armyr wrote:
> >It'll put hair on your chest!
>
> That is true, but it will make sure that hair you get is gray by the time
> you get it. No offense to the developers of Portage who hae done an
> excellent job, but the portage code is pretty much as unreadable as code
> can get. I was working on a few patches until I realised the only way to
> understand it would be line by line debugging. Once understood though, it
> is an excellent piece of code.

It was hard to write, it should be hard to read! ;)

-- 
luke

--
gentoo-dev@gentoo.org mailing list


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2003-05-29 23:26 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-05-29 17:20 [gentoo-dev] portage.py hacking Kurt V. Hindenburg
2003-05-29 17:21 ` Riyad Kalla
2003-05-29 20:54   ` Daniel Armyr
2003-05-29 23:23     ` Luke Graham

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox