Deutsch English Français Italiano |
<vag94r$23hhf$2@dont-email.me> View for Bookmarking (what is this?) Look up another Usenet article |
Path: ...!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail From: Lawrence D'Oliveiro <ldo@nz.invalid> Newsgroups: comp.lang.python Subject: Triggered By Mediocre Code (Posting On Python-List Prohibited) Date: Sun, 25 Aug 2024 21:53:31 -0000 (UTC) Organization: A noiseless patient Spider Lines: 15 Message-ID: <vag94r$23hhf$2@dont-email.me> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Injection-Date: Sun, 25 Aug 2024 23:53:31 +0200 (CEST) Injection-Info: dont-email.me; posting-host="34188c213084fda325f5b7302b43292b"; logging-data="2213423"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+kaI+ap/ufX2LOCpb2yOcJ" User-Agent: Pan/0.160 (Toresk; ) Cancel-Lock: sha1:jV6ml1rSRlWbvk72FI4IMkPvh14= Bytes: 1491 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?