Lawrence D'Oliveiro
2024-08-25 21:53:31 UTC
Looking at this article about the top three languages for getting
programming jobs
<https://www.zdnet.com/article/want-a-programming-job-make-sure-you-learn-these-three-languages/>,
naturally I couldn’t help noticing the code in the screenshot at the
top (my transcription):
bufferedNumber = str(doc.GetTime().GetFrame(docFps))
if len(bufferedNumber)<4:
for x in range(len(bufferedNumber),4):
bufferedNumber = "0" + bufferedNumber
I mean, really? Four lines to do what could be done in a single
expression?
Was that written by a PHP programmer, do you think?
programming jobs
<https://www.zdnet.com/article/want-a-programming-job-make-sure-you-learn-these-three-languages/>,
naturally I couldn’t help noticing the code in the screenshot at the
top (my transcription):
bufferedNumber = str(doc.GetTime().GetFrame(docFps))
if len(bufferedNumber)<4:
for x in range(len(bufferedNumber),4):
bufferedNumber = "0" + bufferedNumber
I mean, really? Four lines to do what could be done in a single
expression?
Was that written by a PHP programmer, do you think?