create account

RE: Python Libraries: Expanding the Functions by gikitiki

View this thread on: hive.blogpeakd.comecency.com

Viewing a response to: @slobberchops/python-libraries-expanding-the-functions

· @gikitiki ·
$0.17
Anyone who puts enough comments in their code that I can skim through it and understand what it's supposed to do (without requiring coffee and other stimulants) ... is writing absolutely glorious code.

Not only do you have comments, you have Prints!!!!  I can watch the output stream and actually know where/if it crashed!

IRL, One of my functions is to take 20-30 year old code (mainly "short" scripts) from whatever language it was to a current language.  Most folks don't include comments in their code ... "since <em>everyone</em> understands what this perl function does".  If I'm fluent in the code, it's usually simple ... if not, insert coffee here.

At least now, I can lean heavily on Google to assist me ... instead of having to open up the Tomes of Knowledge.  (Code reference manuals suck)
👍  ,
properties (23)
authorgikitiki
permlinkre-slobberchops-rb3tgl
categoryhive-163521
json_metadata{"tags":["hive-163521"],"app":"peakd/2022.04.6"}
created2022-04-29 13:57:57
last_update2022-04-29 13:57:57
depth1
children2
last_payout2022-05-06 13:57:57
cashout_time1969-12-31 23:59:59
total_payout_value0.084 HBD
curator_payout_value0.084 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length804
author_reputation16,572,681,158,525
root_title"Python Libraries: Expanding the Functions"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id112,750,769
net_rshares170,394,967,692
author_curate_reward""
vote details (2)
@slobberchops ·
Perl... it still makes me shudder. I never got to grips with it.., and it was around 2003 when I was looking at an enormous script written by someone else and thinking... christ!

I know where you are coming from. If I don't add the comments, I will forget how it works, never mind anyone else.
👍  
properties (23)
authorslobberchops
permlinkre-gikitiki-rb3ukc
categoryhive-163521
json_metadata{"tags":["hive-163521"],"app":"peakd/2022.04.6"}
created2022-04-29 14:21:48
last_update2022-04-29 14:21:48
depth2
children1
last_payout2022-05-06 14:21:48
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length294
author_reputation2,452,873,019,744,029
root_title"Python Libraries: Expanding the Functions"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id112,751,359
net_rshares0
author_curate_reward""
vote details (1)
@gikitiki ·
$0.07
Perl, Pascal, C, VB .... They all make me shudder if they aren't documented.  But perl.    A hash of a hash of a hash ...   c'mon!!!!  Without comments!!!  It's a nightmare.

<center>

![image.png](https://files.peakd.com/file/peakd-hive/gikitiki/23tkk3PMEeqEXMTDHHCNxhUPgrAAGQCCtmaKUaqnbXCCD6rxg5QGHMPvRhXGbkVydvoq2.png)

</center>

I have to admit ... when I think of the term  "Multidimensional Hash",   this is the last thing that comes to my mind!    

Hrmmmm......  What does come to mind ....

<center>

![image.png](https://files.peakd.com/file/peakd-hive/gikitiki/242hfLg9nCZa28mQP81t63Pvrxb1Vbc14AY7aji1KkLkqongdGmCr7h9hsH9iQ1yTRfhV.png) 
<sub>[Source - Legal in Canada](https://momsdispensary.com/the-best-hash-to-try-in-canada/)</sub>

</center>
👍  ,
properties (23)
authorgikitiki
permlinkre-slobberchops-rb43xe
categoryhive-163521
json_metadata{"tags":["hive-163521"],"app":"peakd/2022.04.6"}
created2022-04-29 17:44:03
last_update2022-04-29 17:44:03
depth3
children0
last_payout2022-05-06 17:44:03
cashout_time1969-12-31 23:59:59
total_payout_value0.035 HBD
curator_payout_value0.034 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length758
author_reputation16,572,681,158,525
root_title"Python Libraries: Expanding the Functions"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id112,756,585
net_rshares70,712,543,646
author_curate_reward""
vote details (2)